RE: Your bug 1742
| From: | Brian Leyton | Date: | Thu, 29 Jul 1999 18:02:15 +0000 |
| Subject: | RE: Your bug 1742 | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-2960@lists.php.net to get a copy of this message | ||
Heinrich,
Thank you! That did it. I'm CCing this message to the php4
list, in the hope that one of the core developers can incorporate
these changes (and close the bug report) before Beta 2 comes out.
> -----Original Message-----
> From: Heinrich Stamerjohanns
> [mailto:stamer@osiris.physik.uni-oldenburg.de]
> Sent: Thursday, July 29, 1999 1:29 AM
> To: Brian Leyton
> Subject: Re: Your bug 1742
>
>
> >
> > Thanks for the response.
> >
> > I'm still having some trouble - maybe because I
> don't completely
> > understand your instructions.
> >
> Hi Brian,
>
> Maybe I was a bit confusing, the changed part of config.unix.h
> looks like this:
>
> #if HAVE_LIBDL
> #if (defined(_AIX))
> #define RTLD_NOW 0x00000002
> #else
> #include <dlfcn.h>
> #endif
> # define DL_LOAD(libname) dlopen(libname, RTLD_NOW)
> # define DL_UNLOAD dlclose
> # define DL_FETCH_SYMBOL dlsym
> # define DL_HANDLE void *
> # define ZEND_EXTENSIONS_SUPPORT 1
> #else
> # define DL_HANDLE void *
> # define ZEND_EXTENSIONS_SUPPORT 0
> #endif
>
> so dlfcn.h is not included, because the apache
> mechanism takes care of this,
> but we need to define RTLD_NOW, because it is used
> some lines later, but
> we don't include the apache stuff.
>
> the stuff with DL_LOAD and so on will still be
> included, though.
>
> When I compiled with gcc I still had one unresolved
> symbol: I think u_div3
> or so.
> I needed to add -lgcc to apache_1.3.x/src/modules/php4/Makefile
> so the line which starts with LIBS1
> looks like this in my configuration:
>
> LIBS1=
> -L/archive/heinrich/progtemp/php-4.0b1/ext/pcre/pcrelib
> -lpcre -L/archive
> /heinrich/progtemp/php-4.0b1/regex -lregex -lgdbm
> -L/users/physik/theo3/stamer/
> progtemp/libs/gd -lgd -L/usr/local/mysql/lib
> -lmysqlclient -ldl -lm -lnsl
> -lld -lgcc
>
> Hope this helps, Heinrich
>
> --
> Heinrich Stamerjohanns Tel. 49-441-798-3467
> University of Oldenburg stamer@uni-oldenburg.de
> Physics department
> http://www.physik.uni-oldenburg.de/~stamer
>