openhpi2 / openhpi_bug_test

0 stars 0 forks source link

debug folder make fails when configure with --enable-testcover #1894

Closed openhpi2 closed 8 years ago

openhpi2 commented 9 years ago

We have configured as ./configure --disable-ipmi --enable-testcover --enable-oa_soap --enable-ilo2_ribcl CXXFLAGS="--coverage"

When we issue make at /plugins/oa_soap/debug, it fails with below errors:

-I../../../ssl pkg-config --cflags glib-2.0 -DHAVE_OPENSSL \ -o soaptest soaptest.c \ ../../../ssl/oh_ssl.o ../oa_soap_calls.o ../oa_soap_callsupport.o \ -lglib-2.0 -lxml2 -lssl -lcrypto ../../../ssl/oh_ssl.o: In function lock_function': /root/praveen/branch_3.6/ssl/oh_ssl.c:142: undefined reference towrap_g_static_mutex_lock' /root/praveen/branch_3.6/ssl/oh_ssl.c:148: undefined reference to wrap_g_static_mutex_unlock' /root/praveen/branch_3.6/ssl/oh_ssl.c:152: undefined reference towrap_g_static_mutex_unlock' /root/praveen/branch_3.6/ssl/oh_ssl.c:158: undefined reference to wrap_g_static_mutex_lock' /root/praveen/branch_3.6/ssl/oh_ssl.c:160: undefined reference towrap_g_mutex_new_init' /root/praveen/branch_3.6/ssl/oh_ssl.c:162: undefined reference to wrap_g_static_mutex_unlock' ../../../ssl/oh_ssl.o: In functiondyn_create_function': /root/praveen/branch_3.6/ssl/oh_ssl.c:191: undefined reference to wrap_g_mutex_new_init' ../../../ssl/oh_ssl.o: In functiondyn_destroy_function': /root/praveen/branch_3.6/ssl/oh_ssl.c:238: undefined reference to wrap_g_mutex_free_clear' ../../../ssl/oh_ssl.o: In functionthread_cleanup': /root/praveen/branch_3.6/ssl/oh_ssl.c:285: undefined reference to wrap_g_static_mutex_lock' /root/praveen/branch_3.6/ssl/oh_ssl.c:289: undefined reference towrap_g_mutex_free_clear' /root/praveen/branch_3.6/ssl/oh_ssl.c:295: undefined reference to wrap_g_static_mutex_unlock' /root/praveen/branch_3.6/ssl/oh_ssl.c:296: undefined reference towrap_g_static_mutex_free_clear' ../../../ssl/oh_ssl.o: In function _GLOBAL__sub_I_65535_0_oh_ssl_init': /root/praveen/branch_3.6/ssl/oh_ssl.c:953: undefined reference togcov_init' ../../../ssl/oh_ssl.o:(.data+0x460): undefined reference to `gcov_merge_add' ../oa_soap_calls.o: In function_GLOBAL__sub_I_65535_0_hpoa_boolean_S': /root/praveen/branch_3.6/plugins/oa_soap/oa_soap_calls.c:2570: undefined reference togcov_init' ../oa_soap_calls.o:(.data+0x1f20): undefined reference to__gcov_merge_add' ../oa_soap_callsupport.o: In functionsoap_close': /root/praveen/branch_3.6/plugins/oa_soap/oa_soap_callsupport.c:600: undefined reference towrap_g_free' ../oa_soap_callsupport.o: In function_GLOBALsub_I_65535_0_soap_find_node': /root/praveen/branch_3.6/plugins/oa_soap/oa_soap_callsupport.c:1140: undefined reference to`gcov_init' ../oa_soap_callsupport.o:(.data+0x460): undefined reference to `gcov_merge_add' collect2: error: ld returned 1 exit status make: *\ [soaptest] Error 1

Some more information:

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#

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#

Reported by: openhpi2

openhpi2 commented 9 years ago

Attaching the patch to resolve the above erros.

Original comment by: openhpi2

openhpi2 commented 9 years ago

Original comment by: dr_mohan

openhpi2 commented 9 years ago

Fixed with checkin #7652

Original comment by: dr_mohan