Mailinglist Archive: opensuse-buildservice (175 mails)

< Previous Next >
[opensuse-buildservice] /usr/lib64/ could not read symbols: Invalid operation
  • From: Roman Evstifeev <someuniquename@xxxxxxxxx>
  • Date: Sat, 22 Oct 2011 08:47:04 +0400
  • Message-id: <>
Hi. Can anyone please help to figure out build problem?
Building package sonic-visualizer [1] last build phase is linking
final binary (complete log at [2]):
g++ -m64 -Wl,-O1 -o sonic-visualiser o/main.o o/OSCHandler.o
o/MainWindow.o o/PreferencesDialog.o o/Surveyer.o o/moc_MainWindow.o
o/moc_PreferencesDialog.o o/moc_Surveyer.o o/qrc_sonic-visualiser.o
-L/usr/lib64 -L../svapp -L../svgui -L../svcore -lsvapp -lsvgui
-lsvcore -lasound -lbz2 -lfftw3 -lfftw3f -lsndfile -lsamplerate
-lvamp-hostsdk -ldl -L/usr/lib -lrubberband -lrasqal -lraptor2 -lrdf
-llo -lportaudio -lm -ljack -lpulse -llrdf -lid3tag -lQtXml
-L/usr/lib64 -lQtGui -L/usr/X11R6/lib64 -lQtNetwork -lQtCore -lpthread
While this works perfectly, when i doing "make" on this package
locally (without osc\obs), when i use "osc build" this results in an
../svcore/libsvcore.a(Init.o): undefined reference to symbol
note: 'XGetErrorText' is defined in DSO /usr/lib64/ so try
adding it to the linker command line
/usr/lib64/ could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[1]: *** [sonic-visualiser] Error 1
i can resolve this problem, specifying, in .spec-file additional
./configure options (adding -lX11 to LIBS). i.e. Instead of
CFLAGS="%optflags" CXXFLAGS="%{optflags}" ./configure
write like this:
CFLAGS="%optflags" CXXFLAGS="%{optflags}" ./configure LIBS="-lX11"
This results in an additional -lX11 flag added to final link command.
So thee questions are:
1) i wonder why this is needed in spec-file to build with OBS (while
not needed using "make" locally),
2) Is it sane to resolve the problem this way? (i.e. with ./configure

1: sonic-visualizer package -
2: buld-log -
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-buildservice+owner@xxxxxxxxxxxx

< Previous Next >