Karim BELABAS on Tue, 6 Nov 2001 19:41:31 +0100 (MET)


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

Re: library installation/Mac OS X


On Tue, 6 Nov 2001, Nathaniel Irons wrote:
> On 11/6/01 at 12:31 PM, Karim BELABAS <Karim.Belabas@math.u-psud.fr>
> wrote:
>
> > OTOH, I would have expected it to work; doesn't Darwin support
> > dlopen? Does 'man dlopen' mention anything exotic that would
> > prevent both
> >
> >   /usr/bin/gcc  -O3 config/has_dlopen.c
> >
> >   /usr/bin/gcc  -O3 config/has_dlopen.c -ldl
> >
> > from compiling ? (that's $CC $CFLAGS ..., expanded from your log)
>
> 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.

OK, my man page for dlopen (on Solaris) starts as

NAME
     dlopen, dlmopen - gain access to an executable object file

SYNOPSIS
     cc [ flag ... ] file ... -ldl [ library ... ]
     #include <dlfcn.h>
     #include <link.h>

Are there any 'include' directives mentionned in yours, or any library
(-ldl) ? If not, try to remove the line

#include <dlfcn.h>

in config/has_dlopen.c. If the file then compiles OK, you can remove
the same line in src/gp/highlvl.c and (presumably...)

 Configure; make bench

will work!

>> (NB this is documented.  And make bench should in fact have
>> issued the explanation:
>>   NOTE: actually, the only problem noted is that install() does
>>   not work in your configuration, so you will not be able to use
>>   this feature. Otherwise you can safely ignore the above warning.
>> )
>
> FWIW, that notice wasn't issued on either of the OS X systems on which I
> installed pari.

How many lines are there in this diff file ? (wc -l program-sta.dif)

Thanks,

    Karim.
-- 
Karim Belabas                    email: Karim.Belabas@math.u-psud.fr
Dep. de Mathematiques, Bat. 425
Universite Paris-Sud             Tel: (00 33) 1 69 15 57 48
F-91405 Orsay (France)           Fax: (00 33) 1 69 15 60 19
--
PARI/GP Home Page: http://www.parigp-home.de/