Trouble buildint php

Auke Kok sofar at lunar-linux.org
Sun Jan 30 10:15:14 UTC 2005


Richard Pyne wrote:
> On 29 Jan 2005 at 21:14, Auke Kok wrote:
> 
> 
>>Richard Pyne wrote:
>>
>>>I'm having a problem building php that I haven't been able to 
>>>figure out. I'm getting:
>>>
>>>checking for libedit readline replacement... no
>>>checking for readline support... yes
>>>checking for tgetent in -lncurses... no
>>>checking for tgetent in -ltermcap... no
>>>checking for readline in -lreadline... no
>>>configure: error: readline library not found
>>>Creating /var/log/lunar/compile/php-4.3.10.bz2
>>>! Problem detected during BUILD
>>>
>>>
>>>I know libreadline is available because:
>>>
>>># updatedb
>>># locate libreadline
>>>/lib/libreadline.a
>>>/lib/libreadline.so
>>>/lib/libreadline.so.5
>>>/lib/libreadline.so.5.0
>>>
>>>
>>>I'm sure that it is something stupid that I am missing, but I 
>>>can't find what.
>>>
>>>Thanks in advance for any help.
>>
>>readline is so basic that when it upgraded frmo .4 to .5 a couple of 
>>base modules need to be relinked.
>>
>>The one that breaks php is 'aspell'.
>>
>>Use 'lunar nofix' to find out which ones need a rebuild and why.
> 
> 
> This is still happening even after a 'lunar rebuild'. The 
> results of 'lunar nofix' are:
> 
> # lunar nofix
> /usr/bin/cpio   of      cpio    has wrong md5sum.
> /usr/sbin/lnet of lunar-tools is missing.
> /usr/bin/php    of      php     is broken.
>         libhistory.so.4 => not found
>         libreadline.so.4 => not found
>         libmysqlclient.so.12 => not found
>         libdb-3.3.so => not found
>         libcurl.so.2 => not found

okay. as you can see php is built against readline.4 If you have 
completely properly rebuilt *and* libreadline.4 was not present the 
build should have faild. Obviously you are missing something in the 
rebuild... You cannot rebuild php unless...

*please* check if you have aspell and if it is linked correctly. As I've 
noticed already in 3 bugreports Aspell was the culprit. If you have it 
then try removing it.

Note that php doesn't link directly to readline but one of the 
dependencies does.

which modules failed to recompile during your rebuild?

> 
> 
> 'lin cpio' gives:
> 
> config.status: creating po/Makefile
> config.status: executing tests/atconfig commands
> make: *** No rule to make target `cpio'.  Stop.
> Creating /var/log/lunar/compile/cpio-2.6.bz2
> ! Problem detected during BUILD

*shrug* no idea

> The incorrect checksum comes from finishing the build and 
> install manually from the cpio source directory.

wha?

> 'lin lunar-tools' gives:
> 
> Resolving lunar-linux.org... 213.201.214.201
> Connecting to lunar-linux.org[213.201.214.201]:80... failed: 
> Connection refused.
> Building lunar-tools
> Missing lunar-tools-2004.6.tar.bz2
> Lunar Install aborting.
> Creating /var/log/lunar/compile/lunar-tools-2004.6.bz2
> ! Problem detected during PRE_BUILD

okay the website was unavailable for a second or your network down. I 
assure you the file is there. (did you do something nasty to our server?)

> and 'lin php'
> 
> gives the results listed above.
> 
> # updatedb
> # locate libhistory

ah yes please don't use 'locate' but something that actually looks at 
the filesystem while you are testing/debugging. Locate shows you files 
that were around last night, not now ;^)

> /lib/libhistory.a
> /lib/libhistory.so
> /lib/libhistory.so.5
> /lib/libhistory.so.5.0
> 
> # locate libreadline
> /lib/libreadline.a
> /lib/libreadline.so
> /lib/libreadline.so.5
> /lib/libreadline.so.5.0
> 
> # locate libmysqlclient
> /usr/lib/libmysqlclient.a
> /usr/lib/libmysqlclient.la
> /usr/lib/libmysqlclient_r.a
> /usr/lib/libmysqlclient_r.la
> /usr/lib/libmysqlclient_r.so
> /usr/lib/libmysqlclient_r.so.14
> /usr/lib/libmysqlclient_r.so.14.0.0
> /usr/lib/libmysqlclient.so
> /usr/lib/libmysqlclient.so.14
> /usr/lib/libmysqlclient.so.14.0.0
> 
> # locate libdb
> /usr/lib/libdb-3.so
> /usr/lib/libdb-4.3.a
> /usr/lib/libdb-4.3.la
> /usr/lib/libdb-4.3.so
> /usr/lib/libdb-4.so
> /usr/lib/libdb.a
> /usr/lib/libdb_cxx-3.so
> /usr/lib/libdb_cxx-4.3.a
> /usr/lib/libdb_cxx-4.3.la
> /usr/lib/libdb_cxx-4.3.so
> /usr/lib/libdb_cxx-4.so
> /usr/lib/libdb_cxx.a
> /usr/lib/libdb_cxx.so
> /usr/lib/libdb.so
> /usr/lib/libdb_tcl-4.3.a
> /usr/lib/libdb_tcl-4.3.la
> /usr/lib/libdb_tcl-4.3.so
> /usr/lib/libdb_tcl-4.so
> /usr/lib/libdb_tcl.so
> 
> # locate libcurl
> /usr/lib/libcurl.a
> /usr/lib/libcurl.la
> /usr/lib/libcurl.so
> /usr/lib/libcurl.so.3
> /usr/lib/libcurl.so.3.0.0
> 
> 
> The other thing that is strange is that 'lin mysql' errors after 
> it has built and installed:
> 
> 
> Killing mysqld with pid 25556
> Wait for mysqld to exit\c
> .\c
> STOPPING server from pid file /var/lib/mysql/Behling.pid
> 050129 17:27:21  mysqld ended
> 
>  done
> + releasing library "/usr/src/mysql-
> 4.1.9/old.libraries/libmysqlclient_r.so"
> + releasing library "/usr/src/mysql-
> 4.1.9/old.libraries/libmysqlclient_r.so.14"
> + releasing library "/usr/src/mysql-
> 4.1.9/old.libraries/libmysqlclient_r.so.14.0.0"
> + releasing library "/usr/src/mysql-
> 4.1.9/old.libraries/libmysqlclient.so"
> + releasing library "/usr/src/mysql-
> 4.1.9/old.libraries/libmysqlclient.so.14"
> + releasing library "/usr/src/mysql-
> 4.1.9/old.libraries/libmysqlclient.so.14.0.0"
> Creating /var/log/lunar/compile/mysql-4.1.9.bz2
> Starting mysqld daemon with databases from /var/lib/mysql
> Creating /var/log/lunar/install/mysql-4.1.9
> Creating /var/log/lunar/md5sum/mysql-4.1.9
> Creating /var/cache/lunar/mysql-4.1.9-i686-pc-linux-gnu.tar.bz2
> + updating lunar state files after module installation
> + module size is 16412KB
> + removing installwatch file
> + destroying building dir "/usr/src/mysql-4.1.9"
> ! Problem detected

btw this could be the reason php still is linked against readline.4.... 
weird tho. No idea yet.

sofar


More information about the Lunar mailing list