Subject: ld-linker problem
To: None <tech-pkg@NetBSD.org>
From: Yosep <yoskim@NMSU.Edu>
Date: 07/12/2003 15:18:48
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
../ajax/.libs/libajax.so ../plplot/.libs/libplplot.so -lX11 -lm
ld: cannot find -lX11
How does this happen and how can I go about solving it?
Any comment and help would be greatly appreciated.
|\/\/| | Yosep Kim
|,,,,| | NMSU Computer Lab Assistant
| | | Computer Science, B.S.
[|^ ^|] | New Mexico State Unversity
\__/ | http://web.nmsu.edu/~yoskim