problems building php

From: Date: Mon, 01 May 2000 00:36:25 +0000
Subject: problems building php
Groups: php.dev 
Request: Send a blank email to php-dev+get-18313@lists.php.net to get a copy of this message
I've been having trouble building the latest php4 (release candidate 1). The problem may be that I'm using an ancient (2.2.2) freebsd, but I was able to build the previous release ok just a few weeks ago. I can build standard Apache 1.3.12 with mysql and php 3.0.16 no problem, so it must be something in the latest php4 that's the problem. As far as I know the changes between this and the previous versions were very minor. Maybe you have a clue as to what's going on. It would be difficult for me to upgrade the OS right now, so I'm hoping to be able to muddle through this ok. I am building zend beta 2 php4 RC1 Apache 1.3.12 mod_mysql 2.20 FreeBSD 2.2.2-RELEASE using gcc version 2.7.2.1 When I get to the final link of the make, the output looks like this: gcc -funsigned-char -I/com/php-4.0RC1 -I/com/php-4.0RC1/Zend -I/com/php-4.0RC1/Zend \ -I/com/php-4.0RC1 -DUSE_EXPAT -I./lib/expat-lite ./apaci -o httpd buildmark.o modules.o \ modules/example/libexample.a modules/php4/libphp4.a modules/experimental/libexperimental.a \ modules/standard/libstandard.a modules/proxy/libproxy.a main/libmain.a ./os/unix/libos.a \ ap/libap.a lib/expat-lite/libexpat.a -L/com/src/gd1.3 -L/com/mysql/lib/mysql \ -L/com/src/gd1.3 -L/com/mysql/lib/mysql -Lmodules/php4 -L../modules/php4 -L../../modules/php4 \
-lmodphp4       -lmysqlclient -lgd -lbind -lm -lcrypt
fopen-wrappers.c:742: Undefined symbol `___error' referenced from text segment fopen-wrappers.c:752: Undefined symbol `___error' referenced from text segment zend_operators.c:1356: Undefined symbol `___error' referenced from text segment zend_operators.c:1358: Undefined symbol `___error' referenced from text segment zend_operators.c:1365: Undefined symbol `___error' referenced from text segment zend_operators.c:1367: Undefined symbol `___error' referenced from text segment ./zend-scanner.l:1126: Undefined symbol `___error' referenced from text segment ./zend-scanner.l:1128: Undefined symbol `___error' referenced from text segment posix.c:158: Undefined symbol `___error' referenced from text segment posix.c:0: More undefined symbol ___error refs follow If I look at /com/php-4.0RC1/fopen-wrappers.c, line 742, I see: result = php_get_ftp_result(*socketd); if (mode[0] == 'r') {
          /* when reading file, it must exist */
          if (result > 299 || result < 200) {
                  php_error(E_WARNING, "File not found");
                  free_url(resource);
                  SOCK_FCLOSE(*socketd);
                  *socketd = 0;
                  errno = ENOENT;
                  return NULL;
The message "Undefined symbol `___error' referenced from text segment" makes me think it isn't resolving one of the standard library functions or global variables. ----------------------------------------------------------------- Phil Glatz (phil@glatz.com) Software Engr/Web backend specialist
http://www.glatz.com/acme/                        SF 415-823-8064


« previous php.dev (#18313) next »