AW: installing php3-3.0.18_1: mysql option problem

Ph. Schulz ph.schulz at gmx.de
Mon Jul 21 01:32:29 PDT 2003


It seems to me that PHP is trying to build the mySQL library and cannot find
the mySQL files.

Are you going to use mySQL? When I build PHP the first time I forgot that
the mySQL support was enabled by default (only PHP Versions 3.xx and 4.xx ).
Disable the mySQL support by using '--without-mysql'. If you are going to
use mySQL, you should try to provide PHP the path to the mySQL sources.
Check the PHP docs on how to do that.

-----Ursprüngliche Nachricht-----
Von: owner-freebsd-questions at freebsd.org
[mailto:owner-freebsd-questions at freebsd.org]Im Auftrag von admin
Gesendet: Donnerstag, 17. Juli 2003 04:24
An: freebsd-questions at freebsd.org
Betreff: installing php3-3.0.18_1: mysql option problem



FreeBSD: 4.8 Stable
/usr/ports updated today
mysql40-server
mysql40-client


okay I have a need for php3 on a machine.
so I can install php3-3.0.18_1 from /usr/ports with only the zlib option but
installing this version with the mysql option brings along the error below.
what on earth am I doing wrong?

cc -O -pipe -march=pentiumpro -c maketables.c
cc -O -pipe -march=pentiumpro -c get.c
cc -O -pipe -march=pentiumpro -c study.c
cc -O -pipe -march=pentiumpro -c pcre.c
rm -f libpcre.a
ar cq libpcre.a maketables.o get.o study.o pcre.o
ranlib libpcre.a
cc -O -pipe -march=pentiumpro   -I. -I.                     -I/usr/local/inc
lude
/mysql    -o php  language-parser.tab.o language-scanner.o main.o
php3_hash.o op
erators.o variables.o token_cache.o stack.o internal_functions.o snprintf.o
php3
_sprintf.o alloc.o list.o highlight.o debugger.o configuration-parser.tab.o
conf
iguration-scanner.o request_info.o safe_mode.o fopen-wrappers.o constants.o
php3
_realpath.o alloca.o php_compat.o functions/adabasd.o functions/aspell.o
functio
ns/apache.o functions/fhttpd.o functions/basic_functions.o functions/crypt.o
fun
ctions/datetime.o functions/db.o functions/dbase.o functions/dir.o
functions/dl.
o functions/dns.o functions/exec.o functions/file.o functions/filepro.o
function
s/filestat.o functions/formatted_print.o functions/fsock.o functions/gd.o
functi
ons/head.o functions/html.o functions/image.o functions/imap.o
functions/php3_mc
al.o functions/php_ftp.o functions/ftp.o functions/imsp.o functions/link.o
funct
ions/mail.o functions/math.o functions/iptc.o functions/md5.o
functions/microtim
e.o functions/mime.o functions/msql.o functions/mysql.o functions/oracle.o
funct
ions/oci8.o functions/pack.o functions/pageinfo.o functions/pgsql.o
functions/ma
gick.o functions/post.o functions/rand.o functions/reg.o functions/solid.o
funct
ions/soundex.o functions/string.o functions/syslog.o functions/type.o
functions/
uniqid.o functions/sybase.o functions/sybase-ct.o functions/url.o
functions/base
64.o functions/info.o functions/bcmath.o functions/number.o functions/xml.o
func
tions/unified_odbc.o functions/ldap.o functions/browscap.o
functions/velocis.o f
unctions/gdttf.o functions/gdcache.o functions/zlib.o functions/COM.o
functions/
ifx.o functions/pdf.o functions/cpdf.o functions/hw.o functions/hg_comm.o
functi
ons/dlist.o functions/fdf.o functions/wddx.o functions/wddx_a.o
functions/snmp.o
 functions/var.o functions/interbase.o functions/quot_print.o
functions/cyr_conv
ert.o functions/sysvsem.o functions/dav.o functions/sysvshm.o
functions/gettext.
o functions/php3_mckcrypt.o functions/yp.o functions/dba.o
functions/dba_gdbm.o
functions/dba_dbm.o functions/dba_ndbm.o functions/dba_cdb.o
functions/mcrypt.o
functions/dba_db2.o functions/mhash.o functions/pcre.o functions/posix.o
functio
ns/parsedate.o functions/lcg.o functions/recode.o
functions/levenshtein.o -R/usr
/local/lib/mysql  -L/usr/local/lib/mysql -lmysqlclient     pcrelib/libpcre.a
                -lz        -lpam -lm -lcrypt
functions/file.o: In function `php3_tempnam':
functions/file.o(.text+0x79d): warning: tempnam() possibly used unsafely;
consid
er using mkstemp()
functions/mysql.o: In function `php3_mysql_create_db':
functions/mysql.o(.text+0x10e8): undefined reference to `mysql_create_db'
functions/mysql.o: In function `php3_mysql_drop_db':
functions/mysql.o(.text+0x1214): undefined reference to `mysql_drop_db'
*** Error code 1

Stop in /usr/ports/lang/php3/work/php-3.0.18.
*** Error code 1

Stop in /usr/ports/lang/php3.
*** Error code 1

Stop in /usr/ports/lang/php3.
root at hurricane#

- Noah





_______________________________________________
freebsd-questions at freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"






More information about the freebsd-questions mailing list