unable to compile test program

Bug #195497 reported by cage
2
Affects Status Importance Assigned to Milestone
openbabel (Debian)
Fix Released
Unknown
openbabel (Ubuntu)
Fix Released
Wishlist
Unassigned

Bug Description

Binary package hint: libopenbabel-dev

Hello,

I was not able to compile this cpp source linking it against libopenbabel:

-----------------------------8<-------------------------
#include <cstring>
#include <openbabel/mol.h>

int main(int argc, char** argv){

     OpenBabel::OBMol p;
}

-------------------------8<-----------------------------

cage@scirocco:~$ g++-4.1 -o conftest -I/usr/include/openbabel-2.0 -pedantic -lopenbabel prova.cpp
/usr/include/openbabel-2.0/openbabel/math/vector3.h:276: error: extra ‘;’
/usr/include/openbabel-2.0/openbabel/math/vector3.h:281: error: extra ‘;’
/usr/include/openbabel-2.0/openbabel/math/vector3.h:286: error: extra ‘;’
/usr/include/openbabel-2.0/openbabel/math/vector3.h:291: error: extra ‘;’
/usr/include/openbabel-2.0/openbabel/math/vector3.h:296: error: extra ‘;’
/usr/include/openbabel-2.0/openbabel/math/vector3.h:301: error: extra ‘;’
/usr/include/openbabel-2.0/openbabel/generic.h:147: error: comma at end of enumerator list
/usr/include/openbabel-2.0/openbabel/base.h:89: error: extra ‘;’
/usr/include/openbabel-2.0/openbabel/residue.h:270: error: comma at end of enumerator list
/usr/include/openbabel-2.0/openbabel/residue.h:288: error: comma at end of enumerator list
/usr/include/openbabel-2.0/openbabel/residue.h:355: error: comma at end of enumerator list
/usr/include/openbabel-2.0/openbabel/residue.h:373: error: comma at end of enumerator list

but whithout the -pedantic switch the compilation works.

system information:

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=7.10
DISTRIB_CODENAME=gutsy
DISTRIB_DESCRIPTION="Ubuntu 7.10"

dpkg -l libopenbabel-dev

ii libopenbabel-dev 2.1.1-0ubuntu2 Convert and manipulate chemical data files (development version)

Best regards.
Cage.

Changed in openbabel:
importance: Undecided → Wishlist
status: New → Confirmed
Revision history for this message
cage (cage-katamail) wrote :

I know that the same bug affects Debian/Sid but i can not make a report because i have not an account to reproduce it on that distribution.

Regards.
Cage.

Changed in openbabel:
status: Unknown → Fix Committed
Changed in openbabel:
status: Fix Committed → Confirmed
Changed in openbabel:
status: Confirmed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package openbabel - 2.1.1-4

---------------
openbabel (2.1.1-4) unstable; urgency=low

  * debian/patches/babel_1_macro_fix.patch: Added.
    - doc/babel.1: Fix manpage-has-errors-from-man lintian warning.
  * debian/patches/fix_419070_segfault_reading_writeonly.patch: Added.
    - tools/babel.cpp (main): Fix a segmentation fault when trying to convert a
      Gaussian input file (closes: #419070). The fix has been backported from
      upstream SVN (revision 2073 and 2074).

openbabel (2.1.1-3) unstable; urgency=low

  [ Michael Banck ]
  * debian/patches/testsuite_bashism.patch: New patch, use /bin/bash to run
    cml.sh instead of /bin/sh as "source" is a bashism. (Closes: #459116)

  [ Daniel Leidert ]
  * debian/compat: Raised to level 5.
  * debian/control: Added DM-Upload-Allowed for DM status.
    (Uploaders): Added myself.
    (Build-Depends): Raised debhelper to v5.
    (Standards-Version): Update to 3.7.3 (no other changes).
    (Description): Typo fix (thanks to lintian).
  * debian/copyright: Updated. Added missing copyright informaton. Added
    missing information about libinchi.
  * debian/libopenbabel-dev.dirs: Removed (useless).
  * debian/libopenbabel-dev.install: Fixed plugins path (necessary for
    compatibility mode 5).
  * debian/openbabel.dirs: Ditto.
  * debian/openbabel.docs: Removed files that should go into all packages.
    Added READMEs regarding povray.
  * debian/openbabel.examples: Added example for the newly added READMEs.
  * debian/rules: Added DEB_INSTALL_DOCS_ALL for docs to install in all
    packages. Added DEB_INSTALL_MANPAGES_openbabel to install missing
    man-pages (retrieved from SVN).
  * debian/man/*.1: Added man-pages already in openbabels SVN but not shipped
    with the source.
  * debian/patches/fix_ftbfs_with_gcc_43.patch: Added.
    - Add missing includes to fix an FTBFS with GCC 4.3 (closes: #455170).
  * debian/patches/fix_467498_pedantic_issues.patch: Added.
    - Fix some issues -pedantic will complain about (LP: #195497; closes:
      #467498).

 -- Stefan Ebner <email address hidden> Fri, 07 Mar 2008 12:15:47 +0000

Changed in openbabel:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.