gcc -I. -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/lib/glib-2.0/include -I../../../include -I../../../utils -I/usr/local/include -I../../../ -g -o hpi_power_status_get hpi_power_status_get.c hpi_common.c -lopenhpi
/usr/bin/ld: /tmp/ccWlZWFl.o: undefined reference to symbol 'oh_lookup_error'
/usr/bin/ld: note: 'oh_lookup_error' is defined in DSO /usr/local/lib/libopenhpiutils.so.3 so try adding it to the linker command line
/usr/local/lib/libopenhpiutils.so.3: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make: *\ [hpi_power_status_get] Error 1
Observed oa_soap plugin debug folder test programs compilation failed with below error. Only in RHEL 7.0.
cat /etc/issue
Red Hat Enterprise Linux Server release 7.0 Alpha3 (Maipo)
GCC version:
gcc -v
Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.7.2/lto-wrapper Target: x86_64-redhat-linux Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --disable-build-with-cxx --disable-build-poststage1-with-cxx --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin --enable-initfini-array --enable-java-awt=gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --without-ppl --without-cloog --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux Thread model: posix gcc version 4.7.2 20121109 (Red Hat 4.7.2-8) (GCC)
Below are the errors observed while compilation:
gcc -I. -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/lib/glib-2.0/include -I../../../include -I../../../utils -I/usr/local/include -I../../../ -g -o hpi_power_status_get hpi_power_status_get.c hpi_common.c -lopenhpi /usr/bin/ld: /tmp/ccWlZWFl.o: undefined reference to symbol 'oh_lookup_error' /usr/bin/ld: note: 'oh_lookup_error' is defined in DSO /usr/local/lib/libopenhpiutils.so.3 so try adding it to the linker command line /usr/local/lib/libopenhpiutils.so.3: could not read symbols: Invalid operation collect2: error: ld returned 1 exit status make: *\ [hpi_power_status_get] Error 1
Reported by: hemanthreddy