<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=windows-1251"
 http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Oliver Grawert wrote:
<blockquote cite="mid1126742551.30847.5.camel@localhost.localdomain"
 type="cite">
  <pre wrap="">hi,
On Do, 2005-09-15 at 02:00 +0400, Pavel Volkovitskiy wrote:
the two includes:
  </pre>
  <blockquote type="cite">
    <pre wrap="">autoaway.cpp:(.text+0x484): undefined reference to `XScreenSaverQueryInfo'
autoaway.cpp:(.text+0x52c): undefined reference to 
`XScreenSaverQueryExtension'
autoaway.cpp:(.text+0x599): undefined reference to `XScreenSaverAllocInfo'
    </pre>
  </blockquote>
  <pre wrap=""><!---->are located in:
  </pre>
  <blockquote type="cite">
    <pre wrap="">ii x11proto-scrnsaver-dev 1.0-1
    </pre>
  </blockquote>
  <pre wrap=""><!---->which installs them in 
/usr/include/X11/extensions/
  </pre>
  <blockquote type="cite">
    <pre wrap="">Does this sim's makefile error, or i doesn't install some dependencies?
    </pre>
  </blockquote>
  <pre wrap=""><!---->obviously your dependencys are right, but i guess your sourcecode doesnt
include the screensaver header or looks at the wrong place for it...
  </pre>
</blockquote>
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<br>
.libs/autoaway.o: In function `AutoAwayPlugin::getIdleTime()':<br>
autoaway.cpp:(.text+0x484): undefined reference to
`XScreenSaverQueryInfo'<br>
autoaway.cpp:(.text+0x52c): undefined reference to
`XScreenSaverQueryExtension'<br>
autoaway.cpp:(.text+0x599): undefined reference to
`XScreenSaverAllocInfo'<br>
collect2: ld returned 1 exit status<br>
<br>
I think error on "link" stage, and ld can't find library, not header
file, but i can't guess which library<br>
<br>
Updated:<br>
I've search for XScreenSaverQueryExtension on another machine:<br>
grep -r -F "XScreenSaverQueryExtension" /usr/lib/<br>
Binary file /usr/lib/libXss.so.1 matches<br>
<br>
so, i install libxss-dev and sim builds successfully<br>
<br>
Maybe it's a x11proto-scrnsaver-dev dependency bug?<br>
<br>
-- <br>
Pavel<br>
</body>
</html>