PHP5 Installation mit mysql 4.1.1 auf Testserver ERROR

Bash, Shell, PHP, Python, Perl, CGI
kase
Posts: 1031
Joined: 2002-10-14 22:56

PHP5 Installation mit mysql 4.1.1 auf Testserver ERROR

Post by kase »

Ich suche Leute, die schon PHP5 zusammen mit mysqli und mysql 4.1.1 compiliert haben.

Code: Select all

./configure --with-zlib --with-bz2 --with-mhash --with-mm --enable-memory-limit --enable-force-cgi-redirect --with-gettext --enable-sysvsem --enable-sysvshm --enable-sysvmsg --enable-track-vars --enable-bcmath --enable-ctype --with-pcre-regex=/usr --enable-sockets --enable-pcntl --disable-libxml --with-mcrypt --with-gd --with-jpeg-dir  --with-png-dir --with-zlib-dir --with-ttf --with-freetype-dir=shared,/usr --enable-gd-native-ttf --with-gettext --with-imap --with-imap-ssl --enable-bcmath --enable-ctype --with-mcal --with-openssl --enable-ftp --with-iconv  --with-mime-magic --with-ncurses --with-readline --with-mysqli=/home/kase/mysql_current/bin --without-mysql --without-sqlite --prefix=/home/kase/php5_b3
Alle anderen Sachen im configure funktionieren, es liegt lediglich am mysql.

Mit dem offiziellen Beta 3 Release habe ich folgenden Bug:

http://www.mail-archive.com/php-bugs@li ... 38288.html

und mit dem neusten SnapShot komme ich auch nicht wirklich weiter...

Code: Select all

