openhpi2 / Open-HPI

Open HPI is an open source implementation of the SA Forum's Hardware Platform Interface (HPI). HPI provides an abstracted interface to managing computer hardware, typically for chassis and rack based servers
Other
3 stars 1 forks source link

make fails with --enable-testcover option #2594

Open openhpi2 opened 9 years ago

openhpi2 commented 9 years ago

When we try to build the openhpi code with --enable-testcover option during configuration, it fails with below erros:

Configured as: ./configure --disable-ipmi --enable-testcover --enable-oa_soap --enable-ilo2_ribcl

Errors:

penhpiutils.so -lgcrypt -lgmodule-2.0 /home/praveen/C/ssl/.libs/libopenhpi_ssl.so -lcrypto ../marshal/.libs/libopenhpimarshal.so ../transport/.libs/libopenhpitransport.so -lstdc++ -lssl -lgthread-2.0 -lglib-2.0 -lm -lpthread -pthread /usr/bin/ld: .libs/openhpid: hidden symbol atexit' in /usr/lib/x86_64-linux-gnu/libc_nonshared.a(atexit.oS) is referenced by DSO /usr/bin/ld: final link failed: Bad value collect2: error: ld returned 1 exit status make[3]: *** [openhpid] Error 1 make[3]: Leaving directory/home/praveen/C/openhpid' make[2]: * [all-recursive] Error 1 make[2]: Leaving directory `/home/praveen/C/openhpid' make[1]: * [all-recursive] Error 1 make[1]: Leaving directory`/home/praveen/C' make: *\ [all] Error 2 root@ubuntu1304:/home/praveen/C#

Some more information:

  1. root@ubuntu1304:/home/praveen/C# dpkg -l | grep gcc ii gcc 4:4.7.3-1ubuntu10 amd64 GNU C compiler ii gcc-4.7 4.7.3-1ubuntu1 amd64 GNU C compiler ii gcc-4.7-base:amd64 4.7.3-1ubuntu1 amd64 GCC, the GNU Compiler Collection (base package) ii libgcc-4.7-dev:amd64 4.7.3-1ubuntu1 amd64 GCC support library (development files) ii libgcc1:amd64 1:4.7.3-1ubuntu1 amd64 GCC support library root@ubuntu1304:/home/praveen/C#
  2. root@ubuntu1304:/home/praveen/C# lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 13.04 Release: 13.04 Codename: raring root@ubuntu1304:/home/praveen/C#

The above metioned erros goes off, when we include CXXFLAGS="--coverage" while configuration as

./configure --disable-ipmi --enable-testcover --enable-oa_soap --enable-ilo2_ribcl CXXFLAGS="--coverage"

Reported by: openhpi2

openhpi2 commented 9 years ago

Original comment by: dr_mohan