php-5.2.4 unter debian sarge compilieren

Apache, Lighttpd, nginx, Cherokee
greenrover
Posts: 203
Joined: 2004-12-17 19:34

php-5.2.4 unter debian sarge compilieren

Post by greenrover » 2007-10-15 22:45

folgender cofigure befehl wurde verwendet:
./configure --prefix=/usr/local/php5 --with-apxs2=/usr/bin/apxs2 --with-libxml-dir=/usr/lib --with-zlib --with-zlib-dir=/usr/lib --with-mysql --with-gd --enable-soap --enable-sockets --with-mcrypt --with-curl

und wirft beim make unter debian sarge:

Code: Select all

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_exceptions.lo Zend/zend_strtod.lo Zend/zend_objects.lo Zend/zend_object_handlers.lo Zend/zend_objects_API.lo Zend/zend_default_classes.lo Zend/zend_execute.lo sapi/cli/php_cli.lo sapi/cli/php_cli_readline.lo sapi/cli/getopt.lo main/internal_functions_cli.lo -lcrypt -lcrypt -lrt -lmysqlclient_r -lmcrypt -lltdl -lpng -lz -lcurl -lz -lresolv -lm -ldl -lnsl -lxml2 -lz -lm -lcurl -lidn -lssl -lcrypto -ldl -lssl -lcrypto -ldl -lz -lxml2 -lz -lm -lxml2 -lz -lm -lxml2 -lz -lm -lcrypt -lxml2 -lz -lm -lxml2 -lz -lm -lxml2 -lz -lm -lcrypt  -o sapi/cli/php
ext/mysql/.libs/php_mysql.o(.text+0x4a7): In function `zm_startup_mysql':
/root/php-5.2.4/ext/mysql/php_mysql.c:404: undefined reference to `mysql_server_init'
ext/mysql/.libs/php_mysql.o(.text+0x4c7): In function `zm_shutdown_mysql':
/root/php-5.2.4/ext/mysql/php_mysql.c:423: undefined reference to `mysql_server_end'
ext/mysql/.libs/php_mysql.o(.text+0x4f7): In function `zm_activate_mysql':
/root/php-5.2.4/ext/mysql/php_mysql.c:436: undefined reference to `mysql_thread_init'
ext/mysql/.libs/php_mysql.o(.text+0x54d): In function `zm_deactivate_mysql':
/root/php-5.2.4/ext/mysql/php_mysql.c:456: undefined reference to `mysql_thread_end'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1


kann einer was mit dieser Meldung anfangen?

installiert ist mysql und funktioniert mit php4 auch:
apt-get install libmysqlclient10 libmysqlclient10-dev mysql-server

User avatar
Joe User
Project Manager
Project Manager
Posts: 11138
Joined: 2003-02-27 01:00
Location: Hamburg

Re: php-5.2.4 unter debian sarge compilieren

Post by Joe User » 2007-10-15 23:27

--with-mysql-socket=/var/{lib,run}/mysql{,d}.sock und weitere Optionen fehlen...

greenrover
Posts: 203
Joined: 2004-12-17 19:34

Re: php-5.2.4 unter debian sarge compilieren

Post by greenrover » 2007-10-16 13:57

mit den Optionen:
--with-mysql=/usr
--with-mysql-sock=/var/run/mysqld.sock

tritt das selbe Problem auf.
Das mit dem /usr hab ich mir ergoogled. ist aber mit und ohne so.

captaincrunch
Userprojekt
Userprojekt
Posts: 7066
Joined: 2002-10-09 14:30
Location: Dorsten

Re: php-5.2.4 unter debian sarge compilieren

Post by captaincrunch » 2007-10-16 20:26

Vorher mal ein "make clean" durchlaufen lassen?
DebianHowTo
echo "[q]sa[ln0=aln256%Pln256/snlbx]sb729901041524823122snlbxq"|dc

greenrover
Posts: 203
Joined: 2004-12-17 19:34

