unresolvable symbols? [zendtext]
| From: | James Lever | Date: | Tue, 11 Apr 2000 23:42:18 +0000 |
| Subject: | unresolvable symbols? [zendtext] | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-13431@lists.php.net to get a copy of this message | ||
Dear All,
Build issues. Just did an OS upgrade to Irix 6.5.7m and that removed
most of the problems, however building with the native compiler (for
correct binary output format - N32), I still have the following error:
Syntax error on line 207 of /apache/conf/httpd.conf:
Cannot load /apache/libexec/libphp4.so into server: 19440:/apache/bin/httpd: rld: Fatal Error:
unresolvable symbol in /apache/libexec/libphp4.so: zendtext
/apache/bin/apachectl start: httpd could not be started
The build was straight out of the box except I had to modify php_config.h
and change
#define inline __inline
to
#define inline
for the following problems:
/bin/sh ../libtool --silent --mode=compile cc -DHAVE_CONFIG_H -I. -I. -I.. -DXML_BYTE_ORDER=21
-D_POSIX_THREAD_SAFE_FUNCTIONS -g -c ./zend_execute.c
cc-1552 cc: WARNING File = ./zend_execute.c, Line = 746
The variable "offset" is set but never used.
zval *offset;
^
cc-1552 cc: WARNING File = ./zend_execute.c, Line = 870
The variable "offset" is set but never used.
zval *offset;
^
cc-1113 cc: ERROR File = ./zend_execute.h, Line = 49
The function "safe_free_zval_ptr" was referenced but not defined.
ZEND_API inline void safe_free_zval_ptr(zval *p);
^
cc-1113 cc: ERROR File = ./zend_execute.h, Line = 51
The function "i_zend_is_true" was referenced but not defined.
ZEND_API inline int i_zend_is_true(zval *op);
^
cc-1113 cc: ERROR File = ./zend_execute.h, Line = 53
The function "zend_assign_to_variable_reference" was referenced but not
defined.
ZEND_API inline void zend_assign_to_variable_reference(znode *result, zval **variable_ptr_ptr,
zval **value_ptr_ptr, temp_variable *Ts ELS_DC);
^
cc-1113 cc: ERROR File = ./zend_execute.h, Line = 56
The function "zend_ptr_stack_clear_multiple" was referenced but not defined.
ZEND_API inline void zend_ptr_stack_clear_multiple(ELS_D);
^
cc-1113 cc: ERROR File = ./zend_execute.h, Line = 57
The function "zend_ptr_stack_get_arg" was referenced but not defined.
ZEND_API inline int zend_ptr_stack_get_arg(int requested_arg, void **data ELS_DC);
^
5 errors detected in the compilation of "./zend_execute.c".
gmake[1]: *** [zend_execute.lo] Error 1
gmake[1]: Leaving directory `/data2/src/php-4.0RC1/Zend'
gmake: *** [all-recursive] Error 1
which the following patch fixes.
> diff php_config.h ../php-4.0RC1.build0/php_config.h
180c180
< #define inline __inline
---
> #define inline
see below for full transcripts.
cheers,
James
--
James Lever - ViSAC Laboratoy Manager, ACMC, The University of Queensland.
As 'Bruce of Arisia' says I should do; Who I am, what I do, my
various codes:
http://www.visac.uq.edu.au/people/jamver/index.html#sigs
--
[0] 9:36am:root@teiresias:/data2/src/php-4.0RC1# ./configure --prefix=/apache/php4
--enable-magic-quotes --enable-track-vars --with-apxs=/apache/bin/apxs
--with-pgsql=/usr/local1/pgsql_6.5.1_IRIX65
creating cache ./config.cache
Running system checks
checking for a BSD compatible install... /usr/freeware/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking whether to enable maintainer-specific portions of Makefiles... no
checking host system type... mips-sgi-irix6.5
checking for bison... bison -y
checking bison version... 1.25 (ok)
checking for gcc... cc
checking whether the C compiler (cc ) works... yes
checking whether the C compiler (cc ) is a cross-compiler... no
checking whether we are using GNU C... no
checking whether cc accepts -g... yes
checking how to run the C preprocessor... cc -E
checking for AIX... no
checking for cc option to accept ANSI C... none needed
checking for ranlib... ranlib
checking whether cc understands -c and -o together... yes
checking whether ln -s works... yes
checking for flex... flex
checking for flex... (cached) flex
checking for yywrap in -lfl... no
checking lex output file root... lex.yy
checking whether yytext is a pointer... no
checking for working const... yes
checking whether compiler supports -R... no
checking whether compiler supports -Wl,-rpath,... yes
checking for sendmail... /usr/lib/sendmail
checking for gethostname in -lnsl... yes
checking for socket in -lsocket... yes
checking for gethostbyaddr in -lnsl... yes
checking for crypt in -lcrypt... yes
checking for sin in -lm... yes
checking for inet_aton in -lbind... no
checking for inet_aton in -lresolv... no
checking for res_search in -lsocket... yes
checking for dn_skipname in -lresolv... no
checking for __dn_skipname in -lresolv... no
checking for ANSI C header files... yes
checking for dirent.h that defines DIR... yes
checking for opendir in -ldir... no
checking for fclose declaration... ok
checking for arpa/inet.h... yes
checking for crypt.h... yes
checking for dlfcn.h... yes
checking for fcntl.h... yes
checking for grp.h... yes
checking for limits.h... yes
checking for locale.h... yes
checking for memory.h... yes
checking for netinet/in.h... yes
checking for pwd.h... yes
checking for signal.h... yes
checking for stdarg.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for sys/file.h... yes
checking for sys/mman.h... yes
checking for sys/select.h... yes
checking for sys/socket.h... yes
checking for sys/statfs.h... yes
checking for sys/statvfs.h... yes
checking for sys/time.h... yes
checking for sys/types.h... yes
checking for sys/varargs.h... no
checking for sys/wait.h... yes
checking for syslog.h... yes
checking for unistd.h... yes
checking for unix.h... no
checking whether struct tm is in sys/time.h or time.h... time.h
checking for tm_zone in struct tm... no
checking for tzname... yes
checking for tm_gmtoff in struct tm... no
checking for struct flock... yes
checking for socklen_t... no
checking size of long... 4
checking size of int... 4
checking for st_blksize in struct stat... yes
checking for st_blocks in struct stat... yes
checking for st_rdev in struct stat... yes
checking for size_t... yes
checking for uid_t in sys/types.h... yes
checking for vprintf... yes
checking for asctime_r... yes
checking for crypt... yes
checking for ctime_r... yes
checking for cuserid... yes
checking for flock... yes
checking for gcvt... yes
checking for getlogin... yes
checking for gethostbyaddr... yes
checking for getrusage... yes
checking for gettimeofday... yes
checking for gmtime_r... yes
checking for inet_aton... yes
checking for link... yes
checking for localtime_r... yes
checking for lockf... yes
checking for lrand48... yes
checking for memcpy... yes
checking for memmove... yes
checking for mmap... yes
checking for putenv... yes
checking for random... yes
checking for rand_r... yes
checking for regcomp... yes
checking for rint... yes
checking for setitimer... yes
checking for setlocale... yes
checking for setsockopt... yes
checking for setvbuf... yes
checking for shutdown... yes
checking for sin... yes
checking for snprintf... yes
checking for srand48... yes
checking for srandom... yes
checking for statfs... yes
checking for statvfs... yes
checking for strcasecmp... yes
checking for strdup... yes
checking for strerror... yes
checking for strftime... yes
checking for strstr... yes
checking for strtok_r... yes
checking for symlink... yes
checking for tempnam... yes
checking for tzset... yes
checking for unsetenv... no
checking for usleep... yes
checking for utime... yes
checking for vsnprintf... yes
checking for strlcat... no
checking for strlcpy... no
checking for getopt... yes
checking whether utime accepts a null argument... yes
checking for working alloca.h... yes
checking for alloca... yes
checking whether sprintf is broken... no
checking for declared timezone... yes
checking for time_r type... normal
checking whether to use a configuration file... yes
checking whether to include debugging symbols... yes
checking whether to enable safe mode by default... no
checking for safe mode exec dir... /usr/local/php/bin
checking whether to enable track_vars variables by default... yes
checking whether to enable magic quotes by default... yes
checking whether to enable runpaths... yes
checking whether to enable short tags by default... yes
checking whether to enable the URL-aware fopen wrapper... yes
checking whether to enable PIC for shared objects... yes
checking whether to enable dmalloc... no
checking whether to install PEAR... yes
Configuring SAPI modules
checking for AOLserver support... no
checking for Apache module support via DSO through APXS... yes
checking for mod_charset compatibility option... no
checking for fhttpd module support... no
checking for Zeus ISAPI support... no
checking for PHTTPD support... no
checking for Roxen/Pike support... no
checking for Servlet support... no
checking for thttpd... no
checking for chosen SAPI module... apache
Configuring extensions
checking for ASPELL support... no
checking whether to enable bc style precision math functions... no
checking whether to include cpdflib support... no
checking for CyberCash support... no
checking whether to enable DAV support through mod_dav... no
checking for db1/ndbm.h... no
checking for gdbm_open in -lgdbm... no
checking for dbm_open in -ldb... yes
checking preferred dbm library... ndbm chosen
checking for GDBM support... no
checking for NDBM support... no
checking for Berkeley DB2 support... no
checking for Berkeley DB3 support... no
checking for DBM support... no
checking for CDB support... no
checking whether to enable DBA interface... no
checking whether to include the bundled dbase library... no
checking whether to include DOM support... no
checking whether to include fdftk support... no
checking whether to include the bundled filePro support... no
checking for FTP support... no
checking whether to include GD support... checking for gdImageLine in -lgd... no
checking for gdImageString16 in -lgd... no
checking whether to include GNU gettext support... no
checking for Hyperwave support... no
checking for ICAP support... no
checking for IMAP support... no
checking for Informix support... no
checking for InterBase support... no
checking for Java support... no
checking for LDAP support... no
checking for MCAL support... no
checking for mcrypt support... no
checking for mhash support... no
checking for mSQL support... no
checking for MySQL support... yes
checking for MySQL UNIX socket... /tmp/mysql.sock
checking for inline... __inline
checking return type of signal handlers... void
checking for ANSI C header files... (cached) yes
checking for sgtty.h... yes
checking for sys/ioctl.h... yes
checking for fcntl.h... (cached) yes
checking for float.h... yes
checking for floatingpoint.h... no
checking for ieeefp.h... yes
checking for limits.h... (cached) yes
checking for memory.h... (cached) yes
checking for pwd.h... (cached) yes
checking for select.h... no
checking for stdlib.h... (cached) yes
checking for stddef.h... yes
checking for strings.h... yes
checking for string.h... (cached) yes
checking for synch.h... no
checking for sys/mman.h... (cached) yes
checking for sys/socket.h... (cached) yes
checking for sys/timeb.h... yes
checking for sys/types.h... (cached) yes
checking for sys/un.h... yes
checking for sys/vadvise.h... no
checking for sys/wait.h... (cached) yes
checking for term.h... yes
checking for unistd.h... (cached) yes
checking for utime.h... yes
checking for sys/utime.h... yes
checking for termio.h... yes
checking for termios.h... yes
checking for sched.h... yes
checking for crypt.h... (cached) yes
checking for alloca.h... (cached) yes
checking size of char... 1
checking size of int... (cached) 4
checking size of long... (cached) 4
checking size of long long... 8
checking for size_t... (cached) yes
checking whether time.h and sys/time.h may both be included... yes
checking for uid_t in sys/types.h... (cached) yes
checking for type ulong... yes
checking for type uchar... no
checking for type uint... yes
checking base type of last arg to accept... size_t
checking for alarm... yes
checking for bmove... no
checking for chsize... no
checking for ftruncate... yes
checking for rint... (cached) yes
checking for finite... yes
checking for fpsetmask... yes
checking for fpresetsticky... no
checking for cuserid... (cached) yes
checking for fcntl... yes
checking for fconvert... no
checking for getrusage... (cached) yes
checking for getpwuid... yes
checking for getcwd... yes
checking for getrlimit... yes
checking for getwd... yes
checking for index... yes
checking for locking... no
checking for longjmp... yes
checking for perror... yes
checking for pread... yes
checking for realpath... yes
checking for rename... yes
checking for socket... yes
checking for strnlen... no
checking for madvise... yes
checking for strtoul... yes
checking for strtoull... yes
checking for snprintf... (cached) yes
checking for tempnam... (cached) yes
checking for thr_setconcurrency... no
checking for gethostbyaddr_r... yes
checking for gethostbyname_r... yes
checking for getpwnam... yes
checking for bfill... no
checking for bzero... yes
checking for bcmp... yes
checking for strstr... (cached) yes
checking for strpbrk... yes
checking for strerror... (cached) yes
checking for tell... yes
checking for atod... no
checking for memcpy... (cached) yes
checking for memmove... (cached) yes
checking for setupterm... no
checking for strcasecmp... (cached) yes
checking for sighold... yes
checking for vidattr... no
checking for setupterm... (cached) no
checking for lrand48... (cached) yes
checking for localtime_r... (cached) yes
checking for sigset... yes
checking for sigthreadmask... no
checking for pthread_sigmask... no
checking for pthread_setprio... no
checking for pthread_setprio_np... no
checking for pthread_setschedparam... no
checking for pthread_attr_setprio... no
checking for pthread_attr_setschedparam... no
checking for pthread_attr_create... no
checking for pthread_getsequence_np... no
checking for pthread_attr_setstacksize... yes
checking for pthread_condattr_create... no
checking for rwlock_init... no
checking for crypt... (cached) yes
checking for dlopen... yes
checking for dlerror... yes
checking for fchmod... yes
checking for getpass... yes
checking for getpassphrase... no
checking for strtok_r... (cached) yes
checking style of gethostname_r routines... other
checking args to pthread_getspecific... POSIX
checking args to pthread_mutex_init... POSIX
checking args to readdir_r... POSIX
checking style of sigwait... POSIX
checking for Oracle-OCI8 support... no
checking for Adabas support... no
checking for Solid support... no
checking for IBM DB2 support... no
checking for Empress support... no
checking for Velocis support... no
checking for a custom ODBC support... no
checking for iODBC support... no
checking for Easysoft ODBC-ODBC Bridge support... no
checking for unixODBC support... no
checking for OpenLink ODBC support... no
checking for DBMaker support... no
checking for Oracle support... no
checking whether to include PCRE support... yes
checking for memmove... (cached) yes
checking whether to include Pdflib 3.x support... no
checking for PostgresSQL support... yes (static)
checking for PQcmdTuples... yes
checking whether to include POSIX-like functions... yes
checking for readline support... no
checking for recode support... no
checking for mm support... no
checking whether to enable session support... yes
checking whether to enable transparent session id propagation... no
checking for SNMP support... no
checking whether to enable UCD SNMP hack... no
checking for dlopen in -lc... yes
checking for pam_start in -lpam... no
checking for crypt in -lcrypt... (cached) yes
checking for getcwd... (cached) yes
checking for getwd... (cached) yes
checking for standard DES crypt... yes
checking for extended DES crypt... no
checking for MD5 crypt... no
checking for Blowfish crypt... no
checking for sys/resource.h... yes
checking for Sybase support... no
checking for Sybase-CT support... no
checking whether to enable System V semaphore support... no
checking whether to enable System V shared memory support... no
checking whether to include WDDX support... no
checking whether byte ordering is bigendian... yes
checking for XML support... yes
checking whether to include YP support... no
checking whether to include zlib support... no
checking whether to enable versioning... no
checking which regex library to use... php
Configuring Zend
checking bison version... 1.25 (ok)
checking for limits.h... (cached) yes
checking for malloc.h... yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking for stdarg.h... (cached) yes
checking for sys/types.h... (cached) yes
checking for signal.h... (cached) yes
checking for unix.h... (cached) no
checking for dlfcn.h... (cached) yes
checking for size_t... (cached) yes
checking return type of signal handlers... (cached) void
checking for dlopen in -lc... (cached) yes
checking for uint... yes
checking for ulong... yes
checking for vprintf... (cached) yes
checking for 8-bit clean memcmp... yes
checking for working alloca.h... (cached) yes
checking for alloca... (cached) yes
checking for memcpy... (cached) yes
checking for strdup... (cached) yes
checking for getpid... yes
checking for kill... yes
checking for strtod... yes
checking for strtol... yes
checking whether sprintf is broken... (cached) no
checking whether to enable experimental ZTS... no
checking whether to enable inline optimization for GCC... no
checking whether to enable a memory limit... no
checking whether to enable Zend debugging... yes
checking for inline... (cached) __inline
Configuring libtool
checking build system type... mips-sgi-irix6.5
checking for non-GNU ld... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... no
checking for BSD-compatible nm... /usr/bin/nm -B
updating cache ./config.cache
checking whether we are using GNU C... no
checking for object suffix... o
checking for executable suffix... no
checking for cc option to produce PIC... none
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.lo... yes
checking if cc static flag -non_shared works... none
checking if the linker (/usr/bin/ld -n32) is GNU ld... no
checking whether the linker (/usr/bin/ld -n32) supports shared libraries... yes
checking command to parse /usr/bin/nm -B output... ok
checking how to hardcode library paths into programs... immediate
checking for /usr/bin/ld -n32 option to reload object files... -r
checking dynamic linker characteristics... irix6.5 ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for objdir... .libs
creating libtool
loading cache ./config.cache
Generating files
checking for working mkdir -p... yes
creating config_vars.mk
creating sapi/Makefile
creating ext/Makefile
creating Makefile
creating pear/Makefile
creating ext/db/Makefile
creating ext/mysql/libmysql/Makefile
creating ext/mysql/Makefile
creating ext/pcre/Makefile
creating ext/pcre/pcrelib/Makefile
creating ext/pgsql/Makefile
creating ext/posix/Makefile
creating ext/session/Makefile
creating ext/standard/Makefile
creating ext/xml/Makefile
creating ext/xml/expat/Makefile
creating ext/xml/expat/xmlparse/Makefile
creating ext/xml/expat/xmltok/Makefile
creating sapi/apache/Makefile
creating regex/Makefile
updating cache ./config.cache
creating ./config.status
creating php4.spec
creating Zend/Makefile
creating build-defs.h
creating php_config.h
creating internal_functions.c
+--------------------------------------------------------------------+
| License: |
| This software is subject to the PHP License, available in this |
| distribution in the file LICENSE. By continuing this installation |
| process, you are bound by the terms of this license agreement. |
| If you do not agree with the terms of this license, you must abort |
| the installation process at this point. |
+--------------------------------------------------------------------+
[0] 9:37am:root@teiresias:/data2/src/php-4.0RC1# gmake
Making all in Zend
gmake[1]: Entering directory `/data2/src/php-4.0RC1/Zend'
/bin/sh ../libtool --silent --mode=compile cc -DHAVE_CONFIG_H -I. -I. -I.. -DXML_BYTE_ORDER=21
-D_POSIX_THREAD_SAFE_FUNCTIONS -g -c zend-scanner.c
/bin/sh ../libtool --silent --mode=link cc -g -o libZend_c.la zend-scanner.lo
/bin/sh ../libtool --silent --mode=compile cc -DHAVE_CONFIG_H -I. -I. -I.. -DXML_BYTE_ORDER=21
-D_POSIX_THREAD_SAFE_FUNCTIONS -g -c zend-parser.c
/bin/sh ../libtool --silent --mode=compile cc -DHAVE_CONFIG_H -I. -I. -I.. -DXML_BYTE_ORDER=21
-D_POSIX_THREAD_SAFE_FUNCTIONS -g -c zend_alloc.c
cc-1552 cc: WARNING File = zend_alloc.c, Line = 345
The variable "had_leaks" is set but never used.
int had_leaks=0;
^
/bin/sh ../libtool --silent --mode=compile cc -DHAVE_CONFIG_H -I. -I. -I.. -DXML_BYTE_ORDER=21
-D_POSIX_THREAD_SAFE_FUNCTIONS -g -c zend_compile.c
/bin/sh ../libtool --silent --mode=compile cc -DHAVE_CONFIG_H -I. -I. -I.. -DXML_BYTE_ORDER=21
-D_POSIX_THREAD_SAFE_FUNCTIONS -g -c zend_constants.c
/bin/sh ../libtool --silent --mode=compile cc -DHAVE_CONFIG_H -I. -I. -I.. -DXML_BYTE_ORDER=21
-D_POSIX_THREAD_SAFE_FUNCTIONS -g -c zend_dynamic_array.c
/bin/sh ../libtool --silent --mode=compile cc -DHAVE_CONFIG_H -I. -I. -I.. -DXML_BYTE_ORDER=21
-D_POSIX_THREAD_SAFE_FUNCTIONS -g -c ./zend_execute.c
cc-1552 cc: WARNING File = ./zend_execute.c, Line = 746
The variable "offset" is set but never used.
zval *offset;
^
cc-1552 cc: WARNING File = ./zend_execute.c, Line = 870
The variable "offset" is set but never used.
zval *offset;
^
cc-1113 cc: ERROR File = ./zend_execute.h, Line = 49
The function "safe_free_zval_ptr" was referenced but not defined.
ZEND_API inline void safe_free_zval_ptr(zval *p);
^
cc-1113 cc: ERROR File = ./zend_execute.h, Line = 51
The function "i_zend_is_true" was referenced but not defined.
ZEND_API inline int i_zend_is_true(zval *op);
^
cc-1113 cc: ERROR File = ./zend_execute.h, Line = 53
The function "zend_assign_to_variable_reference" was referenced but not
defined.
ZEND_API inline void zend_assign_to_variable_reference(znode *result, zval **variable_ptr_ptr,
zval **value_ptr_ptr, temp_variable *Ts ELS_DC);
^
cc-1113 cc: ERROR File = ./zend_execute.h, Line = 56
The function "zend_ptr_stack_clear_multiple" was referenced but not defined.
ZEND_API inline void zend_ptr_stack_clear_multiple(ELS_D);
^
cc-1113 cc: ERROR File = ./zend_execute.h, Line = 57
The function "zend_ptr_stack_get_arg" was referenced but not defined.
ZEND_API inline int zend_ptr_stack_get_arg(int requested_arg, void **data ELS_DC);
^
5 errors detected in the compilation of "./zend_execute.c".
gmake[1]: *** [zend_execute.lo] Error 1
gmake[1]: Leaving directory `/data2/src/php-4.0RC1/Zend'
gmake: *** [all-recursive] Error 1
[2] 9:37am:root@teiresias:/data2/src/php-4.0RC1# diff php_config.h ../php-4.0RC1.build0/php_config.h
180c180
< #define inline __inline
---
> #define inline
[1] 9:38am:root@teiresias:/data2/src/php-4.0RC1# cp ../php-4.0RC1.build0/php_config.h .
[0] 9:38am:root@teiresias:/data2/src/php-4.0RC1# gmake
the rest builds fine with some WARNINGs.