Sorted it out myself.
Still don't know why this failed with the default though.
Makefile is:
gcc xscan.c snoop.c -o xscan -lX11
which means its trying to link in with libX11.a
So I locate the file:
locate libX11.a
/usr/X11R6/lib/libX11.a
Then I check /etc/ld.so.conf
cat /etc/ld.so.conf
/usr/kerberos/lib
/usr/X11R6/lib
/usr/lib/qt-3.0.5/lib
/usr/lib/wine
/usr/local/lib
/usr/lib/sane
/usr/lib/qt-3.1/lib
/usr/lib/X11
/usr/local/freetds
OK so the directory is there (2nd line), so why isn't ld finding it?
As stated in my previous post I had already run ldconfig but it had no effect.
Changing the Makefile to:
gcc xscan.c snoop.c -o xscan -L /usr/X11R6/lib/ -lX11
worked fine.
Incidentally this is OK as I work in my companies security team and we are authorised to go poking around our own servers for vulnerabilities. ;>
Flibble
|