On Sat, Aug 27, 2011 at 09:09:57PM +0400, Ilya Chernykh wrote:
On Saturday 27 August 2011 20:52:37 Anders Johansson wrote:
On Saturday 27 August 2011 17:43:36 Sid Boyce wrote:
glibconfig.h is at /usr/lib64/glib-2.0/include/glibconfig.h so I have had to add "-I/usr/lib64/glib-2.0/include" to the INCLUDES= line for it to be found.
No, it should be
`pkg-config --cflags glib-2.0`
With that, it will work on all distributions. This is precisely the point of pkg-config
Just some errors that appeared this week:
/usr/lib/gcc/i586-suse-linux/4.6/../../../../i586-suse-linux/bin/ld: main.o: undefined reference to symbol 'boost::system::system_category()' /usr/lib/gcc/i586-suse-linux/4.6/../../../../i586-suse-linux/bin/ld: note: 'boost::system::system_category()' is defined in DSO /usr/lib/libboost_system.so.1.46.1 so try adding it to the linker command line /usr/lib/libboost_system.so.1.46.1: could not read symbols: Invalid operation collect2: ld returned 1 exit status make[3]: *** [lyx-qt] Error 1
/usr/lib/gcc/i586-suse-linux/4.6/../../../../i586-suse-linux/bin/ld: src/dcopIface_skel.o: undefined reference to symbol 'typeinfo for DCOPObject' /usr/lib/gcc/i586-suse-linux/4.6/../../../../i586-suse-linux/bin/ld: note: 'typeinfo for DCOPObject' is defined in DSO /opt/kde3/lib/libDCOP.so.4 so try adding it to the linker command line /opt/kde3/lib/libDCOP.so.4: could not read symbols: Invalid operation collect2: ld returned 1 exit status scons: *** [src/abakus] Error 1
/usr/lib/gcc/i586-suse-linux/4.6/../../../../i586-suse-linux/bin/ld: sbctester.o: undefined reference to symbol 'sqrt@@GLIBC_2.0' /usr/lib/gcc/i586-suse-linux/4.6/../../../../i586-suse-linux/bin/ld: note: 'sqrt@@GLIBC_2.0' is defined in DSO /lib/libm.so.6 so try adding it to the linker command line /lib/libm.so.6: could not read symbols: Invalid operation collect2: ld returned 1 exit status make[2]: *** [sbctester] Error 1
/usr/lib/gcc/i586-suse-linux/4.6/../../../../i586-suse-linux/bin/ld: ../celengine/libcelengine.a(glext.o): undefined reference to symbol 'dlopen@@GLIBC_2.1' /usr/lib/gcc/i586-suse-linux/4.6/../../../../i586-suse-linux/bin/ld: note: 'dlopen@@GLIBC_2.1' is defined in DSO /lib/libdl.so.2 so try adding it to the linker command line /lib/libdl.so.2: could not read symbols: Invalid operation collect2: ld returned 1 exit status make[4]: *** [celestia] Error 1
/usr/lib/gcc/i586-suse-linux/4.6/../../../../i586-suse-linux/bin/ld: build/app/mainWindow.o: undefined reference to symbol 'XSync' /usr/lib/gcc/i586-suse-linux/4.6/../../../../i586-suse-linux/bin/ld: note: 'XSync' is defined in DSO /usr/lib/libX11.so.6 so try adding it to the linker command line /usr/lib/libX11.so.6: could not read symbols: Invalid operation collect2: ld returned 1 exit status scons: *** [build/app/codeine] Error 1
/usr/lib/gcc/i586-suse-linux/4.6/../../../../i586-suse-linux/bin/ld: hubwdgt.o: undefined reference to symbol 'uncompress' /usr/lib/gcc/i586-suse-linux/4.6/../../../../i586-suse-linux/bin/ld: note: 'uncompress' is defined in DSO /lib/libz.so.1 so try adding it to the linker command line /lib/libz.so.1: could not read symbols: Invalid operation collect2: ld returned 1 exit status make[3]: *** [dc_qt] Error 1
/usr/lib/gcc/i586-suse-linux/4.6/../../../../i586-suse-linux/bin/ld: flagStonePort/transform-cxx-bsd/transform/libtransform.a(FSTransform.o): undefined reference to symbol 'uncompress' /usr/lib/gcc/i586-suse-linux/4.6/../../../../i586-suse-linux/bin/ld: note: 'uncompress' is defined in DSO /lib/libz.so.1 so try adding it to the linker command line /lib/libz.so.1: could not read symbols: Invalid operation collect2: ld returned 1 exit status make[1]: *** [../bin/f4l] Error 1
/usr/lib/gcc/i586-suse-linux/4.6/../../../../i586-suse-linux/bin/ld: arts.o: undefined reference to symbol 'Arts::Dispatcher::~Dispatcher()' /usr/lib/gcc/i586-suse-linux/4.6/../../../../i586-suse-linux/bin/ld: note: 'Arts::Dispatcher::~Dispatcher()' is defined in DSO /opt/kde3/lib/libmcop.so.1 so try adding it to the linker command line /opt/kde3/lib/libmcop.so.1: could not read symbols: Invalid operation collect2: ld returned 1 exit status make: *** [fleur2] Error 1
/usr/lib/gcc/i586-suse-linux/4.6/../../../../i586-suse-linux/bin/ld: gui.o: undefined reference to symbol 'operator new(unsigned int)@@GLIBCXX_3.4' /usr/lib/gcc/i586-suse-linux/4.6/../../../../i586-suse-linux/bin/ld: note: 'operator new(unsigned int)@@GLIBCXX_3.4' is defined in DSO /usr/lib/libstdc++.so.6 so try adding it to the linker command line /usr/lib/libstdc++.so.6: could not read symbols: Invalid operation collect2: ld returned 1 exit status make: *** [kamix] Error 1
/usr/lib/gcc/i586-suse-linux/4.6/../../../../i586-suse-linux/bin/ld: kasablanca.all_cpp.o: undefined reference to symbol 'BIO_new_socket' /usr/lib/gcc/i586-suse-linux/4.6/../../../../i586-suse-linux/bin/ld: note: 'BIO_new_socket' is defined in DSO /lib/libcrypto.so.1.0.0 so try adding it to the linker command line /lib/libcrypto.so.1.0.0: could not read symbols: Invalid operation collect2: ld returned 1 exit status make[2]: *** [kasablanca] Error 1
/usr/lib/gcc/i586-suse-linux/4.6/../../../../i586-suse-linux/bin/ld: katalogservice/katalogservicedlg.o: undefined reference to symbol 'KMessageBox::error(QWidget*, QString const&, QString const&, int)' /usr/lib/gcc/i586-suse-linux/4.6/../../../../i586-suse-linux/bin/ld: note: 'KMessageBox::error(QWidget*, QString const&, QString const&, int)' is defined in DSO /opt/kde3/lib/libkdeui.so.4 so try adding it to the linker command line /opt/kde3/lib/libkdeui.so.4: could not read symbols: Invalid operation collect2: ld returned 1 exit status scons: *** [katalogservice/katalogservice] Error 1
/usr/lib/gcc/i586-suse-linux/4.6/../../../../i586-suse-linux/bin/ld: CMakeFiles/kbfxconfigapp.dir/kbfxconfigapp.o: undefined reference to symbol 'DCOPRef::DCOPRef(QCString const&, QCString const&)' /usr/lib/gcc/i586-suse-linux/4.6/../../../../i586-suse-linux/bin/ld: note: 'DCOPRef::DCOPRef(QCString const&, QCString const&)' is defined in DSO /opt/kde3/lib/libDCOP.so.4 so try adding it to the linker command line /opt/kde3/lib/libDCOP.so.4: could not read symbols: Invalid operation collect2: ld returned 1 exit status make[2]: *** [bin/kbfxconfigapp] Error 1
...and so on and so on. Totally tens of packages broken. I do not know how to fix all this.
it is caused by Christian Rodriguez suggestion to enable --only-copy-dt-needed in the linker. It means that all dependend libraries need to be added. Ciao, Marcus -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org