Re: php-5.2.4 unter debian sarge compilieren

Post by greenrover » 2007-10-16 20:28

ja alles schon gemacht.

Hat schon mal einer php5.x mit einem mysql 4.0 (sarge standart) kompiliert?

captaincrunch
Userprojekt
Userprojekt
Posts: 7066
Joined: 2002-10-09 14:30
Location: Dorsten

Re: php-5.2.4 unter debian sarge compilieren

Post by captaincrunch » 2007-10-16 20:29

mysql-headers sind auch installiert?
DebianHowTo
echo "[q]sa[ln0=aln256%Pln256/snlbx]sb729901041524823122snlbxq"|dc

greenrover
Posts: 203
Joined: 2004-12-17 19:34

Re: php-5.2.4 unter debian sarge compilieren

Post by greenrover » 2007-10-16 20:32

welche sind dort nötig?

Code: Select all

apt-cache search mysql
nine-mysql-backup - nine mysql backup script
nine-lamp4 - Custom meta-package to install a LAMP-system with PHP 4 / MySQL 4.1
libapache2-mod-auth-mysql - Apache 2 module for MySQL authentication
acidlab-mysql - Analysis Console for Intrusion Databases for MySQL
backupninja - lightweight, extensible meta-backup system
cacti - Frontend to rrdtool for monitoring systems and services
courier-authmysql - Courier Mail Server - MySQL authentication
courier-webadmin - Courier Mail Server - Web-based administration frontend
freeradius-mysql - MySQL module for FreeRADIUS server
gda2-mysql - MySQL backend plugin for GNOME Data Access library for GNOME2
ilohamail - Light weight yet full featured multilingual web-based IMAP/POP3 client
libmysqlclient12 - mysql database client library
libmysqlclient12-dev - mysql database development files
libmysqlclient14 - mysql database client library
libmysqlclient14-dev - mysql database development files
libphp-adodb - The 'adodb' database abstraction layer for php
libqt3c102-mt-mysql - MySQL database driver for Qt3 (Threaded)
libqt3c102-mysql - MySQL database driver for Qt3
libsqldbc7.5.00 - SQLDB interface libraries for the MaxDB database system
libsqldbc7.5.00-dev - Development package for the SQLDBC interface to the MaxDB database system
libsqlod7.5.00 - ODBC interface libraries for the MaxDB database system
libsqlod7.5.00-dev - Development package for the ODBC interface to the MaxDB database system
mantis - web-based bug tracking system
maxdb-dbanalyzer - A performance monitoring tool for MaxDB databases
maxdb-dbmcli - The MaxDB database manager command line interface
maxdb-loadercli - A load/unload tool for MaxDB databases
maxdb-lserver - Loader server client of the MaxDB database package
maxdb-server - Communication server for the MaxDB database system
maxdb-server-7.5.00 - A transactional, industrial-strength SQL database system
maxdb-server-dbg-7.5.00 - Debug versions of the database server kernel
maxdb-sqlcli - A command line query interface to MaxDB databases
mydns-mysql - DNS server using MySQL for data storage
mysql-client - mysql database client binaries
mysql-client-4.1 - mysql database client binaries
mysql-common - mysql database common files (e.g. /etc/mysql/my.cnf)
mysql-common-4.1 - mysql database common files (e.g. /etc/mysql/my.cnf)
mysql-server - mysql database server binaries
mysql-server-4.1 - mysql database server binaries
nagios-mysql - A host/service/network monitoring and management system
pdns-backend-mysql - generic mysql backend for PowerDNS
php4-mysql - MySQL module for php4
phpbb2 - A fully featured and skinneable flat (non-threaded) webforum
phpbb2-conf-mysql - Automatic configurator for phpbb2 on MySQL database
phpmyadmin - set of PHP-scripts to administrate MySQL over the WWW
postgresql-contrib - additional facilities for PostgreSQL
proftpd - Versatile, virtual-hosting FTP daemon
proftpd-mysql - Versatile, virtual-hosting FTP daemon (with SQL support)
python-maxdb - Python bindings for MaxDB (default version)
python-maxdb-loader - Python bindings for MaxDB loader server (default version)
python2.3-maxdb - Python bindings for MaxDB for Python v2.3
python2.3-maxdb-loader - Python interface to the MaxDB loader for Python v2.3
python2.4-maxdb - Python bindings for MaxDB for Python v2.4
python2.4-maxdb-loader - Python interface to the MaxDB loader for Python v2.4
usermin-mysql - a mysql module for the usermin web-based administration tool
webcalendar - PHP-Based multi-user calendar
zoph - Web based digital image presentation and management system
alamin-mysql - Alamin GSM SMS Gateway mysql interface
audiolink - makes managing and searching for music easier
bacula-director-mysql - Network backup, recovery and verification (Director daemon)
bacula-server - Network backup, recovery and verification (Server meta-package)
cl-sql-mysql - CLSQL database backend, MySQL
cl-sql-tests - Testing suite for CLSQL
cvm-mysql - Credential Validation Modules (mysql)
dacode - Powerful and full-featured news engine written in PHP
dbengine - A plug 'n play Web interface for mySQL and PostgreSQL
dbf2mysql - xBase <--> MySQL
dbishell - Interactive SQL shell with readline support
digitaldj - An SQL based mp3 player front-end
dpsyco-mysql - Automate administration of access to mysql
eskuel - A pretty PHP administration tool for MySQL databases
exim4-daemon-heavy - exim MTA (v4) daemon with extended features, including exiscan-acl
fibusql - Web based double-entry accounting
fp-units-db - Free Pascal -- database libraries units
gda-mysql - GDA backend server for MySQL
gnade-dev - Develoment files for the GNat Ada Database Environment
gnade-doc - Documentation files for the GNat Ada Database Environment
gnokii-smsd-mysql - SMSD plugin for the MySQL RDBMS
gnue-forms-wxgtk - An XML-based forms painter
guile-simplesql - SQL library for Guile
htcheck - Utility for checking web site for dead/external links
htcheck-php - Simple php interface to database generated by ht://Check
jffnms - web-based Network Management System (NMS) for IP networks
jsboard - A web-based news/discussion system
kbarcode - A KDE Barcode Creation And Printing Application
kexi-mysql-driver - kexi MySQL driver
lg-issue108 - Issue 108 of the Linux Gazette.
lg-issue110 - Issue 110 of the Linux Gazette.
libapache-mod-acct-mysql - Accounting module for Apache, mysql version
libapache-mod-auth-mysql - Apache module for MySQL authentication
libclass-dbi-loader-perl - Dynamic definition of Class::DBI sub classes.
libclass-dbi-perl - A convenient abstraction layer to a database
libdbd-maxdb-perl - Perl interface to the MaxDB database system
libdbd-mysql - MySQL database server driver for libdbi
libdbd-mysql-perl - A Perl5 database interface to the MySQL database
libdbd-mysql-ruby - Ruby/DBI driver for MySQL
libdbd-mysql-ruby1.6 - Ruby/DBI MySQL driver for Ruby 1.6
libdbd-mysql-ruby1.8 - Ruby/DBI MySQL driver for Ruby 1.8
libdbd-sqlite2-perl - Perl DBI driver with a self-contained RDBMS (SQLite2 version)
libdbd-sqlite3-perl - Perl DBI driver with a self-contained RDBMS
libdbix-datasource-perl - Database-independent create and drop functions
libdbix-dbschema-perl - Database-independent schema objects
libdbix-easy-perl - Easy to Use DBI Interface
libghc6-hsql-dev - Multi-Database Interface System for Haskell
libgnademysql1 - MySQL specific runtime library for GNADE
libgnadeodbc1 - Runtime library for the GNat Ada Database Environment
libgnadepostgresql1 - PostgresSQL specific runtime library for GNADE
libgnadesqlite1 - SQLite specific runtime library for GNADE
libgql-driver-0.5-mysql - Generic C++ SQL Library - MySQL driver
libhk-classes-mysql - MySQL driver plugin for libhk-classes
libmyodbc - the MySQL ODBC driver
libmysql-java - Java database (JDBC) driver for MySQL
libmysql-ocaml - OCaml bindings for MySql
libmysql-ocaml-dev - OCaml bindings for MySql
libmysql-ruby - MySQL module for Ruby
libmysql-ruby1.6 - MySQL module for Ruby 1.6
libmysql-ruby1.8 - MySQL module for Ruby 1.8
libmysqlclient10 - LGPL-licensed client library for MySQL databases
libmysqlclient10-dev - LGPL-licensed client development files for MySQL databases
libnss-mysql - NSS library for MySQL
libnss-mysql-bg - NSS module for using MySQL as a naming service
libpam-mysql - PAM module allowing authentication from a MySQL server
libsasl2-modules-sql - Pluggable Authentication Modules for SASL
libsqlplus-dev - Mysql++ library (development)
libsqlplus1 - Mysql++ library
libsqlxx-dev - C++ classes for database access via ODBC
libsqlxx2.3c102 - C++ classes for database access via ODBC
libtext-querysql-perl - Text-Query-SQL provides query builders for SQL databases
libwww-dev - The W3C WWW library - development files
libwww-doc - The W3C WWW library - documentation
libwww-ssl-dev - The W3C WWW library - development files (SSL support)
libwww-ssl0 - The W3C-WWW library (SSL support)
libwww0 - The W3C WWW library
linesrv-mysql - A server to remotely control the internet connection
mnogosearch-mysql - A full-featured web search engine (mysql)
mp3kult - Organizes your MP3 collection in a MySQL database
mtop - MySQL terminal based query monitor
muddleftpd - A flexible and efficient FTP daemon
myphpmoney - Finance manager written in PHP
mysql-admin - GUI tool for intuitive MySQL administration
mysql-admin-common - Architecture independent files for MySQL Administrator
mysql-navigator - GUI client program for MySQL database server
mysql-query-browser - Official GUI tool to query MySQL database
mysql-query-browser-common - Architecture independent files for MySQL Query Browser
mysqltcl - Interface to the MySQL database for the Tcl language.
mytop - top like query monitor for MySQL
pennmush-mysql - text-based multi-user virtual world server with MySQL support
perdition - POP3 and IMAP4 Proxy server
perdition-mysql - Library to allow perdition to access MySQL based popmaps
php3 - server-side, HTML-embedded scripting language (apache 1.3 module)
php3-cgi - server-side, HTML-embedded scripting language (CGI binary)
php3-cgi-mysql - Mysql module for PHP3 (use with php3-cgi)
php3-mysql - Mysql module for PHP3 (use with php3)
php4-maxdb - PHP extension to access MaxDB databases
pike-mysql - Mysql module for Pike [aux package]
pike7.2-mysql - Mysql module for Pike
pike7.4-core - Powerful interpreted programming language
pike7.4-gdbm - Gdbm module for Pike
pike7.4-gl - Mesa module for Pike
pike7.4-gtk - GTK module for Pike
pike7.4-image - Image module for Pike
pike7.4-mysql - Mysql module for Pike
pike7.4-odbc - Odbc module for Pike
pike7.4-perl - Perl module for Pike
pike7.4-pg - Postgres module for Pike
pike7.4-sane - SANE module for Pike
pike7.4-sdl - SDL module for Pike
pike7.4-svg - SVG format support for Pike
pike7.6-core - Powerful interpreted programming language
pike7.6-mysql - Mysql module for Pike
postfix-gld - greylisting daemon for postfix, written in C, uses MySQL
postfix-mysql - MYSQL map support for Postfix
prokyon3 - A mp3 and ogg/vorbis manager and tag editor
pure-ftpd-mysql - Pure-FTPd FTP server with MySQL user authentication
python-logilab-common - useful miscellaneous modules used by Logilab projects [dummy package]
python-mysqldb - A Python interface to MySQL
python2.1-logilab-common - useful miscellaneous modules used by Logilab projects [built for python2.1]
python2.2-logilab-common - useful miscellaneous modules used by Logilab projects [built for python2.2]
python2.2-mysqldb - A Python interface to MySQL
python2.3-logilab-common - useful miscellaneous modules used by Logilab projects [built for python2.3]
python2.3-mysqldb - A Python interface to MySQL
python2.4-logilab-common - useful miscellaneous modules used by Logilab projects [built for python2.4]
python2.4-mysqldb - A Python interface to MySQL
qtstalker - commodity and stock market charting and technical analysis
r-cran-rmysql - GNU R package providing a DBI-compliant interface to MySQL
r-cran-rodbc - GNU R package for ODBC database access
scoop - Web-based collaborative media application
slash - The code that runs Slashdot
snort - Flexible Network Intrusion Detection System
snort-mysql - Flexible Network Intrusion Detection System [MySQL]
specter - packet logger for netfilter's ULOG target
specter-mysql - packet logger for netfilter's ULOG target [mySQL]
sql-editor - editor of SQL databases, with 'join' capability
sqlrelay - Database connection pooling, proxying and load balancing
sqlrelay-dev - SQL Relay C and C++ APIs
sqlrelay-doc - SQL Relay Documentation
sqlrelay-mysql - SQL Relay MySQL connection daemon
steam - Environment for cooperative knowledge management
sympa - Modern mailing list manager
teapop - Powerful and flexible RFC-compliant POP3 server
teapop-ldap - Powerful and flexible RFC-compliant POP3 server
teapop-mysql - Powerful and flexible RFC-compliant POP3 server
teapop-pgsql - Powerful and flexible RFC-compliant POP3 server
tedia2sql - Converts a Dia diagram to various SQL dialects
tora - A graphical toolkit for database developers and administrators
twig - The Web Information Gateway
ulogd - The Netfilter Userspace Logging Daemon
ulogd-mysql - mySQL extension to ulogd
webmin-mysql - mysql-server control module for webmin
www-mysql - a WWW interface for the TCX mySQL database
wzdftpd-back-mysql - MySQL backend for wzdftpd
zope-exuserfolder - extensible user authentication product for zope
zope-mysqlda - A Zope Database Adapter for MySQL
ggobi - Data visualization system for high-dimensional data


