Latest PHP compilation on RH9 fails

Latest PHP compilation on RH9 fails

Post by Kerry Co » Wed, 09 Apr 2003 07:46:40



Has anyone else had success in compiling PHP on RH9? I';m assuming it's just
something that needs to be worked out over the next few weeks as RH9 begins
to permeate user strata.
Anyone know of a workaround? I've done a couple different installs and each
time when I try to get it to compile with apache_1.3.27 from source it
fails.
Thanks.
KJ
 
 
 

Latest PHP compilation on RH9 fails

Post by Kerry Co » Fri, 11 Apr 2003 02:55:12



> Has anyone else had success in compiling PHP on RH9? I';m assuming it's
> just something that needs to be worked out over the next few weeks as RH9
> begins to permeate user strata.
> Anyone know of a workaround? I've done a couple different installs and
> each time when I try to get it to compile with apache_1.3.27 from source
> it fails.
> Thanks.
> KJ

Here's how I am configuring it:

  ./configure --with-mysql --with-apache=../apache_1.3.27

Here's the error I am getting whne I do a "make":

ext/mysql/libmysql/my_tempnam.o(.text+0x40): In function `my_tempnam':
/usr/local/src/php-4.3.1/ext/mysql/libmysql/my_tempnam.c:103: the use of
`tempnam' is dangerous, better use `mkstemp'
ext/mysql/libmysql/my_lib.o(.text+0x37a): In function `my_dir':
/usr/local/src/php-4.3.1/ext/mysql/libmysql/my_lib.c:169: undefined
reference to `errno'
ext/mysql/libmysql/my_lib.o(.text+0x546): In function `my_stat':
/usr/local/src/php-4.3.1/ext/mysql/libmysql/my_lib.c:588: undefined
reference to `errno'
ext/mysql/libmysql/my_malloc.o(.text+0xbd): In function `my_malloc':
/usr/local/src/php-4.3.1/ext/mysql/libmysql/my_malloc.c:24: undefined
reference to `errno'
ext/mysql/libmysql/my_realloc.o(.text+0xb4): In function `my_realloc':
/usr/local/src/php-4.3.1/ext/mysql/libmysql/my_realloc.c:44: undefined
reference to `errno'
ext/mysql/libmysql/my_delete.o(.text+0x6d): In function `my_delete':
/usr/local/src/php-4.3.1/ext/mysql/libmysql/my_delete.c:16: undefined
reference to `errno'
ext/mysql/libmysql/my_tempnam.o(.text+0x79):/usr/local/src/php-4.3.1/ext/mysql/libmysql/my_tempnam.c:108:
more undefined references to `errno' follow
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1


 
 
 

Latest PHP compilation on RH9 fails

Post by To » Fri, 18 Apr 2003 22:07:28


I have mysql-devel installed, so I used:

  ./configure --with-mysql=/usr  ...



> > Has anyone else had success in compiling PHP on RH9? I';m assuming it's
> > just something that needs to be worked out over the next few weeks as RH9
> > begins to permeate user strata.
> > Anyone know of a workaround? I've done a couple different installs and
> > each time when I try to get it to compile with apache_1.3.27 from source
> > it fails.
> > Thanks.
> > KJ

> Here's how I am configuring it:

>   ./configure --with-mysql --with-apache=../apache_1.3.27

> Here's the error I am getting whne I do a "make":

> ext/mysql/libmysql/my_tempnam.o(.text+0x40): In function `my_tempnam':
> /usr/local/src/php-4.3.1/ext/mysql/libmysql/my_tempnam.c:103: the use of
> `tempnam' is dangerous, better use `mkstemp'
> ext/mysql/libmysql/my_lib.o(.text+0x37a): In function `my_dir':
> /usr/local/src/php-4.3.1/ext/mysql/libmysql/my_lib.c:169: undefined
> reference to `errno'
> ext/mysql/libmysql/my_lib.o(.text+0x546): In function `my_stat':
> /usr/local/src/php-4.3.1/ext/mysql/libmysql/my_lib.c:588: undefined
> reference to `errno'
> ext/mysql/libmysql/my_malloc.o(.text+0xbd): In function `my_malloc':
> /usr/local/src/php-4.3.1/ext/mysql/libmysql/my_malloc.c:24: undefined
> reference to `errno'
> ext/mysql/libmysql/my_realloc.o(.text+0xb4): In function `my_realloc':
> /usr/local/src/php-4.3.1/ext/mysql/libmysql/my_realloc.c:44: undefined
> reference to `errno'
> ext/mysql/libmysql/my_delete.o(.text+0x6d): In function `my_delete':
> /usr/local/src/php-4.3.1/ext/mysql/libmysql/my_delete.c:16: undefined
> reference to `errno'
> ext/mysql/libmysql/my_tempnam.o(.text+0x79):/usr/local/src/php-4.3.1/ext/mysql/libmysql/my_tempnam.c:108:
> more undefined references to `errno' follow
> collect2: ld returned 1 exit status
> make: *** [sapi/cli/php] Error 1


 
 
 

1. failed compilation apache & php on Tru64 5.1

Hi all,

Failed compilation with PHP for Apache under Plateform
Alpha ES40

Config :
True64 5.1 Rev 732

GCC 2.9-GNUPRO-99r1

PHP3 3.0.18

Apache 1.3.17

./configure --with-apache=../apache_1.3.17 --enable-track-vars

# make

GCC stop on file  snprintf.c

Segmentation Fault

Same problem with version PHP4 but the compilation stop on

the file Zend_sprintf.

Thanks for advance for your Help

jean-pascal

2. gcc -m586 when ?

3. PHP Compile failing with openssl - php news group = rubbish

4. The Reason Apple Needs to Remain A Hardware Company

5. RH9 and Apache http / PHP

6. Extension ".s"

7. rdist fails with pam_authenticate: error Authentication failed after latest patch bundle

8. put method

9. Apache w/ PHP and SSL: w/ PHP OK - w/out PHP NOK

10. Latest Apache+mod_ssl+php port?

11. PHP vuln in latest v2.9 ports ?

12. PHP and Apache compilation trouble !

13. Libgd compilation with PHP