|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-07-17 01:06 UTC] martin at cwa dot co dot nz
Any PHP page containing a dl() call will trigger a message: [error] PHP Fatal error: Call to undefined function: mgd_get_midgard() in /Users/martin/Documents/CWA/SSC/ssc_core_cvs_trunk/local/apache_1.3.26/libexec/midgard-root.php on line 14 This is apparently known, and noted in the PHP 4.2.0 release notes. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Sun Jun 07 20:00:02 2026 UTC |
Hmmm. Getting latest from snapshots (php4-200207181800) is to actually work is not so easy. To clarify: php-4.2.1 compiles perfectly with the same options, CGI or mod_php, no problems, so dependancies are solved for 4.2.1. Compile is failing: [localhost:CWA/SSC/ssc_core_cvs_trunk] martin% make php-cli cd /Users/martin/Documents/CWA/SSC/ssc_core_cvs_trunk/local/src/php4-200207181800 && \ ./configure \ --prefix=/Users/martin/Documents/CWA/SSC/ssc_core_cvs_trunk/local/php4-200207181800 \ --with-mysql=/sw \ --enable-track-vars \ --with-zlib-dir=/sw && \ make && make install creating cache ./config.cache checking for Cygwin environment... no checking for mingw32 environment... no checking host system type... powerpc-apple-darwin5.5 Updated php_version.h checking for gcc... no checking for cc... 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... yes checking whether cc accepts -g... yes checking whether cc understands -c and -o together... yes checking how to run the C preprocessor... cc -E checking for AIX... no checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... no checking for ranlib... ranlib checking whether ln -s works... yes checking for mawk... no checking for gawk... no checking for nawk... no checking for awk... awk checking for bison... bison -y checking bison version... 1.29 (ok) checking for flex... 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 for pthreads_cflags... checking for pthreads_lib... Configuring SAPI modules checking for AOLserver support... no checking for Apache 1.x module support via DSO through APXS... no checking for Apache 1.x module support... no checking for mod_charset compatibility option... no checking for Apache 2.0 module support via DSO through APXS... no checking for Caudium support... no checking whether writing to stdout works... This is the test message -- yes checking whether to force Apache CGI redirect... no checking whether to discard path_info + path_translated... no checking for fhttpd module support... no checking for CLI build... yes checking for FastCGI support... no checking for Zeus ISAPI support... no checking for NSAPI support... no checking for PHTTPD support... no checking for Pi3Web Support... no checking for Roxen/Pike support... no checking for Servlet support... no checking for thttpd... no checking for TUX... no checking for webjames... no checking for chosen SAPI module... cgi Running system checks checking for missing declarations of reentrant functions... done checking for sendmail... /usr/sbin/sendmail checking whether system uses EBCDIC... no checking for socket... yes checking for htonl... yes checking for gethostname... yes checking for gethostbyaddr... yes checking for yp_get_default_domain... yes checking for dlopen in -ldl... no checking for sin in -lm... yes checking for res_search... yes checking for inet_aton... yes checking for dn_skipname... no checking for __dn_skipname... yes 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 ApplicationServices/ApplicationServices.h... yes checking for sys/types.h... yes checking for sys/time.h... yes checking for netinet/in.h... yes checking for alloca.h... no checking for arpa/inet.h... yes checking for arpa/nameser.h... yes checking for assert.h... yes checking for crypt.h... no checking for fcntl.h... yes checking for grp.h... yes checking for ieeefp.h... no checking for langinfo.h... no checking for limits.h... yes checking for locale.h... yes checking for mach-o/dyld.h... yes checking for pwd.h... yes checking for resolv.h... yes checking for signal.h... yes checking for stdarg.h... yes checking for stdlib.h... yes checking for string.h... yes checking for syslog.h... yes checking for sysexits.h... yes checking for sys/file.h... yes checking for sys/mman.h... yes checking for sys/mount.h... yes checking for sys/poll.h... no checking for sys/resource.h... yes checking for sys/select.h... yes checking for sys/socket.h... yes checking for sys/statfs.h... no checking for sys/statvfs.h... no checking for sys/vfs.h... no checking for sys/sysexits.h... no checking for sys/varargs.h... no checking for sys/wait.h... yes checking for unistd.h... yes checking for unix.h... no checking for utime.h... yes checking for sys/utsname.h... yes checking whether struct tm is in sys/time.h or time.h... time.h checking for tm_zone in struct tm... yes checking for tm_gmtoff in struct tm... yes 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 struct sockaddr_storage... yes checking for IPv6 support... no checking for vprintf... yes checking for asctime_r... no checking for chroot... yes checking for ctime_r... no checking for cuserid... no checking for crypt... yes checking for flock... yes checking for gai_strerror... yes checking for gcvt... no checking for getlogin... yes checking for getprotobyname... yes checking for getprotobynumber... yes checking for getservbyname... yes checking for getservbyport... yes checking for getrusage... yes checking for gettimeofday... yes checking for gmtime_r... no checking for isascii... yes checking for link... yes checking for localtime_r... no checking for lockf... no checking for lrand48... no checking for memcpy... yes checking for memmove... yes checking for mkstemp... yes checking for mmap... yes checking for nl_langinfo... no checking for putenv... yes checking for realpath... yes checking for random... yes checking for rand_r... no checking for regcomp... yes checking for res_search... (cached) yes checking for setitimer... yes checking for setlocale... yes checking for localeconv... yes checking for setsockopt... yes checking for setvbuf... yes checking for shutdown... yes checking for sin... yes checking for snprintf... yes checking for srand48... no checking for srandom... yes checking for statfs... yes checking for statvfs... no checking for std_syslog... no checking for strcasecmp... yes checking for strcoll... yes checking for strdup... yes checking for strerror... yes checking for strftime... yes checking for strstr... yes checking for strtok_r... no checking for symlink... yes checking for tempnam... yes checking for tzset... yes checking for unsetenv... yes checking for usleep... yes checking for utime... yes checking for vsnprintf... yes checking for getaddrinfo... 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... (cached) no checking for alloca... yes checking whether sprintf is broken... no checking for declared timezone... yes checking for type of reentrant time-related functions... POSIX checking for readdir_r... no checking whether to include debugging symbols... no checking layout of installed files... yes checking path to configuration file... yes checking whether to install PEAR, and where... yes checking whether to enable safe mode by default... no checking for safe mode exec dir... /usr/local/php/bin checking for OpenSSL support... no checking whether to enable PHP's own SIGCHLD handler... no checking whether to enable magic quotes by default... no checking whether to enable runpaths... yes checking whether to explicitly link against libgcc... no checking whether to enable short tags by default... yes checking whether to enable dmalloc... no checking for crypt in -lcrypt... no Configuring extensions checking if the location of ZLIB install directory is defined... yes checking for ZLIB support... no checking for gzgets in -lz... yes checking for fopencookie... no checking for ASPELL support... no checking whether to enable bc style precision math functions... no checking for BZip2 support... no checking whether to enable calendar conversion support... no checking for CCVS support... no checking for cpdflib support... no checking for CRACKlib support... no checking whether to enable ctype functions... yes checking for CURL support... no checking for CyberCash support... no checking for cybermut support... no checking for cyrus imap support... no checking for xDBM support... no checking whether to enable DBA... no 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 enable dbase support... no checking whether to enable dbx support... no checking whether to enable direct I/O support... no checking for DOM support... no checking for DOM XSLT support... no checking for DOM EXSLT support... no checking whether to enable EXIF support... no checking for FrontBase SQL92 (fbsql) support... no checking for FDF support... no checking whether to enable the bundled filePro support... no checking for FriBidi support... no checking whether to enable FTP support... no checking for GD support... no checking for the location of libjpeg... no checking for the location of libpng... no checking for the location of libXpm... no checking for FreeType 1.x support... no checking for FreeType 2... no checking for T1lib support... no checking whether to enable truetype string function in GD... no checking for GNU gettext support... no checking for GNU MP support... no checking for hwapi support... no checking for Hyperwave support... no checking for ICAP support... no checking for iconv support... no checking for IMAP support... no checking for Informix support... no checking for Ingres II support... no checking for InterBase support... no checking for IRCG support... no checking for JAVA support... no checking for LDAP support... no checking whether to enable multibyte string support... yes checking whether to enable multibyte regex support... yes checking whether to enable encoding translation... no checking for MCAL support... no checking for mcrypt support... no checking for MCVE support... no checking for mhash support... no checking whether to enable mime_magic support... no checking for MING support... no checking for mnoGoSearch support... no checking for msession support... no checking for mSQL support... no checking for specified location of the MySQL UNIX socket... no checking for MySQL support... yes checking for MySQL UNIX socket location... no 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... no checking for type uchar... no checking for type uint... yes checking for type ushort... yes checking for int8... no checking base type of last arg to accept... int checking return type of qsort... void checking for mysql_close in -lmysqlclient... yes checking for ncurses support... no checking for Oracle-OCI8 support... no checking for Adabas support... no checking for SAP DB support... no checking for Solid support... no checking for IBM DB2 support... no checking for Empress support... no checking for Empress local access support... no checking for Birdstep 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-ORACLE support... no checking whether to enable user-space object overloading support... yes checking for Ovrimos SQL Server support... no checking whether to enable pcntl support... no checking for PCRE support... yes checking for memmove... (cached) yes checking for PDFlib support... no checking for the location of libjpeg... no checking for the location of libpng... no checking for the location of libtiff... no checking for Verisign Payflow Pro support... no checking for PostgreSQL support... no checking whether to enable POSIX-like functions... yes checking for seteuid... yes checking for setegid... yes checking for setsid... yes checking for getsid... no checking for setpgid... yes checking for getpgid... no checking for ctermid... yes checking for mkfifo... yes checking for getrlimit... yes checking for PSPELL support... no checking whether to include QDOM support... no checking for libedit readline replacement... no checking for readline support... no checking for recode support... no checking for mm support... no checking whether to enable PHP sessions... yes checking for pread... no checking for pwrite... no checking whether pwrite works without custom declaration... no checking whether pread works without custom declaration... no checking whether to enable shmop support... no checking for SNMP support... no checking whether to enable UCD SNMP hack... no checking whether to enable sockets support... no checking for dlopen... no checking for getcwd... yes checking for getwd... yes checking for standard DES crypt... yes checking for extended DES crypt... yes checking for MD5 crypt... no checking for Blowfish crypt... no checking whether flush should be called explicitly after a bufferered io... yes checking for fnmatch... yes checking for glob... yes checking for libswf support... no checking for Sybase support... no checking for Sybase-CT support... no checking whether to enable System V IPC support... no checking whether to enable System V semaphore support... no checking whether to enable System V shared memory support... no checking whether to enable tokenizer support... yes checking for vpopmail support... no checking whether to enable WDDX support... no checking whether byte ordering is bigendian... yes checking external libexpat install dir... no checking whether to enable XML support... yes checking for XMLRPC-EPI support... no checking libexpat dir for XMLRPC-EPI... no checking whether to enable xslt support... no checking for XSLT Sablotron backend... no checking libexpat dir for Sablotron XSL support... no checking enable JavaScript for Sablotron... no checking for YAZ support... no checking whether to include YP support... no checking for ZIP support... no checking whether to enable versioning... no checking which regex library to use... php Configuring Zend checking build system type... powerpc-apple-darwin5.5 checking for ld used by GCC... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... no checking for /usr/bin/ld option to reload object files... -r checking for BSD-compatible nm... /usr/bin/nm -p checking how to recognise dependant libraries... file_magic Mach-O dynamically linked shared library checking for object suffix... o checking for executable suffix... no checking command to parse /usr/bin/nm -p output... ok checking for dlfcn.h... no checking for ranlib... (cached) ranlib checking for strip... strip checking for objdir... .libs checking for cc option to produce PIC... -fno-common checking if cc PIC flag -fno-common works... yes checking if cc static flag -static works... no checking if cc supports -c -o file.o... ~/Documents/CWA/SSC/ssc_core_cvs_trunk/local/src/php4-200207181800/conftest yes checking if cc supports -c -o file.lo... yes checking if cc supports -fno-rtti -fno-exceptions... yes checking whether the linker (/usr/bin/ld) supports shared libraries... yes checking how to hardcode library paths into programs... unsupported checking whether stripping libraries is possible... no checking dynamic linker characteristics... darwin5.5 dyld checking if libtool supports shared libraries... yes checking whether to build shared libraries... no checking whether to build static libraries... yes creating libtool checking bison version... 1.29 (ok) checking for limits.h... (cached) yes checking for malloc.h... no 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 sys/time.h... (cached) yes checking for signal.h... (cached) yes checking for unix.h... (cached) no checking for dlfcn.h... (cached) no checking for size_t... (cached) yes checking return type of signal handlers... void checking for dlopen in -ldl... (cached) no checking for dlopen... (cached) no checking whether dlsym() requires a leading underscore in symbol names... no checking for uint... yes checking for ulong... no checking for vprintf... (cached) yes checking for 8-bit clean memcmp... yes checking for working alloca.h... (cached) no 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 for finite... yes checking for fpclass... no checking whether sprintf is broken... (cached) no checking for finite... (cached) yes checking for isfinite... no checking for isinf... yes checking for isnan... yes checking whether fp_except is defined... no checking whether to enable thread-safety... no checking whether to enable inline optimization for GCC... yes checking whether to enable a memory limit... no checking whether to enable Zend debugging... no checking whether to enable Zend multibyte... no checking for inline... inline Configuring TSRM checking for stdarg.h... (cached) yes Generating files checking for working mkdir -p... yes updating cache ./config.cache creating ./config.status creating php4.spec creating main/build-defs.h creating pear/scripts/phpize creating pear/scripts/php-config creating main/php_config.h creating number.c creating number.h creating main/internal_functions.c creating main/internal_functions_cli.c +--------------------------------------------------------------------+ | *** WARNING *** | | | | You will be compiling the CGI version of PHP without any | | redirection checking. By putting this cgi binary somewhere in | | your web space, users may be able to circumvent existing .htaccess | | security by loading files directly through the parser. See | | http://www.php.net/manual/security.php for more details. | +--------------------------------------------------------------------+ | 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. | +--------------------------------------------------------------------+ | *** NOTE *** | | The default for register_globals is now OFF! | | | | If your application relies on register_globals being ON, you | | should explicitly set it to on in your php.ini file. | | Note that you are strongly encouraged to read | | http://www.php.net/manual/en/security.registerglobals.php | | about the implications of having register_globals set to on, and | | avoid using it if possible. | +--------------------------------------------------------------------+ Thank you for using PHP. cc -Iext/zlib/ -I/Users/martin/Documents/CWA/SSC/ssc_core_cvs_trunk/local/src/php4-200207181800/ext/zlib/ -DPHP_ATOM_INC -I/Users/martin/Documents/CWA/SSC/ssc_core_cvs_trunk/local/src/php4-200207181800/include -I/Users/martin/Documents/CWA/SSC/ssc_core_cvs_trunk/local/src/php4-200207181800/main -I/Users/martin/Documents/CWA/SSC/ssc_core_cvs_trunk/local/src/php4-200207181800 -I/Users/martin/Documents/CWA/SSC/ssc_core_cvs_trunk/local/src/php4-200207181800/Zend -I/sw/include -I/sw/include/mysql -I/Users/martin/Documents/CWA/SSC/ssc_core_cvs_trunk/local/src/php4-200207181800/ext/xml/expat -no-cpp-precomp -no-cpp-precomp -I/Users/martin/Documents/CWA/SSC/ssc_core_cvs_trunk/local/src/php4-200207181800/TSRM -g -O2 -c /Users/martin/Documents/CWA/SSC/ssc_core_cvs_trunk/local/src/php4-200207181800/ext/zlib/zlib.c -o ext/zlib/zlib.o && echo > ext/zlib/zlib.lo < LOTS OF cc COMPILES THAT SEEM OK SNIPPED > < AND DIES ON THIS cc > cc -DPHP_ATOM_INC -I/Users/martin/Documents/CWA/SSC/ssc_core_cvs_trunk/local/src/php4-200207181800/include -I/Users/martin/Documents/CWA/SSC/ssc_core_cvs_trunk/local/src/php4-200207181800/main -I/Users/martin/Documents/CWA/SSC/ssc_core_cvs_trunk/local/src/php4-200207181800 -I/Users/martin/Documents/CWA/SSC/ssc_core_cvs_trunk/local/src/php4-200207181800/Zend -I/sw/include -I/sw/include/mysql -I/Users/martin/Documents/CWA/SSC/ssc_core_cvs_trunk/local/src/php4-200207181800/ext/xml/expat -no-cpp-precomp -no-cpp-precomp -I/Users/martin/Documents/CWA/SSC/ssc_core_cvs_trunk/local/src/php4-200207181800/TSRM -g -O2 -L/sw/lib -R /sw/lib ext/zlib/zlib.o ext/zlib/zlib_fopen_wrapper.o ext/ctype/ctype.o ext/mbstring/mbfilter_ja.o ext/mbstring/mbfilter_cn.o ext/mbstring/mbfilter_tw.o ext/mbstring/mbfilter_kr.o ext/mbstring/mbfilter_ru.o ext/mbstring/mbfilter.o ext/mbstring/mbstring.o ext/mbstring/mbregex.o ext/mbstring/php_mbregex.o ext/mysql/php_mysql.o ext/overload/overload.o ext/pcre/pcrelib/maketables.o ext/pcre/pcrelib/get.o ext/pcre/pcrelib/study.o ext/pcre/pcrelib/pcre.o ext/pcre/php_pcre.o ext/posix/posix.o ext/session/session.o ext/session/mod_files.o ext/session/mod_mm.o ext/session/mod_user.o ext/standard/array.o ext/standard/base64.o ext/standard/basic_functions.o ext/standard/browscap.o ext/standard/crc32.o ext/standard/crypt.o ext/standard/cyr_convert.o ext/standard/datetime.o ext/standard/dir.o ext/standard/dl.o ext/standard/dns.o ext/standard/exec.o ext/standard/file.o ext/standard/filestat.o ext/standard/flock_compat.o ext/standard/formatted_print.o ext/standard/fsock.o ext/standard/head.o ext/standard/html.o ext/standard/image.o ext/standard/info.o ext/standard/iptc.o ext/standard/lcg.o ext/standard/link.o ext/standard/mail.o ext/standard/math.o ext/standard/md5.o ext/standard/metaphone.o ext/standard/microtime.o ext/standard/pack.o ext/standard/pageinfo.o ext/standard/parsedate.o ext/standard/quot_print.o ext/standard/rand.o ext/standard/reg.o ext/standard/soundex.o ext/standard/string.o ext/standard/scanf.o ext/standard/syslog.o ext/standard/type.o ext/standard/uniqid.o ext/standard/url.o ext/standard/url_scanner.o ext/standard/var.o ext/standard/versioning.o ext/standard/assert.o ext/standard/strnatcmp.o ext/standard/levenshtein.o ext/standard/incomplete_class.o ext/standard/url_scanner_ex.o ext/standard/ftp_fopen_wrapper.o ext/standard/http_fopen_wrapper.o ext/standard/php_fopen_wrapper.o ext/standard/credits.o ext/standard/var_unserializer.o ext/standard/ftok.o ext/standard/aggregation.o ext/tokenizer/tokenizer.o ext/xml/xml.o ext/xml/expat/xmlparse.o ext/xml/expat/xmlrole.o ext/xml/expat/xmltok.o regex/regcomp.o regex/regexec.o regex/regerror.o regex/regfree.o TSRM/TSRM.o TSRM/tsrm_strtok_r.o TSRM/tsrm_virtual_cwd.o main/main.o main/snprintf.o main/spprintf.o main/php_sprintf.o main/safe_mode.o main/fopen_wrappers.o main/alloca.o main/php_ini.o main/SAPI.o main/rfc1867.o main/php_content_types.o main/strlcpy.o main/strlcat.o main/mergesort.o main/reentrancy.o main/php_variables.o main/php_ticks.o main/streams.o main/network.o main/php_open_temporary_file.o main/php_logos.o main/output.o main/memory_streams.o main/user_streams.o Zend/zend_language_parser.o Zend/zend_language_scanner.o Zend/zend_ini_parser.o Zend/zend_ini_scanner.o Zend/zend_alloc.o Zend/zend_compile.o Zend/zend_constants.o Zend/zend_dynamic_array.o Zend/zend_execute_API.o Zend/zend_highlight.o Zend/zend_llist.o Zend/zend_opcode.o Zend/zend_operators.o Zend/zend_ptr_stack.o Zend/zend_stack.o Zend/zend_variables.o Zend/zend.o Zend/zend_API.o Zend/zend_extensions.o Zend/zend_hash.o Zend/zend_list.o Zend/zend_indent.o Zend/zend_builtin_functions.o Zend/zend_sprintf.o Zend/zend_ini.o Zend/zend_qsort.o Zend/zend_multibyte.o Zend/zend_execute.o sapi/cgi/cgi_main.o sapi/cgi/getopt.o main/internal_functions.o -lmysqlclient -lz -lm -o php cc: unrecognized option `-R' /usr/bin/ld: can't map file: /sw/lib ((os/kern) invalid argument) make[1]: *** [php] Error 1 make: *** [php-cli] Error 2