Bug 82028

Summary: `textproc/php4-xml' build fails on 4.11 system.
Product: Ports & Packages Reporter: Lev A. Serebryakov <lev>
Component: Individual Port(s)Assignee: Alex Dupre <ale>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Lev A. Serebryakov freebsd_committer freebsd_triage 2005-06-08 13:40:11 UTC
 
   libtool generates wrong commandline for linker. Extension build fails! Here are log:

===#  Vulnerability check disabled
===#  Extracting for php4-xml-4.3.11_1
=# Checksum OK for php-4.3.11.tar.bz2.
===#  Patching for php4-xml-4.3.11_1
===#   php4-xml-4.3.11_1 depends on executable: phpize - found
===#   php4-xml-4.3.11_1 depends on file: /usr/local/bin/automake15 - found
===#   php4-xml-4.3.11_1 depends on file: /usr/local/bin/autoconf253 - found
===#   php4-xml-4.3.11_1 depends on shared library: expat.5 - found
===#  PHPizing for php4-xml-4.3.11_1
Configuring for:
PHP Api Version:         20020918
Zend Module Api No:      20020429
Zend Extension Api No:   20021010
autoheader253: `config.h.in' is created
===#  Configuring for php4-xml-4.3.11_1
configure: WARNING: you should use --build, --host, --target
checking build system type... i386-portbld-freebsd4.11
checking host system type... i386-portbld-freebsd4.11
checking for i386-portbld-freebsd4.11-gcc... cc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking whether cc understands -c and -o together... yes
checking if compiler supports -R... yes
checking for PHP prefix... /usr/local
checking for PHP includes... -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend
checking for PHP extension directory... /usr/local/lib/php/20020429
checking for re2c... exit 0;
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether byte ordering is bigendian... no
checking whether to enable XML support... yes, shared
checking external libexpat install dir... /usr/local
checking for ld used by GCC... /usr/libexec/elf/ld
checking if the linker (/usr/libexec/elf/ld) is GNU ld... yes
checking for /usr/libexec/elf/ld option to reload object files... -r
checking for BSD-compatible nm... nm
checking for a sed that does not truncate output... /usr/bin/sed
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking command to parse nm output... ok
checking how to run the C preprocessor... cc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... no
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for i386-portbld-freebsd4.11-ranlib... no
checking for ranlib... ranlib
checking for i386-portbld-freebsd4.11-strip... no
checking for strip... strip
checking for objdir... .libs
checking for cc option to produce PIC... -fPIC
checking if cc PIC flag -fPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.lo... yes
checking if cc supports -fno-rtti -fno-exceptions... yes
checking whether the linker (/usr/libexec/elf/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... freebsd4.11 ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking whether -lc should be explicitly linked in... yes
creating libtool
configure: creating ./config.status
config.status: creating config.h
===#  Building for php4-xml-4.3.11_1
/bin/sh /usr/ports/textproc/php4-xml/work/php-4.3.11/ext/xml/libtool --mode=compile cc  -I. -I/usr/ports/textproc/php4-xml/work/php-4.3.11/ext/xml -DPHP_ATOM_INC -I/usr/ports/textproc/php4-xml/work/php-4.3.11/ext/xml/include -I/usr/ports/textproc/php4-xml/work/php-4.3.11/ext/xml/main -I/usr/ports/textproc/php4-xml/work/php-4.3.11/ext/xml -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include  -DHAVE_CONFIG_H  -O -pipe   -c /usr/ports/textproc/php4-xml/work/php-4.3.11/ext/xml/xml.c -o xml.lo
cc -I. -I/usr/ports/textproc/php4-xml/work/php-4.3.11/ext/xml -DPHP_ATOM_INC -I/usr/ports/textproc/php4-xml/work/php-4.3.11/ext/xml/include -I/usr/ports/textproc/php4-xml/work/php-4.3.11/ext/xml/main -I/usr/ports/textproc/php4-xml/work/php-4.3.11/ext/xml -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include -DHAVE_CONFIG_H -O -pipe -c /usr/ports/textproc/php4-xml/work/php-4.3.11/ext/xml/xml.c  -fPIC -DPIC -o xml.lo
/bin/sh /usr/ports/textproc/php4-xml/work/php-4.3.11/ext/xml/libtool --mode=link cc -DPHP_ATOM_INC -I/usr/ports/textproc/php4-xml/work/php-4.3.11/ext/xml/include -I/usr/ports/textproc/php4-xml/work/php-4.3.11/ext/xml/main -I/usr/ports/textproc/php4-xml/work/php-4.3.11/ext/xml -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include  -DHAVE_CONFIG_H  -O -pipe   -o ./xml.la -export-dynamic -avoid-version -prefer-pic -module -rpath /usr/ports/textproc/php4-xml/work/php-4.3.11/ext/xml/modules  xml.lo -R/usr/local/lib -L/usr/local/lib -lexpat
mkdir ./.libs
rm -fr ./.libs/xml.la ./.libs/xml.* ./.libs/xml.*
(cd . && ln -s xml.lo xml.o)
cc -shared  xml.lo  -Wl,--rpath -Wl,/usr/local/lib/.libs -Wl,--rpath -Wl,/usr/local/lib  -L/usr/local/lib /usr/local/lib/.libs/libexpat.so   -Wl,-soname -Wl,xml.so -o ./.libs/xml.so
cc: /usr/local/lib/.libs/libexpat.so: No such file or directory
*** Error code 1

Stop in /usr/ports/textproc/php4-xml/work/php-4.3.11/ext/xml.
*** Error code 1

Stop in /usr/ports/textproc/php4-xml.

How-To-Repeat: 
   Try to build `textproc/php-xml' on 4-STABLE system.
Comment 1 Lev A. Serebryakov freebsd_committer freebsd_triage 2005-06-08 18:57:37 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ale


Over to maintainer.
Comment 2 Pav Lucistnik freebsd_committer freebsd_triage 2005-06-08 19:56:27 UTC
State Changed
From-To: open->closed

1) Fix is in ports/82020 
2) It's not ale's fault