habe einfach drauf:
libmysqlclient10
libmysqlclient10-dev

captaincrunch
Userprojekt
Userprojekt
Posts: 7066
Joined: 2002-10-09 14:30
Location: Dorsten

Re: php-5.2.4 unter debian sarge compilieren

Post by captaincrunch » 2007-10-16 20:34

Was sagt "dpkg -l | grep mysql"?
DebianHowTo
echo "[q]sa[ln0=aln256%Pln256/snlbx]sb729901041524823122snlbxq"|dc

greenrover
Posts: 203
Joined: 2004-12-17 19:34

Re: php-5.2.4 unter debian sarge compilieren

Post by greenrover » 2007-10-16 20:36

Code: Select all

dpkg -l | grep mysql
ii  libdbd-mysql-p 2.9006-1       A Perl5 database interface to the MySQL data
ii  libmysqlclient 3.23.56-3      LGPL-licensed client library for MySQL datab
ii  libmysqlclient 3.23.56-3      LGPL-licensed client development files for M
ii  libmysqlclient 4.0.24-10sarge mysql database client library
ii  libmysqlclient 4.1.11a-4sarge mysql database client library
ii  mysql-client   4.0.24-10sarge mysql database client binaries
ii  mysql-common   4.0.24-10sarge mysql database common files (e.g. /etc/mysql
rc  mysql-common-4 4.1.11a-4sarge mysql database common files (e.g. /etc/mysql
ii  mysql-server   4.0.24-10sarge mysql database server binaries
ii  php4-mysql     4.3.10-22      MySQL module for php4

Roger Wilco
Administrator
Administrator
Posts: 5924
Joined: 2004-05-23 12:53

Re: php-5.2.4 unter debian sarge compilieren

Post by Roger Wilco » 2007-10-16 20:38

Ich sehe da keine Entwicklerpakete für MySQL 4...

greenrover
Posts: 203
Joined: 2004-12-17 19:34

Re: php-5.2.4 unter debian sarge compilieren

Post by greenrover » 2007-10-16 20:39

ja wozu den auch?!
an sich brauchst du ja nur die dev der client bibliotheken.
der server ist im fall ja total egal.

captaincrunch
Userprojekt
Userprojekt
Posts: 7066
Joined: 2002-10-09 14:30
Location: Dorsten

Re: php-5.2.4 unter debian sarge compilieren

Post by captaincrunch » 2007-10-16 20:40

ii libmysqlclient 4.0.24-10sarge mysql database client library
ii libmysqlclient 4.1.11a-4sarge mysql database client library

Hier liegt der Fehler. Die Versionen passen einfach nicht zueinander. Die libmysqlient-dev sollte wohl auch die 4.0.24-10sarge sein.
DebianHowTo
echo "[q]sa[ln0=aln256%Pln256/snlbx]sb729901041524823122snlbxq"|dc

greenrover
Posts: 203
Joined: 2004-12-17 19:34

Re: php-5.2.4 unter debian sarge compilieren

Post by greenrover » 2007-10-16 20:42

so nun ist die 14ner lib wieder runter... aber die 10ner war ja drauf plus dev version...

Code: Select all

dpkg -l | grep mysql
ii  libdbd-mysql-p 2.9006-1       A Perl5 database interface to the MySQL data
ii  libmysqlclient 3.23.56-3      LGPL-licensed client library for MySQL datab
ii  libmysqlclient 3.23.56-3      LGPL-licensed client development files for M
ii  libmysqlclient 4.0.24-10sarge mysql database client library
rc  libmysqlclient 4.1.11a-4sarge mysql database client library
ii  mysql-client   4.0.24-10sarge mysql database client binaries
ii  mysql-common   4.0.24-10sarge mysql database common files (e.g. /etc/mysql
rc  mysql-common-4 4.1.11a-4sarge mysql database common files (e.g. /etc/mysql
ii  mysql-server   4.0.24-10sarge mysql database server binaries
ii  php4-mysql     4.3.10-22      MySQL module for php4

captaincrunch
Userprojekt
Userprojekt
Posts: 7066
Joined: 2002-10-09 14:30
Location: Dorsten

Re: php-5.2.4 unter debian sarge compilieren

Post by captaincrunch » 2007-10-16 20:44

Also noch mak "make clean" und neu kompilieren lassen.
DebianHowTo
echo "[q]sa[ln0=aln256%Pln256/snlbx]sb729901041524823122snlbxq"|dc

User avatar
Joe User
Project Manager
Project Manager
Posts: 11138
Joined: 2003-02-27 01:00
Location: Hamburg

Re: php-5.2.4 unter debian sarge compilieren

Post by Joe User » 2007-10-16 20:49

Wozu benötigt man auf Debian drei verschiede MySQL-Lib-Versionen? Insbesondere noch 3.23.x? Bei diesem Mix würde ich als configure/make auch streiken...

greenrover
Posts: 203
Joined: 2004-12-17 19:34

Re: php-5.2.4 unter debian sarge compilieren

Post by greenrover » 2007-10-16 21:13

es waren doch nur 2 bibliotheken. jetzt nur noch eine ;-)
und die 3.23 sind std gewesen.

hat nun funktioniert.

thx für die Hilfe. das problem waren entweder die 2 bibos (40 und 4.1) oder das die 3.23 veraltet war.

aber THX nochmal euch beiden.