Subject: ld-linker problem
To: None <tech-pkg@NetBSD.org>
From: Yosep <yoskim@NMSU.Edu>
List: tech-pkg
Date: 07/12/2003 15:18:48
Hello
I was trying to build a package and ran into this compilation error while
running the following command
/bin/sh ../libtool --mode=link gcc -g -O2 -o aaindexextract
aaindexextract.o ../nucleus/libnucleus.la ../ajax/libajaxg.la
../ajax/libajax.la ../plplot/libplplot.la -L/usr/X11R6/lib -lX11 -lm
When it was run, somehow the library path "-L/usr/X11R6/lib" was stripped
off and thus resulting in following error.
gcc -g -O2 -o .libs/aaindexextract aaindexextract.o
../nucleus/.libs/libnucleus.so ../ajax/.libs/libajaxg.so
../ajax/.libs/libajax.so ../plplot/.libs/libplplot.so -lX11 -lm
-Wl,--rpath -Wl,/usr/local/lib
ld: cannot find -lX11
How does this happen and how can I go about solving it?
Any comment and help would be greatly appreciated.
Thank you.
=============
|\/\/| | Yosep Kim
|,,,,| | NMSU Computer Lab Assistant
| | | Computer Science, B.S.
[|^ ^|] | New Mexico State Unversity
\__/ | http://web.nmsu.edu/~yoskim
=============
PHIL 4:13