Discussion:
[PHP-INSTALL] Problems building 5.3 with apache2 support
troels knak-nielsen
2009-07-18 00:03:31 UTC
Permalink
Hi list.

I'm trying to build php 5.3 on Ubuntu. I have installed
apache2-threaded-dev and used the following configure settings:

./configure --with-apxs2=/usr/bin/apxs2

Running make starts building some files until it fails with the
following output:

(snip)
ext/sqlite3/libsqlite/sqlite3.o: In function `memset':
/usr/include/bits/string3.h:82: warning: memset used with constant
zero length parameter; this could be due to transposed parameters
ext/standard/.libs/info.o: In function `php_info_print_table_header':
/home/tkn/public/php-5.3.0/ext/standard/info.c:1071: undefined
reference to `ts_resource_ex'
ext/standard/.libs/info.o: In function `php_info_write_wrapper':
/home/tkn/public/php-5.3.0/ext/standard/info.c:80: undefined reference
to `ts_resource_ex'
ext/standard/.libs/info.o: In function `php_info_print_table_row_internal':
/home/tkn/public/php-5.3.0/ext/standard/info.c:1115: undefined
reference to `ts_resource_ex'
ext/standard/.libs/info.o: In function `php_print_gpcse_array':
/home/tkn/public/php-5.3.0/ext/standard/info.c:149: undefined
reference to `executor_globals_id'
ext/standard/.libs/info.o: In function `php_print_info':
/home/tkn/public/php-5.3.0/ext/standard/info.c:939: undefined
reference to `executor_globals_id'
/home/tkn/public/php-5.3.0/ext/standard/info.c:942: undefined
reference to `executor_globals_id'
/home/tkn/public/php-5.3.0/ext/standard/info.c:945: undefined
reference to `executor_globals_id'
/home/tkn/public/php-5.3.0/ext/standard/info.c:948: undefined
reference to `executor_globals_id'
/home/tkn/public/php-5.3.0/ext/standard/info.c:870: undefined
reference to `sapi_globals_id'
/home/tkn/public/php-5.3.0/ext/standard/info.c:644: undefined
reference to `sapi_globals_id'
/home/tkn/public/php-5.3.0/ext/standard/info.c:849: undefined
reference to `sapi_globals_id'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1

what am I doing wrong?

--
troels
Keith Roberts
2009-07-18 07:30:30 UTC
Permalink
Subject: [PHP-INSTALL] Problems building 5.3 with apache2 support
Hi list.
I'm trying to build php 5.3 on Ubuntu. I have installed
Is this the standard prefork apache module for Ubuntu?


Keith
./configure --with-apxs2=/usr/bin/apxs2
Running make starts building some files until it fails with the
(snip)
/usr/include/bits/string3.h:82: warning: memset used with constant
zero length parameter; this could be due to transposed parameters
/home/tkn/public/php-5.3.0/ext/standard/info.c:1071: undefined
reference to `ts_resource_ex'
/home/tkn/public/php-5.3.0/ext/standard/info.c:80: undefined reference
to `ts_resource_ex'
/home/tkn/public/php-5.3.0/ext/standard/info.c:1115: undefined
reference to `ts_resource_ex'
/home/tkn/public/php-5.3.0/ext/standard/info.c:149: undefined
reference to `executor_globals_id'
/home/tkn/public/php-5.3.0/ext/standard/info.c:939: undefined
reference to `executor_globals_id'
/home/tkn/public/php-5.3.0/ext/standard/info.c:942: undefined
reference to `executor_globals_id'
/home/tkn/public/php-5.3.0/ext/standard/info.c:945: undefined
reference to `executor_globals_id'
/home/tkn/public/php-5.3.0/ext/standard/info.c:948: undefined
reference to `executor_globals_id'
/home/tkn/public/php-5.3.0/ext/standard/info.c:870: undefined
reference to `sapi_globals_id'
/home/tkn/public/php-5.3.0/ext/standard/info.c:644: undefined
reference to `sapi_globals_id'
/home/tkn/public/php-5.3.0/ext/standard/info.c:849: undefined
reference to `sapi_globals_id'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
what am I doing wrong?
--
troels
troels knak-nielsen
2009-07-18 11:42:20 UTC
Permalink
Post by Keith Roberts
Is this the standard prefork apache module for Ubuntu?
Probably not. There are two packages available:

apache2-prefork-dev - Apache development headers - non-threaded MPM
apache2-threaded-dev - Apache development headers - threaded MPM

Shoild I use the prefork version instead?

--
troels
Keith Roberts
2009-07-18 13:44:57 UTC
Permalink
Subject: Re: [PHP-INSTALL] Problems building 5.3 with apache2 support
Post by Keith Roberts
Is this the standard prefork apache module for Ubuntu?
apache2-prefork-dev - Apache development headers - non-threaded MPM
apache2-threaded-dev - Apache development headers - threaded MPM
Shoild I use the prefork version instead?
That's the standard version I use on Fedora 10.

This may where your problem is.

Kind Regards,

Keith
troels knak-nielsen
2009-07-19 13:48:59 UTC
Permalink
That did the trick - Thanks for your help.

In case anyone else is having trouble building on Ubuntu, I found this guide:

http://www.brandonsavage.net/installing-php-5-3-on-ubuntu/

--
troels
Post by Keith Roberts
Subject: Re: [PHP-INSTALL] Problems building 5.3 with apache2 support
Post by Keith Roberts
Is this the standard prefork apache module for Ubuntu?
apache2-prefork-dev - Apache development headers - non-threaded MPM
apache2-threaded-dev - Apache development headers - threaded MPM
Shoild I use the prefork version instead?
That's the standard version I use on Fedora 10.
This may where your problem is.
Kind Regards,
Keith
Keith Roberts
2009-07-19 17:35:48 UTC
Permalink
Hi Troels. Pleased to hear you have it sorted OK now.

And thankyou for responding on list with your solution to
the problem.

Hopefully this will help others searching for similar answers.

Kind Regards,

Keith

-----------------------------------------------------------------
Websites:
http://www.php-debuggers.net
http://www.karsites.net
http://www.raised-from-the-dead.org.uk

All email addresses are challenge-response protected with
TMDA [http://tmda.net]
-----------------------------------------------------------------
Subject: Re: [PHP-INSTALL] Problems building 5.3 with apache2 support
That did the trick - Thanks for your help.
http://www.brandonsavage.net/installing-php-5-3-on-ubuntu/
--
troels
Post by Keith Roberts
Subject: Re: [PHP-INSTALL] Problems building 5.3 with apache2 support
Post by Keith Roberts
Is this the standard prefork apache module for Ubuntu?
apache2-prefork-dev - Apache development headers - non-threaded MPM
apache2-threaded-dev - Apache development headers - threaded MPM
Shoild I use the prefork version instead?
That's the standard version I use on Fedora 10.
This may where your problem is.
Kind Regards,
Keith
Continue reading on narkive:
Loading...