sim-icq build error (XScreenSaverQueryInfo)

Pavel Volkovitskiy int at mtx.ru
Thu Sep 15 01:53:57 CDT 2005


Oliver Grawert wrote:

>hi,
>On Do, 2005-09-15 at 02:00 +0400, Pavel Volkovitskiy wrote:
>the two includes:
>  
>
>>autoaway.cpp:(.text+0x484): undefined reference to `XScreenSaverQueryInfo'
>>autoaway.cpp:(.text+0x52c): undefined reference to 
>>`XScreenSaverQueryExtension'
>>autoaway.cpp:(.text+0x599): undefined reference to `XScreenSaverAllocInfo'
>>    
>>
>are located in:
>  
>
>>ii x11proto-scrnsaver-dev 1.0-1
>>    
>>
>which installs them in 
>/usr/include/X11/extensions/
>  
>
>>Does this sim's makefile error, or i doesn't install some dependencies?
>>    
>>
>obviously your dependencys are right, but i guess your sourcecode doesnt
>include the screensaver header or looks at the wrong place for it...
>  
>
g++ -shared -nostdlib 
/usr/lib/gcc/i486-linux-gnu/4.0.2/../../../../lib/crti.o 
/usr/lib/gcc/i486-linux-gnu/4.0.2/crtbeginS.o  .libs/autoawaycfg.o 
.libs/autoaway.o .libs/autoawaycfgbase.o  -Wl,--rpath 
-Wl,/home/int/sim/sim-0.9.3-cvs20050914/sim/.libs -L/usr/lib 
-L/home/int/sim/sim-0.9.3-cvs20050914/sim/.libs -L/usr/share/qt3/lib 
-L/usr/X11R6/lib ../../sim/.libs/libsim.so -lqt-mt -lpng -lz -lXext 
-lX11 -lSM -lICE -lpthread /usr/lib/libart_lgpl_2.so 
-L/usr/lib/gcc/i486-linux-gnu/4.0.2 
-L/usr/lib/gcc/i486-linux-gnu/4.0.2/../../../../lib 
-L/usr/lib/gcc/i486-linux-gnu/4.0.2/../../.. -L/lib/../lib 
-L/usr/lib/../lib -lstdc++ -lm -lc -lgcc_s 
/usr/lib/gcc/i486-linux-gnu/4.0.2/crtendS.o 
/usr/lib/gcc/i486-linux-gnu/4.0.2/../../../../lib/crtn.o  
-Wl,--no-undefined -Wl,--allow-shlib-undefined -Wl,-soname 
-Wl,autoaway.so -o .libs/autoaway.so
.libs/autoaway.o: In function `AutoAwayPlugin::getIdleTime()':
autoaway.cpp:(.text+0x484): undefined reference to `XScreenSaverQueryInfo'
autoaway.cpp:(.text+0x52c): undefined reference to 
`XScreenSaverQueryExtension'
autoaway.cpp:(.text+0x599): undefined reference to `XScreenSaverAllocInfo'
collect2: ld returned 1 exit status

I think error on "link" stage, and ld can't find library, not header 
file, but i can't guess which library

Updated:
I've search for XScreenSaverQueryExtension on another machine:
grep -r -F "XScreenSaverQueryExtension" /usr/lib/
Binary file /usr/lib/libXss.so.1 matches

so, i install libxss-dev and sim builds successfully

Maybe it's a x11proto-scrnsaver-dev dependency bug?

-- 
Pavel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ubuntu.com/archives/ubuntu-devel/attachments/20050915/459333ac/attachment-0001.htm


More information about the ubuntu-devel mailing list