OpenWrt Forum Archive

Topic: problem with compile php5 with whiterussian SDK

The content of this topic has been archived on 6 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I try to compile PHP5 from the kamikaze repository (https://svn.openwrt.org/openwrt/packages).
This is the command I use:
# make package/php5-{clean,compile}

The following packages are succesfully built (these are dependencies I guess):
curl_7.14.0-1_mipsel.ipk     libjpeg_6b-1_mipsel.ipk
jpeg-tools_6b-1_mipsel.ipk   libltdl_1.5.22-1_mipsel.ipk
libcurl_7.14.0-1_mipsel.ipk  libpng_1.2.8-1_mipsel.ipk
libgd_2.0.33-2_mipsel.ipk    libsasl2_2.1.20-1_mipsel.ipk

but when it tries to compile the openldap libs I get the following error:

...
checking for pthread_kill_other_threads_np... yes
checking for LinuxThreads implementation... yes
checking for LinuxThreads consistency... yes
checking if pthread_create() works... yes
checking if select yields when using pthreads... cross
configure: error: crossing compiling: use --with-yielding_select=yes|no|manual
make[2]: *** [/var/www/nils/OpenWrt-SDK-Linux-i686-1/build_mipsel/openldap-2.2.29/.configured] Error 1
make[2]: Leaving directory `/var/www/nils/packages/libs/openldap'
make[1]: *** [openldap-compile] Error 2
make[1]: Leaving directory `/var/www/nils/OpenWrt-SDK-Linux-i686-1/package'
make: *** [package/php5-compile] Error 2

The WR SDK is my own built that I got by 'make DEVELOPER=1 world' on the WR source.
The host system is Debain 3.1.
Whats the reason? I can't figure out,
any help is appreciated.
thanks

(Last edited by openwrt on 2 May 2007, 16:46)

Same problem here. Since you're using WR you can open a ticket.

Thank you forum2006,
but I solved that problem for me. Its not a clean way, but it works:
I edited the file 'configure' in openldap-2.2.29 directory. In line 1606 change from

        ol_with_yielding_select="auto"

to

        ol_with_yielding_select="yes"

It seems that the argument were not correctly passed/recocnized from the conf-opts.

But now I have another problem when building postgresql-8.2.3.

checking whether to build with 64-bit integer date/time support... no
checking whether NLS is wanted... no
checking for default port number... 5432
checking for mipsel-linux-gcc... mipsel-linux-uclibc-gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
make[2]: *** [/var/www/nils/OpenWrt-SDK-Linux-i686-1/build_mipsel/postgresql-8.2.3/.configured] Error 77
make[2]: Leaving directory `/var/www/nils/packages/libs/postgresql'
make[1]: *** [postgresql-compile] Error 2
make[1]: Leaving directory `/var/www/nils/OpenWrt-SDK-Linux-i686-1/package'
make: *** [package/php5-compile] Error 2

can someone confirm this too?

::EDIT::
I solved this Problem by simply commenting all lines in php-Makefile which contained 'postgresql'. Now the php5-mod-postgresql will not be compiled, but I don't need it anyway, so I'm happy with that.

(Last edited by openwrt on 2 May 2007, 21:04)

ok. backporting is useless and you waste your time!

from http://openwrt.org/logs/openwrt.log.20070525 :
[00:13] <forum2006> alright. backporting doesn't work anymore. seems lots of changes in trunk like CONFIGURE_ARGS are not backported to whiterussian. so, it's useless to try backporting
[00:15] <forum2006> CONFIGURE_ARGS is missing in whiterussian and that's why openldap blames with configure: error: crossing compiling: use --with-yielding_select=yes|no|manual
[00:15] <forum2006> it simply doesn't pass configure_args to the configure script anymore sad

[21:42] <nbd> kamikaze packages don't work on whiterussian

Hi forum2006, hi folks,
i'd like to discuss with you about whiterussian, i'd like to have a stable AP for home environment so i've choosen to use WhiteRussian ('cause kamikaze is quite instable), i've created the entire environment as you suggested, i can clearly compile and create my own images, with "make menuconfig" i can create the SDK for making packages too.
i've used:
svn co https://svn.openwrt.org/openwrt/packages

to get the entire package directory so i can compile them by myself.
i'm in the same situation of "openwrt" user, but with whiterussian i cannot compile openldap, lighttpd, php5 and other things. i always get compilation error as reported from openwrt (user) and i cannot figure how to get out.
i understand packages are used by kamikaze but what svn should i do to have my own packages and have them working under whiterussian ?

Can you help me or write me down some notes on how can i solve this problem ?
Thank you in advance for your reply

Regards
Andrea (Ben) Benini

if you need the packages use kamikaze_7.06 (brcm-2.4 or whatever target paltform you are using).

i don't bother with backporting packages anymore. whiterussian is obsolete, and i guess the devs will not touch whiterussian anymore.

EDIT: for kamikaze i have setup my own local subversion and trac packages reposory. there are only packages in it that i require, use and known to compile without problems.

(Last edited by forum2006 on 1 Jun 2007, 18:25)

Thanks forum2006 for your quick reply,
today after reading your response i've seen new official launch of Kamikaze 7.06 on openwrt.org homepage, i'm quite happy of whiterussian but i can understand backporting and support for both whiterussian and kamikaze is an overkill. My router is equipped with Broadcom 5352, 16Mb Ram, Broadcom Wifi card integrated, so i need to use kamikaze 2.4 kernel if i want wifi and 2.6 kernel to use it without wireless.
Hope kamikaze could be stable enough and complete toolchain is easy to setup as whiterussian was

What about mmc module ? as many folks here i'm using mmc compiled module to supply lack of space to my AP, is it working ?
I'd like to recreate a device with php, sqlite, lighttpd and a lot of web pages, SD is a must for lot of us

Andrea (Ben) Benini

What about mmc module ? as many folks here i'm using mmc compiled module to supply lack of space to my AP, is it working ?
I'd like to recreate a device with php, sqlite, lighttpd and a lot of web pages, SD is a must for lot of us

SD mod is working for kamikaze. If you need full support you should switch to kamikaze. As for me, I am happy with whiterussian, because I have successfully compiled php5, lighttpd from the kamikaze tree.
I you still want to use whiterussian you can try to use my packages here: http://nils.bastionbytes.de/packages/
bye

The discussion might have continued from here.