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 error: ---- /usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../x86_64-suse-linux/bin/ld: ../svcore/libsvcore.a(Init.o): undefined reference to symbol 'XGetErrorText' /usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../x86_64-suse-linux/bin/ld: note: 'XGetErrorText' is defined in DSO /usr/lib64/libX11.so.6 so try adding it to the linker command line /usr/lib64/libX11.so.6: 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 LIBS="-lX11") === 1: sonic-visualizer package - https://build.opensuse.org/package/show?package=sonic-visualiser&project=home%3Arwman%3Abranches%3Amultimedia%3Aapps 2: buld-log - https://build.opensuse.org/package/live_build_log?arch=x86_64&package=sonic-visualiser&project=home%3Arwman%3Abranches%3Amultimedia%3Aapps&repository=openSUSE_Factory -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org