/bin/sh /home/kase/php5-200402021230/libtool --silent --preserve-dup-deps --mode=link gcc -export-dynamic -g -O2  -L/home/kase/mysql_current/lib  -R /home/kase/mysql_current/lib ext/openssl/openssl.lo ext/openssl/xp_ssl.lo ext/zlib/zlib.lo ext/zlib/zlib_fopen_wrapper.lo ext/bcmath/bcmath.lo ext/bcmath/libbcmath/src/add.lo ext/bcmath/libbcmath/src/div.lo ext/bcmath/libbcmath/src/init.lo ext/bcmath/libbcmath/src/neg.lo ext/bcmath/libbcmath/src/outofmem.lo ext/bcmath/libbcmath/src/raisemod.lo ext/bcmath/libbcmath/src/rt.lo ext/bcmath/libbcmath/src/sub.lo ext/bcmath/libbcmath/src/compare.lo ext/bcmath/libbcmath/src/divmod.lo ext/bcmath/libbcmath/src/int2num.lo ext/bcmath/libbcmath/src/num2long.lo ext/bcmath/libbcmath/src/output.lo ext/bcmath/libbcmath/src/recmul.lo ext/bcmath/libbcmath/src/sqrt.lo ext/bcmath/libbcmath/src/zero.lo ext/bcmath/libbcmath/src/debug.lo ext/bcmath/libbcmath/src/doaddsub.lo ext/bcmath/libbcmath/src/nearzero.lo ext/bcmath/libbcmath/src/num2str.lo ext/bcmath/libbcmath/src/raise.lo ext/bcmath/libbcmath/src/rmzero.lo ext/bcmath/libbcmath/src/str2num.lo ext/bz2/bz2.lo ext/ctype/ctype.lo ext/ftp/php_ftp.lo ext/ftp/ftp.lo ext/gd/gd.lo ext/gd/gdttf.lo ext/gd/libgd/gd.lo ext/gd/libgd/gd_gd.lo ext/gd/libgd/gd_gd2.lo ext/gd/libgd/gd_io.lo ext/gd/libgd/gd_io_dp.lo ext/gd/libgd/gd_io_file.lo ext/gd/libgd/gd_ss.lo ext/gd/libgd/gd_io_ss.lo ext/gd/libgd/gd_png.lo ext/gd/libgd/gd_jpeg.lo ext/gd/libgd/gdxpm.lo ext/gd/libgd/gdfontt.lo ext/gd/libgd/gdfonts.lo ext/gd/libgd/gdfontmb.lo ext/gd/libgd/gdfontl.lo ext/gd/libgd/gdfontg.lo ext/gd/libgd/gdtables.lo ext/gd/libgd/gdft.lo ext/gd/libgd/gdcache.lo ext/gd/libgd/gdkanji.lo ext/gd/libgd/wbmp.lo ext/gd/libgd/gd_wbmp.lo ext/gd/libgd/gdhelpers.lo ext/gd/libgd/gd_topal.lo ext/gd/libgd/gd_gif_in.lo ext/gd/libgd/xbm.lo ext/gettext/gettext.lo ext/iconv/iconv.lo ext/imap/php_imap.lo ext/mcrypt/mcrypt.lo ext/mhash/mhash.lo ext/mime_magic/mime_magic.lo ext/mysqli/mysqli.lo ext/mysqli/mysqli_api.lo ext/mysqli/mysqli_prop.lo ext/mysqli/mysqli_nonapi.lo ext/mysqli/mysqli_fe.lo ext/mysqli/mysqli_report.lo ext/ncurses/ncurses.lo ext/ncurses/ncurses_fe.lo ext/ncurses/ncurses_functions.lo ext/pcntl/pcntl.lo ext/pcntl/php_signal.lo ext/pcre/pcrelib/maketables.lo ext/pcre/pcrelib/get.lo ext/pcre/pcrelib/study.lo ext/pcre/pcrelib/pcre.lo ext/pcre/php_pcre.lo ext/posix/posix.lo ext/readline/readline.lo ext/session/session.lo ext/session/mod_files.lo ext/session/mod_mm.lo ext/session/mod_user.lo ext/sockets/sockets.lo ext/spl/php_spl.lo ext/spl/spl_functions.lo ext/spl/spl_engine.lo ext/spl/spl_iterators.lo ext/spl/spl_array.lo ext/spl/spl_directory.lo ext/spl/spl_sxe.lo regex/regcomp.lo regex/regexec.lo regex/regerror.lo regex/regfree.lo ext/standard/array.lo ext/standard/base64.lo ext/standard/basic_functions.lo ext/standard/browscap.lo ext/standard/crc32.lo ext/standard/crypt.lo ext/standard/cyr_convert.lo ext/standard/datetime.lo ext/standard/dir.lo ext/standard/dl.lo ext/standard/dns.lo ext/standard/exec.lo ext/standard/file.lo ext/standard/filestat.lo ext/standard/flock_compat.lo ext/standard/formatted_print.lo ext/standard/fsock.lo ext/standard/head.lo ext/standard/html.lo ext/standard/image.lo ext/standard/info.lo ext/standard/iptc.lo ext/standard/lcg.lo ext/standard/link.lo ext/standard/mail.lo ext/standard/math.lo ext/standard/md5.lo ext/standard/metaphone.lo ext/standard/microtime.lo ext/standard/pack.lo ext/standard/pageinfo.lo ext/standard/parsedate.lo ext/standard/quot_print.lo ext/standard/rand.lo ext/standard/reg.lo ext/standard/soundex.lo ext/standard/string.lo ext/standard/scanf.lo ext/standard/syslog.lo ext/standard/type.lo ext/standard/uniqid.lo ext/standard/url.lo ext/standard/url_scanner.lo ext/standard/var.lo ext/standard/versioning.lo ext/standard/assert.lo ext/standard/strnatcmp.lo ext/standard/levenshtein.lo ext/standard/incomplete_class.lo ext/standard/url_scanner_ex.lo ext/standard/ftp_fopen_wrapper.lo ext/standard/http_fopen_wrapper.lo ext/standard/php_fopen_wrapper.lo ext/standard/credits.lo ext/standard/css.lo ext/standard/var_unserializer.lo ext/standard/ftok.lo ext/standard/sha1.lo ext/standard/user_filters.lo ext/standard/uuencode.lo ext/standard/filters.lo ext/standard/proc_open.lo ext/standard/sunfuncs.lo ext/standard/streamsfuncs.lo ext/standard/http.lo ext/sysvmsg/sysvmsg.lo ext/sysvsem/sysvsem.lo ext/sysvshm/sysvshm.lo ext/tokenizer/tokenizer.lo TSRM/TSRM.lo TSRM/tsrm_strtok_r.lo TSRM/tsrm_virtual_cwd.lo main/main.lo main/snprintf.lo main/spprintf.lo main/php_sprintf.lo main/safe_mode.lo main/fopen_wrappers.lo main/alloca.lo main/php_scandir.lo main/php_ini.lo main/SAPI.lo main/rfc1867.lo main/php_content_types.lo main/strlcpy.lo main/strlcat.lo main/mergesort.lo main/reentrancy.lo main/php_variables.lo main/php_ticks.lo main/network.lo main/php_open_temporary_file.lo main/php_logos.lo main/output.lo main/streams/streams.lo main/streams/cast.lo main/streams/memory.lo main/streams/filter.lo main/streams/plain_wrapper.lo main/streams/userspace.lo main/streams/transports.lo main/streams/xp_socket.lo main/streams/mmap.lo Zend/zend_language_parser.lo Zend/zend_language_scanner.lo Zend/zend_ini_parser.lo Zend/zend_ini_scanner.lo Zend/zend_alloc.lo Zend/zend_compile.lo Zend/zend_constants.lo Zend/zend_dynamic_array.lo Zend/zend_execute_API.lo Zend/zend_highlight.lo Zend/zend_llist.lo Zend/zend_opcode.lo Zend/zend_operators.lo Zend/zend_ptr_stack.lo Zend/zend_stack.lo Zend/zend_variables.lo Zend/zend.lo Zend/zend_API.lo Zend/zend_extensions.lo Zend/zend_hash.lo Zend/zend_list.lo Zend/zend_indent.lo Zend/zend_builtin_functions.lo Zend/zend_sprintf.lo Zend/zend_ini.lo Zend/zend_qsort.lo Zend/zend_multibyte.lo Zend/zend_ts_hash.lo Zend/zend_stream.lo Zend/zend_iterators.lo Zend/zend_interfaces.lo Zend/zend_objects.lo Zend/zend_object_handlers.lo Zend/zend_objects_API.lo Zend/zend_mm.lo Zend/zend_default_classes.lo Zend/zend_reflection_api.lo Zend/zend_execute.lo sapi/cgi/cgi_main.lo sapi/cgi/getopt.lo main/internal_functions.lo -lcrypt -lc-client -lssl -lcrypto -lcrypt -lmm -lhistory -lreadline -lncurses -lpanel -lncurses -lmhash -lmcrypt -lltdl -lcrypt -lpam -lfreetype -lpng -lz -ljpeg -lbz2 -lz -lssl -lcrypto -lresolv -lm -ldl -lnsl -lmysqlclient -lz -lcrypt -lnsl -lm -lnss_files -lnss_dns -lresolv -lnss_files -lnss_dns -lresolv -lcrypt -lcrypt  -o sapi/cgi/php
ext/mysqli/mysqli.o: In function `php_clear_stmt_bind':
/home/kase/php5-200402021230/ext/mysqli/mysqli.c:93: undefined reference to `mysql_stmt_close'
ext/mysqli/mysqli_api.o: In function `zif_mysqli_autocommit':
/home/kase/php5-200402021230/ext/mysqli/mysqli_api.c:65: undefined reference to `mysql_autocommit'
ext/mysqli/mysqli_api.o: In function `zif_mysqli_bind_param':
/home/kase/php5-200402021230/ext/mysqli/mysqli_api.c:175: undefined reference to `mysql_bind_param'
ext/mysqli/mysqli_api.o: In function `zif_mysqli_bind_result':
/home/kase/php5-200402021230/ext/mysqli/mysqli_api.c:315: undefined reference to `mysql_bind_result'
ext/mysqli/mysqli_api.o: In function `zif_mysqli_commit':
/home/kase/php5-200402021230/ext/mysqli/mysqli_api.c:418: undefined reference to `mysql_commit'
ext/mysqli/mysqli_api.o: In function `zif_mysqli_disable_reads_from_master':
/home/kase/php5-200402021230/ext/mysqli/mysqli_api.c:478: undefined reference to `mysql_disable_reads_from_master'
ext/mysqli/mysqli_api.o: In function `zif_mysqli_disable_rpl_parse':
/home/kase/php5-200402021230/ext/mysqli/mysqli_api.c:494: undefined reference to `mysql_disable_rpl_parse'
ext/mysqli/mysqli_api.o: In function `zif_mysqli_enable_reads_from_master':
/home/kase/php5-200402021230/ext/mysqli/mysqli_api.c:533: undefined reference to `mysql_enable_reads_from_master'
ext/mysqli/mysqli_api.o: In function `zif_mysqli_enable_rpl_parse':
/home/kase/php5-200402021230/ext/mysqli/mysqli_api.c:550: undefined reference to `mysql_enable_rpl_parse'
ext/mysqli/mysqli_api.o: In function `zif_mysqli_execute':
/home/kase/php5-200402021230/ext/mysqli/mysqli_api.c:622: undefined reference to `mysql_execute'
ext/mysqli/mysqli_api.o: In function `zif_mysqli_fetch':
/home/kase/php5-200402021230/ext/mysqli/mysqli_api.c:657: undefined reference to `mysql_fetch'
ext/mysqli/mysqli_api.o: In function `zif_mysqli_get_client_version':
/home/kase/php5-200402021230/ext/mysqli/mysqli_api.c:948: undefined reference to `mysql_get_client_version'
ext/mysqli/mysqli_api.o: In function `zif_mysqli_get_server_version':
/home/kase/php5-200402021230/ext/mysqli/mysqli_api.c:1013: undefined reference to `mysql_get_server_version'
ext/mysqli/mysqli_api.o: In function `zif_mysqli_master_query':
/home/kase/php5-200402021230/ext/mysqli/mysqli_api.c:1095: undefined reference to `mysql_master_query'
ext/mysqli/mysqli_api.o: In function `zif_mysqli_more_results':
/home/kase/php5-200402021230/ext/mysqli/mysqli_api.c:1113: undefined reference to `mysql_more_results'
ext/mysqli/mysqli_api.o: In function `zif_mysqli_next_result':
/home/kase/php5-200402021230/ext/mysqli/mysqli_api.c:1131: undefined reference to `mysql_next_result'
ext/mysqli/mysqli_api.o: In function `zif_mysqli_param_count':
/home/kase/php5-200402021230/ext/mysqli/mysqli_api.c:1222: undefined reference to `mysql_param_count'
ext/mysqli/mysqli_api.o: In function `zif_mysqli_prepare':
/home/kase/php5-200402021230/ext/mysqli/mysqli_api.c:1262: undefined reference to `mysql_prepare'
ext/mysqli/mysqli_api.o: In function `zif_mysqli_get_metadata':
/home/kase/php5-200402021230/ext/mysqli/mysqli_api.c:1290: undefined reference to `mysql_get_metadata'
ext/mysqli/mysqli_api.o: In function `zif_mysqli_real_query':
/home/kase/php5-200402021230/ext/mysqli/mysqli_api.c:1378: undefined reference to `mysql_set_server_option'
ext/mysqli/mysqli_api.o: In function `zif_mysqli_rollback':
/home/kase/php5-200402021230/ext/mysqli/mysqli_api.c:1428: undefined reference to `mysql_rollback'
ext/mysqli/mysqli_api.o: In function `zif_mysqli_rpl_parse_enabled':
/home/kase/php5-200402021230/ext/mysqli/mysqli_api.c:1444: undefined reference to `mysql_rpl_parse_enabled'
ext/mysqli/mysqli_api.o: In function `zif_mysqli_rpl_probe':
/home/kase/php5-200402021230/ext/mysqli/mysqli_api.c:1461: undefined reference to `mysql_rpl_probe'
ext/mysqli/mysqli_api.o: In function `zif_mysqli_rpl_query_type':
/home/kase/php5-200402021230/ext/mysqli/mysqli_api.c:1482: undefined reference to `mysql_rpl_query_type'
ext/mysqli/mysqli_api.o: In function `zif_mysqli_send_long_data':
/home/kase/php5-200402021230/ext/mysqli/mysqli_api.c:1506: undefined reference to `mysql_send_long_data'
ext/mysqli/mysqli_api.o: In function `zif_mysqli_slave_query':
/home/kase/php5-200402021230/ext/mysqli/mysqli_api.c:1582: undefined reference to `mysql_slave_query'
ext/mysqli/mysqli_api.o: In function `zif_mysqli_stmt_affected_rows':
/home/kase/php5-200402021230/ext/mysqli/mysqli_api.c:1602: undefined reference to `mysql_stmt_affected_rows'
ext/mysqli/mysqli_api.o: In function `zif_mysqli_stmt_close':
/home/kase/php5-200402021230/ext/mysqli/mysqli_api.c:1618: undefined reference to `mysql_stmt_close'
ext/mysqli/mysqli_api.o: In function `zif_mysqli_stmt_data_seek':
/home/kase/php5-200402021230/ext/mysqli/mysqli_api.c:1641: undefined reference to `mysql_stmt_data_seek'
ext/mysqli/mysqli_api.o: In function `zif_mysqli_stmt_num_rows':
/home/kase/php5-200402021230/ext/mysqli/mysqli_api.c:1660: undefined reference to `mysql_stmt_num_rows'
ext/mysqli/mysqli_api.o: In function `zif_mysqli_sqlstate':
/home/kase/php5-200402021230/ext/mysqli/mysqli_api.c:1701: undefined reference to `mysql_sqlstate'
ext/mysqli/mysqli_api.o: In function `zif_mysqli_ssl_set':
/home/kase/php5-200402021230/ext/mysqli/mysqli_api.c:1721: undefined reference to `mysql_ssl_set'
ext/mysqli/mysqli_api.o: In function `zif_mysqli_stmt_errno':
/home/kase/php5-200402021230/ext/mysqli/mysqli_api.c:1760: undefined reference to `mysql_stmt_errno'
ext/mysqli/mysqli_api.o: In function `zif_mysqli_stmt_error':
/home/kase/php5-200402021230/ext/mysqli/mysqli_api.c:1776: undefined reference to `mysql_stmt_error'
ext/mysqli/mysqli_api.o: In function `zif_mysqli_stmt_store_result':
/home/kase/php5-200402021230/ext/mysqli/mysqli_api.c:1792: undefined reference to `mysql_stmt_store_result'
ext/mysqli/mysqli_api.o: In function `zif_mysqli_stmt_sqlstate':
/home/kase/php5-200402021230/ext/mysqli/mysqli_api.c:1813: undefined reference to `mysql_stmt_sqlstate'
ext/mysqli/mysqli_api.o: In function `zif_mysqli_store_result':
/home/kase/php5-200402021230/ext/mysqli/mysqli_api.c:1834: undefined reference to `mysql_set_server_option'
/home/kase/php5-200402021230/ext/mysqli/mysqli_api.c:1840: undefined reference to `mysql_set_server_option'
ext/mysqli/mysqli_api.o: In function `zif_mysqli_use_result':
/home/kase/php5-200402021230/ext/mysqli/mysqli_api.c:1888: undefined reference to `mysql_set_server_option'
ext/mysqli/mysqli_api.o: In function `zif_mysqli_warning_count':
/home/kase/php5-200402021230/ext/mysqli/mysqli_api.c:1914: undefined reference to `mysql_warning_count'
ext/mysqli/mysqli_prop.o: In function `link_server_version_read':
/home/kase/php5-200402021230/ext/mysqli/mysqli_prop.c:101: undefined reference to `mysql_get_server_version'
ext/mysqli/mysqli_nonapi.o: In function `zif_mysqli_multi_query':
/home/kase/php5-200402021230/ext/mysqli/mysqli_nonapi.c:204: undefined reference to `mysql_set_server_option'
/home/kase/php5-200402021230/ext/mysqli/mysqli_nonapi.c:206: undefined reference to `mysql_set_server_option'
ext/mysqli/mysqli_nonapi.o: In function `zif_mysqli_query':
/home/kase/php5-200402021230/ext/mysqli/mysqli_nonapi.c:229: undefined reference to `mysql_set_server_option'
collect2: ld returned 1 exit status
make: *** [sapi/cgi/php] Error 1
kase
Posts: 1031
Joined: 2002-10-14 22:56

Re: PHP5 Installation mit mysql 4.1.1 auf Testserver ERROR

Post by kase »

Ich wollte nur mal mitteilen, dass ich nun nach 1er Woche intensiver Suche endlich das Problem gefunden habe.

Ich hatte noch mit apt-get das Paket libmysql-dev installiert, und obwohl ich sämtliche Pathes zu den NEUEN includes, zu den NEUEN libs, vom NEUEN mysql im php-configure gesetzt hatte, hat er doch immer wieder die alten vom standard Debian genommen. Erst als das dev Paket deinstalliert war, und er somit die Header Files von dem default Debian mysql nicht mehr an den "default-Plätzen" gefunden hatte, hat er meine angegebenen Pathes im configure benutzt.

Sehr merkwürdiges Problem, was mich nun bestimmt 20-30 Stunden Arbeit insgesamt gekostet hat, sehr ärgerlich...