[102545] in RedHat Linux List

home help back first fref pref prev next nref lref last post

apache, php, and mysql

daemon@ATHENA.MIT.EDU (Ed Lazor)
Thu Dec 3 19:31:07 1998

From: "Ed Lazor" <elazor@hcs.state.or.us>
To: "redhat" <redhat-list@redhat.com>
Date: Thu, 3 Dec 1998 15:43:24 -0800
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com


I followed the instructions and now I get error messages when running "make"
in the apache source directory that look like:

/usr/src/redhat/SOURCES/php-3.0.5/functions/mysql.c:1373: undefined
reference to `mysql_fetch_row'


I have found that if I compile php without mysql support, everything works
properly.
It's only when I try to add mysql support that the error messages show up.
I checked
the apache_1.3.3/src/modules/php3/libphp3.module and also checked the
libmysqlclient.a
file to see where it was located.  libmysqlclient.a is located in
/usr/local/lib/mysql/
and the contents of the libphp3.module:

Name: php3_module
ConfigStart
        RULE_WANTHSREGEX=yes
        LIBS="-Lmodules/php3 lphp -L../modules/php3
lphp -L../../modules/php3 -lmodphp3 -lgdbm -L/usr/local/lib/mysql -lmysqlcli
ent
-L/usr/include/pgsql/lib -lpq -lgd -lm -ldl -lcrypt -lnsl  -lresolv $LIBS"
        RULE_HIDE=yes
ConfigEnd


I get the impression that the compile just isn't finding all of the files it
needs but I don't know how to tell it where they are beyond specifying
things in the libphp3.module file.  Anyone have any ideas?

-Ed


-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
		http://www.redhat.com http://archive.redhat.com
         To unsubscribe: mail redhat-list-request@redhat.com with 
                       "unsubscribe" as the Subject.


home help back first fref pref prev next nref lref last post