Compiling for apache under Solaris

[email protected] ("Emilio Gutierrez Aguirre") Tue, 25 Jan 2000 12:40:46 -0600
Newsgroups php.beta
Message-ID <[email protected]>
------=_NextPart_000_000D_01BF6731.66D1B0E0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi,=20

I'm trying to install PHP4 Beta 3 under Solaris 7 x86, I followed the
instructions and everything went smooth until I tried to compile the
httpd daemon. (Apache 1.3.6)

What I did:

# ./configure --prefix=3D/www =
--activate-module=3Dsrc/modules/php4/libphp4.a
.
.
.
(no problems reported here)

# make

(then after a while I get this:)

gcc  -DSOLARIS2=3D270 -I/export/home/emiliog/php-4.0b3 =
-I/export/home/emiliog/php-4.0b3/libzend =
-I/export/home/emiliog/php-4.0b3/libzend =
-I/export/home/emiliog/php-4.0b3 -DUSE_HSREGEX `./apaci`    \
      -o httpd buildmark.o modules.o modules/php4/libphp4.a =
modules/standard/libstandard.a main/libmain.a ./os/unix/libos.a =
ap/libap.a regex/libregex.a  -Lmodules/php4 -L../modules/php4 =
-L../../modules/php4 -lmodphp4 -ldl -lgd -lm  -lresolv  -lnsl -lsocket =
-lcrypt     -lpam   -lsocket -lnsl
ld: fatal: symbol `gdImageColorResolve' is multiply defined:
        (file modules/php4/libphp4.a(gd.o) and file =
/usr/local/lib/libgd.a(gd.o));
ld: fatal: File processing errors. No output written to httpd
collect2: ld returned 1 exit status
make[2]: *** [target_static] Error 1
make[2]: Leaving directory `/export/home/emiliog/apache_1.3.6/src'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/export/home/emiliog/apache_1.3.6'
make: *** [build] Error 2

Does anybody knows why the symbol `gdImageColorResolve' is multiply =
defined?

Thanks in advance for any help you may provide.

_________________________________________________
Emilio Gutierrez Aguirre
SuPlaza
(8) 336 2680
www.suplaza.com.mx

------=_NextPart_000_000D_01BF6731.66D1B0E0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2919.6307" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi, </FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I'm trying to install PHP4 Beta 3 under =
Solaris 7=20
x86, I followed the</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>instructions and everything =
</FONT><FONT face=3DArial=20
size=3D2>went smooth until I tried to compile the</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>httpd daemon. (Apache =
1.3.6)</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>What I did:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2># ./configure --prefix=3D/www=20
--activate-module=3Dsrc/modules/php4/libphp4.a</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>(no problems reported =
here)</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2># make</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>(then after a while I get =
this:)</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>gcc&nbsp; -DSOLARIS2=3D270=20
-I/export/home/emiliog/php-4.0b3 =
-I/export/home/emiliog/php-4.0b3/libzend=20
-I/export/home/emiliog/php-4.0b3/libzend =
-I/export/home/emiliog/php-4.0b3=20
-DUSE_HSREGEX `./apaci`&nbsp;&nbsp;&nbsp; =
\<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -o=20
httpd buildmark.o modules.o modules/php4/libphp4.a=20
modules/standard/libstandard.a main/libmain.a ./os/unix/libos.a =
ap/libap.a=20
regex/libregex.a&nbsp; -Lmodules/php4 -L../modules/php4 =
-L../../modules/php4=20
-lmodphp4 -ldl -lgd -lm&nbsp; -lresolv&nbsp; -lnsl -lsocket=20
-lcrypt&nbsp;&nbsp;&nbsp;&nbsp; -lpam&nbsp;&nbsp; -lsocket -lnsl<BR>ld: =
fatal:=20
symbol `gdImageColorResolve' is multiply=20
defined:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (file=20
modules/php4/libphp4.a(gd.o) and file =
/usr/local/lib/libgd.a(gd.o));<BR>ld:=20
fatal: File processing errors. No output written to httpd<BR>collect2: =
ld=20
returned 1 exit status<BR>make[2]: *** [target_static] Error =
1<BR>make[2]:=20
Leaving directory `/export/home/emiliog/apache_1.3.6/src'<BR>make[1]: =
***=20
[build-std] Error 2<BR>make[1]: Leaving directory=20
`/export/home/emiliog/apache_1.3.6'<BR>make: *** [build] Error =
2</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Does anybody knows why the symbol=20
`gdImageColorResolve' is multiply defined?</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks in advance for any help you may=20
provide.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial=20
size=3D2>_________________________________________________<BR>Emilio =
Gutierrez=20
Aguirre<BR>SuPlaza<BR>(8) 336 2680<BR><A=20
href=3D"http://www.suplaza.com.mx">www.suplaza.com.mx</A></FONT></DIV></B=
ODY></HTML>

------=_NextPart_000_000D_01BF6731.66D1B0E0--