Re: Re: tru64 5.1b & php4.3.2rc1
| From: | (Michael Mauch) | Date: | Tue, 29 Apr 2003 17:56:12 +0000 |
| Subject: | Re: Re: tru64 5.1b & php4.3.2rc1 | ||
| References: | 1 2 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-10744@lists.php.net to get a copy of this message | ||
ldg@ulysium.net wrote:
> I found the same thing on this one, and now configure doesn't cause those
> errors any more, but I get errors during make, and I tried using gmake just
> in case, but it makes no difference with the regular make.
> (this is tru64 5.1b)
>
> I get lots of errors, and some of them I was able to get rid of by doing
> something I shouldn't be doing:
> I have duplicate header files like stdio.h and unistd.h (several others),
> because they are in the standard system area /usr/include but also in
> /usr/local/include because they were installed by some rpm packages I
> needed.
Oops, that sounds ugly - I don't think that it is a good idea to have
different system header files in /usr/include and /usr/local/include.
It's just asking for trouble.
> The problem is that we have no control over which set of headers get used,
> it's all done by configure and we can't force it to place the -I include in
> any particular order. I even noticed in the cc lines that
> -I/usr/local/include shows up more than once.
> I ended up renaming the duplicate files in /usr/local to prevent them from
> even being used, which makes many of those errors go away, but some of those
> errors occur in headers located in /usr/include
>
> here's what I ended up with now (after renaming several dupes):
Are there any other dupes left now? Did you run "make distclean;
./config.nice" after cleaning these dupes?
You can also try if
env CC="cc -I/usr/include" ./configure your_configure_options
helps.
> cc -I/usr/local/include -Iext/odbc/
> -I/usr/local/apache/src/php-4.3.2RC1/ext/odbc/ -DPHP_ATOM_INC
> -I/usr/local/apache/src/php-4.3.2R
> C1/include -I/usr/local/apache/src/php-4.3.2RC1/main
> -I/usr/local/apache/src/php-4.3.2RC1 -I/usr/local/apache/include
> -I/usr/local/a
> pache/src/php-4.3.2RC1/Zend -I/usr/ssl/include -I/usr/local/include
> -I/usr/local/mysql/include -I/usr/local/mm/include -I/usr/local/
> apache/src/php-4.3.2RC1/ext/xml/expat -DNO_SLACK
> -I/usr/local/apache/src/php-4.3.2RC1/TSRM -O2 -pthread -g -DZTS -c
> /usr/local/apach
> e/src/php-4.3.2RC1/ext/odbc/php_odbc.c -DPIC
> cc: Info: File not optimized; use -g3 if both optimization and debug wanted.
> (suppressoptlvl)
> cc: Error: /usr/include/dlfcn.h, line 59: Missing ";". (nosemi)
> extern int dladdr __((void *, Dl_info *));
> -------------------------------^
[Lots of similar problems with "__"]
I don't know what's happening there - what was your configure line?
Regards...
Michael