Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Sep 1997 08:47:23 -0700 (PDT)
From:      Annelise Anderson <andrsn@andrsn.stanford.edu>
To:        Robin Huiser <robinh@htsa.hva.nl>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Problems with headers/libs
Message-ID:  <Pine.BSF.3.96.970924083934.2829A-100000@andrsn.stanford.edu>
In-Reply-To: <3428DE3A.C6FB3E0D@htsa.hva.nl>

next in thread | previous in thread | raw e-mail | index | archive | help


On Wed, 24 Sep 1997, Robin Huiser wrote:

> Hi there!
> 
> It seems that FreeBSD 2.2.2 has some troubles finding my standard
> header-files
> and libraries like "X11/...", "Xm/..." and /usr/X11R6/lib/*
> It works fine when I tell the compiler with some command line options
> where to
> find these header-files and libs, but there must be another way.
> 
> When I try to build with xmkmf, I have the same problems, the compiler
> returns
> the following error:
> 
> {example when I try to compile hello.CC}
> 
> hello.CC:5: Xm/PushB.h: No such file or directory
> 
> When I browse /usr/X11R6/include/Xm, the file PushB.h really excists!
> 
> Please help me!

I've had some trouble with finding libraries too.

It seems they ought to be set in rc, without changing rc.  See the
ldconfig lines there.

You can see what library paths the system knows about with
ldconfig -r.

You can add a path with ldconfig -m /usr/X11R6/include/whatever,
for example.  This merges instead of replaces.
I put this in rc.local:

ldconfig -m /usr/X11R6/lib /usr/local/lib /usr/lib/compat

which is basically what rc is supposed to do but didn't seem to be
doing.  You can add directories.

Annelise






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.970924083934.2829A-100000>