undefined reference to `ulSetError(ulSeverity, char const*, ...) mimo że biblioteka posiadająca symbol jest podana?

Mateusz Korniak mateusz-lists at ant.gliwice.pl
Sat Mar 30 17:42:50 CET 2013


Budowa FlightGear wywala mi się [1]. Może mi ktoś podpowiedzieć czemu krzyczy 
o symbol ktory ma [2] w bibliotece która jest w liście do linkowania?

[1]:
Linking CXX executable js_demo
cd /home/users/matkor/rpm/BUILD/flightgear-2.10.0/build/src/Input && 
/usr/bin/cmake -E cmake_link_script CMakeFiles/js_demo.dir/link.txt --
verbose=1
/usr/bin/x86_64-pld-linux-g++    -Wall  -D_REENTRANT -
DBOOST_MULTI_INDEX_DISABLE_SERIALIZATION -DBOOST_BIMAP_DISABLE_SERIALIZATION -
O2 -fwrapv -pipe -Wformat -Werror=format-security -gdwarf-4 -fno-debug-types-
section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-
protector --param=ssp-buffer-size=4 -fPIC -march=x86-64 -gdwarf-4 -fno-debug-
types-section -fvar-tracking-assignments -g2  -DNDEBUG     -Wl,--as-needed -
Wl,--no-copy-dt-needed-entries -Wl,-z,relro -Wl,-z,combreloc 
CMakeFiles/js_demo.dir/js_demo.cxx.o  -o js_demo -rdynamic -lSimGearCore -
lSimGearCore -lplibpuaux -lplibjs -lplibpu -lplibfnt -lplibsg -lplibul -
lpthread -lz -L/usr/lib64 -lapr-1 -lsvn_client-1 -lsvn_subr-1 -lsvn_ra-1 -lrt 
/usr/lib64/libplibjs.so: undefined reference to `ulSetError(ulSeverity, char 
const*, ...)'
collect2: error: ld returned 1 exit status

[2]:
[matkor w carme-pld ~]$ nm -DlC /usr/lib64/libplibjs.so | grep ulSetError
                 U ulSetError(ulSeverity, char const*, ...)
[matkor w carme-pld ~]$ nm -DlC /usr/lib64/libplibul.so  | grep ulSetError
0000000000002570 T ulSetError(ulSeverity, char const*, ...)
0000000000002560 T ulSetErrorCallback(void (*)(ulSeverity, char*))


-- 
Mateusz Korniak
"(...) mam brata - poważny, domator, liczykrupa, hipokryta, pobożniś,
 	krótko mówiąc - podpora społeczeństwa."
				Nikos Kazantzakis - "Grek Zorba"



More information about the pld-devel-pl mailing list