Make fails because of missing library but I can see it's there,
why???
Kris Kennaway
kris at obsecurity.org
Thu Feb 10 13:01:10 PST 2005
On Thu, Feb 10, 2005 at 12:42:55AM -0800, Mark Jayson Alvarez wrote:
> Hi,
> This always happens to me whenever I'm compiling
> third party applications. Make fails because it says
> that it cannot find a certain library.. and when I try
> to search for that file, I usually finds it. For
> example, I'm compiling, nagios-plugins but it fails
> with this error messages:
>
> check_ldap.c:31:18: lber.h: No such file or directory
> check_ldap.c:32:18: ldap.h: No such file or directory
>
> but when I run:
> # find / -name "ldap.h" -print
> /usr/lib/ldap.h
> /usr/local/lib/ldap.h
> /usr/local/include/ldap.h
> noc# find / -name "lber.h" -print
> /usr/lib/lber.h
> /usr/local/lib/lber.h
> /usr/local/include/lber.h
>
> See.. it's all there! I'm thinking perhaps there's a
> way for me to tell a compiler that the system wide
> library files are found in that certain directory.
>
> Any idea??
You need to specify -I and -L with gcc to point to location of files
outside the default search path (which is /usr/include and /usr/lib
respectively).
Kris
P.S. You've polluted the base system with those headers (/usr/lib)
which may cause you problems later on.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20050210/5d18a7eb/attachment.bin
More information about the freebsd-questions
mailing list