From owner-freebsd-questions Wed Sep 24 08:55:01 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id IAA06409 for questions-outgoing; Wed, 24 Sep 1997 08:55:01 -0700 (PDT) Received: from andrsn.stanford.edu (root@andrsn.Stanford.EDU [36.33.0.163]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id IAA06401 for ; Wed, 24 Sep 1997 08:54:59 -0700 (PDT) Received: from localhost (andrsn@localhost.stanford.edu [127.0.0.1]) by andrsn.stanford.edu (8.8.7/8.6.12) with SMTP id IAA02943; Wed, 24 Sep 1997 08:47:24 -0700 (PDT) Date: Wed, 24 Sep 1997 08:47:23 -0700 (PDT) From: Annelise Anderson Reply-To: Annelise Anderson To: Robin Huiser cc: freebsd-questions@FreeBSD.ORG Subject: Re: Problems with headers/libs In-Reply-To: <3428DE3A.C6FB3E0D@htsa.hva.nl> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk 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