On Sun, Feb 08, 2004 at 08:48:35PM -0600, Harlan wrote: > I realize that everyone is busy, but I would like to find a solution so I can > get PHP installed. > > Any ideas? > > Thanks, > > Harlan... > > ---------- Forwarded Message ---------- > > Subject: [gentoo-user] libwww-5.4.0-r[12] compile fails > Date: Saturday 07 February 2004 07:54 am > From: Harlan <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > > Hello, > I'm trying to install/update apache, php and mysql. I have older versions > of apache and mysql on this computer, but php has not been installed on this > computer before. > > When I do a pretend, here is the list of what needs to be built: > > star21 portage # emerge -p apache php mysql > > These are the packages that I would merge, in order: > > Calculating dependencies ...done! > [ebuild R ] net-www/apache-2.0.48-r1 > [ebuild N ] net-libs/libwww-5.4.0-r1 > [ebuild N ] dev-php/php-4.3.4-r4 > [ebuild U ] sys-apps/tcp-wrappers-7.6-r6 [7.6-r4] > [ebuild U ] dev-db/mysql-4.0.16 [4.0.13-r4]
Not sure I understand. It is possible to rebuild a package. Which is what you accomplish with the command above. emerge -p apache ... will reemerge apache and rebuild it. Nothing wrong there. > > I've done this a few times, and portage thinks that apache needs to be > recompiled every time; apache builds just fine. > > I even tried to do an "ACCEPT_KEYWORDS="~x86" emerge net-misc/libwww" (which > is how I tried libwww-5.4.0-r2) with the same results. > > Here is a copy of the errors that I get for both libwww-5.4.0-r1 and > libwww-5.4.0-r2: > gcc -march=pentium3 -O3 -pipe -Wall -o .libs/head head.o > ../src/.libs/libwwwinit.so -L/usr/local/lib/mysql -L/usr/lib > ../src/.libs/libwwwapp.so ../../Library/src/.libs/libwwwxml.so > ../../modules/expat/xmlparse/.libs/libxmlparse.so > ../../modules/expat/xmltok/.libs/libxmltok.so ../src/.libs/libwwwhtml.so > ../src/.libs/libwwwtelnet.so ../src/.libs/libwwwnews.so > ../src/.libs/libwwwhttp.so ../src/.libs/libwwwmime.so > ../src/.libs/libwwwgopher.so ../src/.libs/libwwwftp.so > ../src/.libs/libwwwdir.so ../src/.libs/libwwwcache.so > ../src/.libs/libwwwstream.so ../src/.libs/libwwwfile.so > ../src/.libs/libwwwmux.so ../src/.libs/libwwwtrans.so > ../src/.libs/libwwwcore.so ../src/.libs/libwwwutils.so > ../../Library/src/SSL/.libs/libwwwssl.so ../../Library/src/.libs/libwwwzip.so > ../../Library/src/.libs/libwwwsql.so ../../modules/md5/.libs/libmd5.so -ldl > /usr/local/lib/mysql/libmysqlclient.so -lz -lcrypt -lnsl -lm -lssl -lcrypto > -Wl,--rpath -Wl,/usr/local/lib/mysql > ../../Library/src/.libs/libwwwsql.so: undefined reference to `mysql_connect' > ../../Library/src/.libs/libwwwsql.so: undefined reference to > `mysql_create_db' collect2: ld returned 1 exit status > make[3]: *** [head] Error 1 > make[3]: *** Waiting for unfinished jobs.... > gcc -march=pentium3 -O3 -pipe -Wall -o .libs/libapp_1 libapp_1.o > ../src/.libs/libwwwinit.so -L/usr/local/lib/mysql -L/usr/lib > ../src/.libs/libwwwapp.so ../../Library/src/.libs/libwwwxml.so > ../../modules/expat/xmlparse/.libs/libxmlparse.so > ../../modules/expat/xmltok/.libs/libxmltok.so ../src/.libs/libwwwhtml.so > ../src/.libs/libwwwtelnet.so ../src/.libs/libwwwnews.so > ../src/.libs/libwwwhttp.so ../src/.libs/libwwwmime.so > ../src/.libs/libwwwgopher.so ../src/.libs/libwwwftp.so > ../src/.libs/libwwwdir.so ../src/.libs/libwwwcache.so > ../src/.libs/libwwwstream.so ../src/.libs/libwwwfile.so > ../src/.libs/libwwwmux.so ../src/.libs/libwwwtrans.so > ../src/.libs/libwwwcore.so ../src/.libs/libwwwutils.so > ../../Library/src/SSL/.libs/libwwwssl.so ../../Library/src/.libs/libwwwzip.so > ../../Library/src/.libs/libwwwsql.so ../../modules/md5/.libs/libmd5.so -ldl > /usr/local/lib/mysql/libmysqlclient.so -lz -lcrypt -lnsl -lm -lssl -lcrypto > -Wl,--rpath -Wl,/usr/local/lib/mysql > ../../Library/src/.libs/libwwwsql.so: undefined reference to `mysql_connect' > ../../Library/src/.libs/libwwwsql.so: undefined reference to > `mysql_create_db' collect2: ld returned 1 exit status > make[3]: *** [libapp_1] Error 1 > make[3]: Leaving directory > `/var/tmp/portage/libwww-5.4.0-r2/work/w3c-libwww-5.4.0/Library/Examples' > make[2]: *** [all-recursive] Error 1 > make[2]: Leaving directory > `/var/tmp/portage/libwww-5.4.0-r2/work/w3c-libwww-5.4.0/Library' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory > `/var/tmp/portage/libwww-5.4.0-r2/work/w3c-libwww-5.4.0' > make: *** [all-recursive-am] Error 2 > > !!! ERROR: net-libs/libwww-5.4.0-r2 failed. > !!! Function src_compile, Line 53, Exitcode 2 > !!! (no error message) > > Any suggestions would be great. Do you have the mysql USE flag set? emerge -pv will tell you that both libww and php rely on this USE flag. Maybe that would help? -- Mike -- [EMAIL PROTECTED] mailing list
