Bill Allombert on Tue, 6 Nov 2001 19:57:00 +0100

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: library installation/Mac OS X

On Tue, Nov 06, 2001 at 10:13:49AM -0800, Nathaniel Irons wrote:
> dlopen is in place, but both commands fail with:
>     config/has_dlopen.c:2: header file 'dlfcn.h' not found
> I have a man page for dlfcn, shared with dlopen, dlclose, etc, but
> locate turns up no dlfcn.h.

Normally this is written in the dlfcn manpages:
       #include <dlfcn.h>
       ^^^ here
       void *dlopen (const char *filename, int flag);
or in the FILES section.

Maybe you need to install optional package ?(often manpage are provided
in documentation packages and are installed even if the relevant facility are 
not installed. Also the package you need (if it exists) will probably contains
only header files, and no

Could you do a brute force
grep dlopen /usr/include/*.h /usr/include/*/*.h
to find the relevant header file ?

At last try to remove the #include <dlfcn.h> in config/has_dlopen.c
to see if it works without headers.

You use gcc, but which ld ? It seem your ld is unknown by Configure and you
will not have dynamic library.

Also you should install libreadline, gp is far better with readline
support. (of course it may be simpler to install gnu/linux, it works well on ppc :^))