Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Aug 2006 16:22:54 +0200
From:      "Matias Surdi" <matiassurdi@gmail.com>
To:        ports@freebsd.org
Subject:   Re: php5-mysq ext/ftp/config.h problem
Message-ID:  <720ff42b0608260722g33b0970fkb4337b0b8d9126e4@mail.gmail.com>
In-Reply-To: <720ff42b0608260534v67cf0146je7c8203403b1ff0b@mail.gmail.com>
References:  <720ff42b0608260534v67cf0146je7c8203403b1ff0b@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
I finally solved the problem, so , for the archive:

First I deleted php5 package and all its dependencies with pkg_delete
then removed the entire directory /usr/local/include/php (despite of
the problematic file was /usr/local/include/php/ext/php_config.inc).
After this, I installed from the ports php5 and everything works well
since then.




2006/8/26, Matias Surdi <matiassurdi@gmail.com>:
> Hi, I'm dealing with this problem for a long while. I can't install
> anything who depends on php5-mysql or similar php5-* packages, here is
> the output:
> Thanks for your time and help.
>
>
> [root@bender /usr/ports]# portinstall php5-mysql
> --->  Installing 'php5-mysql-5.1.5' from a port (databases/php5-mysql)
> --->  Building '/usr/ports/databases/php5-mysql'
> ===>  Cleaning for php5-5.1.5
> ===>  Cleaning for autoconf-2.59_2
> ===>  Cleaning for mysql-client-5.0.24
> ===>  Cleaning for apache-2.2.3
> ===>  Cleaning for pkg-config-0.20_2
> ===>  Cleaning for libxml2-2.6.26
> ===>  Cleaning for perl-5.8.8
> ===>  Cleaning for m4-1.4.4
> ===>  Cleaning for help2man-1.36.4_1
> ===>  Cleaning for gmake-3.81_1
> ===>  Cleaning for libtool-1.5.22_2
> ===>  Cleaning for ldconfig_compat-1.0_8
> ===>  Cleaning for python-2.4.3
> ===>  Cleaning for expat-2.0.0_1
> ===>  Cleaning for libiconv-1.9.2_2
> ===>  Cleaning for p5-gettext-1.05_1
> ===>  Cleaning for gettext-0.14.5_2
> ===>  Cleaning for php5-mysql-5.1.5
> ===>  Vulnerability check disabled, database not found
> ===>  Extracting for php5-mysql-5.1.5
> => MD5 Checksum OK for php-5.1.5.tar.bz2.
> => SHA256 Checksum OK for php-5.1.5.tar.bz2.
> ===>  Patching for php5-mysql-5.1.5
> ===>   php5-mysql-5.1.5 depends on executable in : phpize - found
> ===>   php5-mysql-5.1.5 depends on file: /usr/local/bin/autoconf259 - found
> ===>   php5-mysql-5.1.5 depends on shared library: mysqlclient.15 - found
> ===>  PHPizing for php5-mysql-5.1.5
> Configuring for:
> PHP Api Version:         20041225
> Zend Module Api No:      20050922
> Zend Extension Api No:   220051025
> ===>  Configuring for php5-mysql-5.1.5
> configure: WARNING: you should use --build, --host, --target
> checking for egrep... grep -E
> checking for a sed that does not truncate output... /usr/local/bin/gsed
> checking for i386-portbld-freebsd6.0-gcc... cc
> checking for C compiler default output file name... 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 for cc option to accept ANSI C... none needed
> checking whether cc understands -c and -o together... yes
> checking if compiler supports -R... yes
> checking build system type... i386-portbld-freebsd6.0
> checking host system type... i386-portbld-freebsd6.0
> checking target system type... i386-portbld-freebsd6.0
> 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 -I/usr/local/include/php/ext
> checking for PHP extension directory... /usr/local/lib/php/20050922
> checking for PHP installed headers prefix... /usr/local/include/php
> checking for re2c... no
> configure: WARNING: You will need re2c 0.9.11 or later if you want to
> regenerate PHP parsers.
> checking for gawk... no
> checking for nawk... nawk
> checking if nawk is broken... no
> checking for MySQL support... yes, shared
> checking for specified location of the MySQL UNIX socket... no
> checking for the location of libz... /usr
> checking for MySQL UNIX socket location... no
> checking for mysql_close in -lmysqlclient... yes
> checking for ld used by cc... /usr/bin/ld
> checking if the linker (/usr/bin/ld) is GNU ld... yes
> checking for /usr/bin/ld option to reload object files... -r
> checking for BSD-compatible nm... nm
> checking whether ln -s works... yes
> checking how to recognise dependent libraries... pass_all
> 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... yes
> checking for unistd.h... yes
> checking dlfcn.h usability... yes
> checking dlfcn.h presence... yes
> checking for dlfcn.h... yes
> checking for i386-portbld-freebsd6.0-g++... c++
> checking whether we are using the GNU C++ compiler... yes
> checking whether c++ accepts -g... yes
> checking how to run the C++ preprocessor... c++ -E
> checking the maximum length of command line arguments... (cached) 262144
> checking command to parse nm output from cc object... ok
> checking for objdir... .libs
> checking for i386-portbld-freebsd6.0-ar... no
> checking for ar... ar
> checking for i386-portbld-freebsd6.0-ranlib... no
> checking for ranlib... ranlib
> checking for i386-portbld-freebsd6.0-strip... no
> checking for strip... strip
> checking if cc static flag  works... yes
> checking if cc supports -fno-rtti -fno-exceptions... no
> checking for cc option to produce PIC... -fPIC
> checking if cc PIC flag -fPIC works... yes
> checking if cc supports -c -o file.o... yes
> checking whether the cc linker (/usr/bin/ld) supports shared libraries... yes
> checking whether -lc should be explicitly linked in... yes
> checking dynamic linker characteristics... freebsd6.0 ld.so
> checking how to hardcode library paths into programs... immediate
> checking whether stripping libraries is possible... yes
> checking if libtool supports shared libraries... yes
> checking whether to build shared libraries... yes
> checking whether to build static libraries... no
>
> creating libtool
> appending configuration tag "CXX" to libtool
> checking for ld used by c++... /usr/bin/ld
> checking if the linker (/usr/bin/ld) is GNU ld... yes
> checking whether the c++ linker (/usr/bin/ld) supports shared libraries... yes
> checking for c++ option to produce PIC... -fPIC
> checking if c++ PIC flag -fPIC works... yes
> checking if c++ supports -c -o file.o... yes
> checking whether the c++ linker (/usr/bin/ld) supports shared libraries... yes
> checking dynamic linker characteristics... freebsd6.0 ld.so
> checking how to hardcode library paths into programs... immediate
> checking whether stripping libraries is possible... yes
> configure: creating ./config.status
> config.status: creating config.h
> ===>  Building for php5-mysql-5.1.5
> /bin/sh /usr/ports/databases/php5-mysql/work/php-5.1.5/ext/mysql/libtool
> --mode=compile cc  -I.
> -I/usr/ports/databases/php5-mysql/work/php-5.1.5/ext/mysql
> -DPHP_ATOM_INC -I/usr/ports/databases/php5-mysql/work/php-5.1.5/ext/mysql/include
> -I/usr/ports/databases/php5-mysql/work/php-5.1.5/ext/mysql/main
> -I/usr/ports/databases/php5-mysql/work/php-5.1.5/ext/mysql
> -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/php/ext -I/usr/local/include/mysql
> -DHAVE_CONFIG_H  -O2 -fno-strict-aliasing -pipe   -c
> /usr/ports/databases/php5-mysql/work/php-5.1.5/ext/mysql/php_mysql.c
> -o php_mysql.lo
> mkdir .libs
>  cc -I. -I/usr/ports/databases/php5-mysql/work/php-5.1.5/ext/mysql
> -DPHP_ATOM_INC -I/usr/ports/databases/php5-mysql/work/php-5.1.5/ext/mysql/include
> -I/usr/ports/databases/php5-mysql/work/php-5.1.5/ext/mysql/main
> -I/usr/ports/databases/php5-mysql/work/php-5.1.5/ext/mysql
> -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/php/ext -I/usr/local/include/mysql
> -DHAVE_CONFIG_H -O2 -fno-strict-aliasing -pipe -c
> /usr/ports/databases/php5-mysql/work/php-5.1.5/ext/mysql/php_mysql.c
> -fPIC -DPIC -o .libs/php_mysql.o
> In file included from /usr/local/include/php/main/../main/php_config.h:2777,
>                  from /usr/local/include/php/Zend/zend_config.h:1,
>                  from /usr/local/include/php/Zend/zend.h:53,
>                  from /usr/local/include/php/main/php.h:34,
>                  from
> /usr/ports/databases/php5-mysql/work/php-5.1.5/ext/mysql/php_mysql.c:32:
> /usr/local/include/php/ext/php_config.h:1:28: ext/ftp/config.h: No
> such file or directory
> *** Error code 1
>
> Stop in /usr/ports/databases/php5-mysql/work/php-5.1.5/ext/mysql.
> *** Error code 1
>
> Stop in /usr/ports/databases/php5-mysql.
> ** Command failed [exit code 1]: /usr/bin/script -qa
> /tmp/portinstall3095.0 env make
> ** Fix the problem and try again.
> ** Listing the failed packages (*:skipped / !:failed)
>         ! databases/php5-mysql  (missing header)
> --->  Packages processed: 0 done, 0 ignored, 0 skipped and 1 failed
> [root@bender /usr/ports]#
>
>
>
>
> --
> Matias Emanuel Surdi.
>


-- 
Matias Emanuel Surdi.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?720ff42b0608260722g33b0970fkb4337b0b8d9126e4>