Subject: ld-linker problem
To: None <>
From: Yosep <yoskim@NMSU.Edu>
List: tech-pkg
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/ ../ajax/
../ajax/ ../plplot/ -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/ ../ajax/.libs/
../ajax/.libs/ ../plplot/.libs/ -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
    \__/    |
 PHIL 4:13