php5 5.2.5 -> 5.2.6 upgrade fails ?
Bill Hernandez
ms at mac-specialist.com
Mon Jul 7 11:04:44 PDT 2008
On Jul 6, 2008, at 9:13 PM, Ryan Schmidt wrote:
> Is the C compiler installed -- e.g., is Xcode installed? Try
> reinstalling the latest version.
> Or send us the config.log. Maybe it contains more information.
Ryan,
You were absolutely correct about xCode tools.
Usually I am very methodical when I do complete re-install of the
operating system, but the other day I was having a problem that I
couldn't solve, and decided to do a quick OS re-install with archive
and forgot to re-install X11 and the Developer Tools.
Funny how much better it all works when the compiler is there...
MOST everything installed fine but there were several items that FAILED.
( 1 ) sqlite failed when installed on its own, and later as expected
when required by Apache2, and later by PHP5
( 2 ) for some reason the php 5.2..6 installer could not find awk,
yet...
$ sudo find / -name awk
Password:
/opt/local/libexec/awk
/opt/local/share/awk
/opt/local/var/macports/software/gawk/3.1.6_0/opt/local/libexec/awk
/opt/local/var/macports/software/gawk/3.1.6_0/opt/local/share/awk
/usr/bin/awk
$ port installed
The following ports are currently installed:
<snip> ... </snip>
gawk @3.1.6_0 (active)
<snip> ... </snip>
$ sudo port -d selfupdate
$ sudo port outdated
The following installed ports are outdated:
apache2 2.2.8_0 < 2.2.9_1
apr 1.2.12_1 < 1.3.2_0
apr-util 1.2.12_0 < 1.3.2_0
bzip2 1.0.5_0 < 1.0.5_1
curl 7.18.1_2 < 7.18.2_0
fontconfig 2.5.0_0 < 2.6.0_0
freetype 2.3.5_1 < 2.3.7_1
libpng 1.2.26_0 < 1.2.29_0
libxml2 2.6.31_0 < 2.6.32_1
libxslt 1.1.22_0 < 1.1.23_0
m4 1.4.10_1 < 1.4.11_0
openssl 0.9.8g_0 < 0.9.8h_0
ossp-uuid 1.6.0_2 < 1.6.1_0
pcre 7.6_0 < 7.7_0
perl5.8 5.8.8_2 < 5.8.8_3
php5 5.2.5_3 < 5.2.6_1
postgresql83 8.3.1_0 < 8.3.3_0
postgresql83-doc 8.3.1_0 < 8.3.3_0
postgresql83-server 8.3.1_0 < 8.3.3_0
readline 5.2.007_0 < 5.2.012_1
sqlite3 3.5.8_0 < 3.5.9_0
tiff 3.8.2_1 < 3.8.2_2
$ sudo port upgrade outdated
<snip> ... </snip>
---> Attempting to fetch sqlite-3.5.9.tar.gz from http://www.sqlite.org/
---> Verifying checksum(s) for sqlite3
---> Extracting sqlite3
---> Configuring sqlite3
---> Building sqlite3 with target all
Error: Target org.macports.build returned: shell command " cd "/opt/
local/var/macports/build/
_opt_local_var_macports_sources_rsync
.macports.org_release_ports_databases_sqlite3/work/sqlite-3.5.9" &&
gnumake all " returned error 2
Command output: sed -e s/--VERS--/3.5.9/ ./src/sqlite.h.in | \
sed -e s/--VERSION-NUMBER--/3005009/ >sqlite3.h
/usr/bin/gcc-4.0 -O2 -o mkkeywordhash ./tool/mkkeywordhash.c
./mkkeywordhash >keywordhash.h
/usr/bin/gcc-4.0 -O2 -o lemon ./tool/lemon.c
cp ./tool/lempar.c .
cp ./src/parse.y .
./lemon parse.y
mv parse.h parse.h.temp
f ./addopcodes.awk parse.h.temp >parse.h
/bin/sh: f: command not found
gnumake: [parse.c] Error 127 (ignored)
cat parse.h ./src/vdbe.c | -f ./mkopcodeh.awk >opcodes.h
/bin/sh: -f: command not found
cat: stdout: Broken pipe
gnumake: *** [opcodes.h] Error 127
Error: Unable to upgrade port: 1
---> Configuring apache2
---> Building apache2 with target all
Error: Target org.macports.build returned: shell command " cd "/opt/
local/var/macports/build/
_opt_local_var_macports_sources_rsync
.macports.org_release_ports_www_apache2/work/httpd-2.2.9" && make all
" returned error 2
Command output: /opt/local/share/apr-1/build/libtool --silent --
mode=link /usr/bin/gcc-4.0 -I/opt/local/include -O2 -L/opt/local/
lib/db46 -L/opt/local/lib -o logresolve logresolve.lo -L/opt/local/
lib -lpcre /opt/local/lib/libaprutil-1.la -ldb-4.6 -lexpat -liconv /
opt/local/lib/libapr-1.la -lpthread
<snip> ... </snip>
server/mpm/prefork/libprefork.la os/unix/libos.la -L/opt/local/lib -
lpcre /opt/local/lib/libaprutil-1.la -ldb-4.6 -lexpat -liconv /opt/
local/lib/libapr-1.la -lpthread
Undefined symbols:
"_ap_ugly_hack", referenced from:
_ap_ugly_hack$non_lazy_ptr in libmain.a(main.o)
"_ap_prelinked_module_symbols", referenced from:
_ap_prelinked_module_symbols$non_lazy_ptr in libmain.a(core.o)
"_ap_prelinked_modules", referenced from:
_ap_prelinked_modules$non_lazy_ptr in libmain.a(main.o)
_ap_prelinked_modules$non_lazy_ptr in libmain.a(config.o)
"_ap_http_input_filter_handle", referenced from:
_ap_http_input_filter_handle$non_lazy_ptr in
libmain.a(protocol.o)
"_ap_preloaded_modules", referenced from:
_ap_preloaded_modules$non_lazy_ptr in libmain.a(config.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[1]: *** [httpd] Error 1
make: *** [all-recursive] Error 1
Error: Unable to upgrade port: 1
---> Building sqlite3 with target all
Error: Target org.macports.build returned: shell command " cd "/opt/
local/var/macports/build/
_opt_local_var_macports_sources_rsync
.macports.org_release_ports_databases_sqlite3/work/sqlite-3.5.9" &&
gnumake all " returned error 2
Command output: sort -n -b -k 3 opcodes.h | -f ./mkopcodec.awk
>opcodes.c
/bin/sh: -f: command not found
gnumake: *** [opcodes.c] Error 127
Error: Unable to upgrade port: 1
---> Attempting to fetch php-5.2.6.tar.bz2 from http://www.php.net/distributions/
---> Verifying checksum(s) for php5
---> Extracting php5
---> Configuring php5
Error: Target org.macports.configure returned: configure failure:
shell command " cd "/opt/local/var/macports/build/
_opt_local_var_macports_sources_rsync
.macports.org_release_ports_www_php5/work/php-5.2.6" && ./configure --
prefix=/opt/local --mandir=/opt/local/share/man --infodir=/opt/local/
share/info --with-config-file-path=/opt/local/etc --enable-calendar --
with-iconv=/opt/local --enable-exif --enable-ftp --enable-wddx --with-
zlib=/opt/local --with-bz2=/opt/local --with-libxml-dir=/opt/local --
with-gettext=/opt/local --with-xml --with-expat-dir=/opt/local --with-
xmlrpc --enable-soap --enable-filepro --enable-bcmath --enable-trans-
sid --enable-mbstring --enable-dbx --enable-dba --enable-zip --with-
openssl=/opt/local --with-mhash=/opt/local --with-mcrypt=/opt/local --
with-xsl=/opt/local --with-curl=/opt/local --with-pcre-regex=/opt/
local --with-gd=/opt/local --with-jpeg-dir=/opt/local --with-png-dir=/
opt/local --enable-gd-native-ttf --with-freetype-dir=/opt/local --with-
ldap=/usr --with-kerberos=/usr --with-iodbc=/usr --with-apxs2=/opt/
local/apache2/bin/apxs --with-tidy=/opt/local --with-mysql=/opt/local/
var/macports/build/
_opt_local_var_macports_sources_rsync
.macports.org_release_ports_www_php5/work/mysql5 --with-pdo-mysql=/opt/
local/bin/mysql_config5 --with-mysql-sock=/opt/local/var/run/mysql5/
mysqld.sock --with-mysqli=/opt/local/bin/mysql_config5 --with-pgsql=/
opt/local/lib/postgresql83/bin --with-pdo-pgsql=/opt/local/lib/
postgresql83/bin --with-sqlite --with-pdo-sqlite=/opt/local --enable-
sqlite-utf8 --enable-shmop --enable-sysvsem --enable-sysvshm --enable-
sysvmsg --enable-pcntl --with-pear=/opt/local/lib/php --with-readline=/
opt/local --enable-sockets " returned error 1
Command output: checking for Cygwin environment... no
<snip> ... </snip>
configure: warning: You will need re2c 0.12.0 or later if you want to
regenerate PHP parsers.
checking for gawk... (cached) no
checking for nawk... (cached) no
checking for awk... (cached) no
checking for mawk... (cached) no
configure: error: Could not find awk; Install GNU awk
Error: Unable to upgrade port: 1
---> Fetching postgresql83
---> Attempting to fetch postgresql-8.3.3.tar.bz2 from http://ftp8.de.postgresql.org/pub/misc/pgsql//source/v8.3.3/
---> Verifying checksum(s) for postgresql83
---> Extracting postgresql83
---> Configuring postgresql83
---> Building postgresql83
Error: Target org.macports.build returned: shell command " cd "/opt/
local/var/macports/build/
_opt_local_var_macports_sources_rsync
.macports.org_release_ports_databases_postgresql83/work/
postgresql-8.3.3" && gnumake " returned error 2
Command output: /usr/bin/gcc-4.0 -no-cpp-precomp -O2 -I/opt/local/
include -I/opt/local/include/ossp -Wall -Wmissing-prototypes -Wpointer-
arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-
strict-aliasing -fwrapv -I../../../../src/include -I/opt/local/include
-I/opt/local/include/libxml2 -I/opt/local/include -c -o tsrank.o
tsrank.c
<snip> ... </snip>
/usr/bin/gcc-4.0 -no-cpp-precomp -O2 -I/opt/local/include -I/opt/local/
include/ossp -Wall -Wmissing-prototypes -Wpointer-arith -Winline -
Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -
fwrapv -I../../../../src/include -I/opt/local/include -I/opt/local/
include/libxml2 -I/opt/local/include -DDLSUFFIX=\".so\" -c -o
dfmgr.o dfmgr.c
dfmgr.c:82: error: syntax error before '/' token
gnumake[4]: *** [dfmgr.o] Error 1
gnumake[3]: *** [fmgr-recursive] Error 2
gnumake[2]: *** [utils-recursive] Error 2
gnumake[1]: *** [all] Error 2
gnumake: *** [all] Error 2
Error: Unable to upgrade port: 1
---> Fetching postgresql83-doc
---> Verifying checksum(s) for postgresql83-doc
---> Extracting postgresql83-doc
---> Configuring postgresql83-doc
---> Building postgresql83-doc
---> Staging postgresql83-doc into destroot
---> Deactivating postgresql83-doc 8.3.1_0
---> Installing postgresql83-doc 8.3.3_0
---> Activating postgresql83-doc 8.3.3_0
---> Cleaning postgresql83-doc
---> Building postgresql83
Error: Target org.macports.build returned: shell command " cd "/opt/
local/var/macports/build/
_opt_local_var_macports_sources_rsync
.macports.org_release_ports_databases_postgresql83/work/
postgresql-8.3.3" && gnumake " returned error 2
Command output: gnumake[4]: `SUBSYS.o' is up to date.
<snip> ... </snip>
/usr/bin/gcc-4.0 -no-cpp-precomp -O2 -I/opt/local/include -I/opt/local/
include/ossp -Wall -Wmissing-prototypes -Wpointer-arith -Winline -
Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -
fwrapv -I../../../../src/include -I/opt/local/include -I/opt/local/
include/libxml2 -I/opt/local/include -DDLSUFFIX=\".so\" -c -o
dfmgr.o dfmgr.c
dfmgr.c:82: error: syntax error before '/' token
gnumake[4]: *** [dfmgr.o] Error 1
gnumake[3]: *** [fmgr-recursive] Error 2
gnumake[2]: *** [utils-recursive] Error 2
gnumake[1]: *** [all] Error 2
gnumake: *** [all] Error 2
Error: Unable to upgrade port: 1
---> Fetching postgresql83-server
---> Verifying checksum(s) for postgresql83-server
-<snip> ... </snip>
To tweak your DBMS, consider increasing kern.sysv.shmmax by adding an
increased kern.sysv.shmmax .. to /etc/sysctl.conf
---> Activating postgresql83-server 8.3.3_0
---> Cleaning postgresql83-server
---> Building sqlite3 with target all
Error: Target org.macports.build returned: shell command " cd "/opt/
local/var/macports/build/
_opt_local_var_macports_sources_rsync
.macports.org_release_ports_databases_sqlite3/work/sqlite-3.5.9" &&
gnumake all " returned error 2
Command output: sqlite3.c:75960: error: 'TK_GE' undeclared (first use
in this function)
sqlite3.c:75963: error: 'TK_RSHIFT' undeclared (first use in this
function)
sqlite3.c:75966: error: 'TK_GT' undeclared (first use in this function)
sqlite3.c:75972: error: 'TK_ILLEGAL' undeclared (first use in this
function)
sqlite3.c:75981: error: 'TK_BITOR' undeclared (first use in this
function)
sqlite3.c:75984: error: 'TK_CONCAT' undeclared (first use in this
function)
sqlite3.c:75989: error: 'TK_COMMA' undeclared (first use in this
function)
sqlite3.c:75993: error: 'TK_BITAND' undeclared (first use in this
function)
sqlite3.c:75997: error: 'TK_BITNOT' undeclared (first use in this
function)
sqlite3.c:76014: error: 'TK_STRING' undeclared (first use in this
function)
sqlite3.c:76026: error: 'TK_DOT' undeclared (first use in this function)
sqlite3.c:76034: error: 'TK_INTEGER' undeclared (first use in this
function)
sqlite3.c:76040: error: 'TK_FLOAT' undeclared (first use in this
function)
sqlite3.c:76060: error: 'TK_ID' undeclared (first use in this function)
sqlite3.c:76060: warning: assignment makes integer from pointer
without a cast
sqlite3.c:76064: error: 'TK_VARIABLE' undeclared (first use in this
function)
sqlite3.c:76073: error: 'TK_REGISTER' undeclared (first use in this
function)
sqlite3.c:76113: error: 'TK_BLOB' undeclared (first use in this
function)
sqlite3.c: In function 'sqlite3RunParser':
sqlite3.c:76184: error: 'TK_SPACE' undeclared (first use in this
function)
sqlite3.c:76184: warning: case label value exceeds maximum value for
type
sqlite3.c:76185: error: 'TK_COMMENT' undeclared (first use in this
function)
sqlite3.c:76185: warning: case label value exceeds maximum value for
type
sqlite3.c:76193: error: 'TK_ILLEGAL' undeclared (first use in this
function)
sqlite3.c:76193: warning: case label value exceeds maximum value for
type
sqlite3.c:76202: error: 'TK_SEMI' undeclared (first use in this
function)
sqlite3.c:76202: warning: case label value exceeds maximum value for
type
sqlite3.c:76218: warning: comparison between pointer and integer
sqlite3.c:76219: warning: passing argument 2 of 'sqlite3Parser' makes
integer from pointer without a cast
gnumake: *** [sqlite3.lo] Error 1
Error: Unable to upgrade port: 1
$ port installed
The following ports are currently installed:
apache2 @2.2.8_0+darwin_9 (active)
apr @1.2.12_1+darwin_9
apr @1.3.2_0+darwin_9 (active)
apr-util @1.2.12_0
apr-util @1.3.2_0 (active)
bison @2.3_2 (active)
bzip2 @1.0.5_0
bzip2 @1.0.5_1 (active)
curl @7.18.1_2
curl @7.18.2_0 (active)
cyrus-sasl2 @2.1.21_0+kerberos (active)
db44 @4.4.20_1 (active)
db46 @4.6.21_1 (active)
expat @2.0.1_0 (active)
fontconfig @2.5.0_0+macosx
fontconfig @2.6.0_0+macosx (active)
freetype @2.3.5_1
freetype @2.3.7_1 (active)
gawk @3.1.6_0 (active)
gd2 @2.0.35_1 (active)
gettext @0.17_3 (active)
gmake @3.81_0 (active)
gperf @3.0.3_0 (active)
jpeg @6b_2 (active)
libiconv @1.12_0 (active)
libmcrypt @2.5.8_0 (active)
libpng @1.2.26_0
libpng @1.2.29_0 (active)
libtool @1.5.26_0 (active)
libxml2 @2.6.31_0
libxml2 @2.6.32_1 (active)
libxslt @1.1.22_0
libxslt @1.1.23_0 (active)
m4 @1.4.10_1
m4 @1.4.11_0 (active)
mhash @0.9.9_0 (active)
mysql5 @5.0.51a_0+server (active)
ncurses @5.6_0 (active)
ncursesw @5.6_1 (active)
openldap @2.3.35_0 (active)
openssl @0.9.8g_0
openssl @0.9.8h_0 (active)
ossp-uuid @1.6.0_2
ossp-uuid @1.6.1_0 (active)
pcre @7.6_0
pcre @7.7_0 (active)
perl5.8 @5.8.8_2+darwin_9
perl5.8 @5.8.8_3+darwin_9 (active)
php5 @5.2.5_3+apache2+fastcgi+ipc+macosx+mysql5+pcntl+pear
+postgresql83+readline+sockets+sqlite+tidy (active)
pkgconfig @0.23_0 (active)
postgresql83 @8.3.1_0 (active)
postgresql83-doc @8.3.1_0
postgresql83-doc @8.3.3_0 (active)
postgresql83-server @8.3.1_0
postgresql83-server @8.3.3_0 (active)
readline @5.2.007_0+darwin_9
readline @5.2.012_1 (active)
rpl @1.4.0_0 (active)
sqlite3 @3.5.8_0 (active)
tidy @20051026_0 (active)
tiff @3.8.2_1+macosx
tiff @3.8.2_2+darwin_9+macosx (active)
zlib @1.2.3_1 (active)
Bill Hernandez
Plano, Texas
More information about the macports-users
mailing list