Hi,

I am having quite some difficulty installing 4.3.0 on two of my 3 
machines.  

I have spent the entire day surfing php.net, phpbuilder, google and 
every archive I could find.  I would very much appreciate any help 
anyone can provide.

Machine 1 bombs out with a mysql lib error when trying to use the 
internal mysql client.

Machine 2 bombs out during make with a GD/TTF error.

Machine 3 compiles AOK.

They were all on various 4.2.x version previously.

======================
Machine 1:
======================
./configure                                          
--with-apache=       /usr/local/src/apache_1.3.24        
--prefix=            /usr/local/php                     
--with-mysql                     
--with-pgsql=        /usr/local/pgsql                 
--with-gd                                                  
--with-freetype-dir= /usr/local/include/freetype2        
--with-jpeg-dir                                          
--with-png-dir                                          
--with-zlib                                             
--with-curl=/usr/local/lib
--disable-debug                                     
--enable-sysvsem                                     
--enable-sysvshm                                         
--enable-sockets                                         
--enable-track-vars                                      
--enable-gd-native-tt                                    
--without-xpm-dir
--with-mnogosearch

After configuring...

+--------------------------------------------------------------------
+
|                       *** ATTENTION ***                            
|
|                                                                    
|
| Something is likely to be messed up here, because the configure    
|
etc...


And looking at debug.log:

[php-4.3.0]# cat debug.log 
CONFIGURE:   './configure' '--with-apache=       
/usr/local/src/apache_1.3.24' '--prefix=            /usr/local/php' '-
-with-mysql     ' '--with-pgsql=        /usr/local/pgsql' '--with-gd  
' '--with-freetype-dir= /usr/local/include/freetype2' '--with-jpeg-
dir' '--with-png-dir' '--with-zlib' '--with-curl=/usr/local/lib' '--
disable-debug' '--enable-sysvsem' '--enable-sysvshm' '--enable-
sockets' '--enable-track-vars' '--enable-gd-native-tt' '--without-xpm-
dir' '--with-mnogosearch'
CC:         gcc
CFLAGS:     -g -O2
CPPFLAGS:   
CXX:        
CXXFLAGS:   
INCLUDES:    -I$(top_builddir)/Zend -I/usr/local/include -
I/usr/local/include/freetype2 -I/usr/local/mnogosearch/include -
I/usr/local/pgsql/include
LDFLAGS:     -Wl,-rpath,/usr/local/lib -L/usr/local/lib -Wl,-
rpath,/usr/local/mysql/lib/mysql -L/usr/local/mysql/lib/mysql -Wl,-
rpath,/usr/local/mnogosearch/lib -L/usr/local/mnogosearch/lib -Wl,-
rpath,/usr/local/pgsql/lib -L/usr/local/pgsql/lib
LIBS:       -lpq -lfreetype -lpng -lz -ljpeg -lcurl -lz -lcrypt -
lresolv -lm -ldl -lnsl  -lcrypt -lcurl -lz -lssl -lcrypto -ldl -lz -
lz -lm -lmysqlclient -ludmsearch
DLIBS:      
SAPI:       apache
PHP_RPATHS:  /usr/local/lib /usr/local/mysql/lib/mysql 
/usr/local/mnogosearch/lib /usr/local/pgsql/lib
uname -a:   Linux denise 2.4.18 #3 Sat Jun 15 14:38:49 EST 2002 i686 
unknown

gcc -o conftest -g -O2   -Wl,-rpath,/usr/local/lib -L/usr/local/lib -
Wl,-rpath,/usr/local/mysql/lib/mysql -L/usr/local/mysql/lib/mysql -
Wl,-rpath,/usr/local/mnogosearch/lib -L/usr/local/mnogosearch/lib -
Wl,-rpath,/usr/local/pgsql/lib -L/usr/local/pgsql/lib conftest.c -lpq 
-lfreetype -lpng -lz -ljpeg -lcurl -lz -lcrypt -lresolv -lm -ldl -
lnsl  -lcrypt -lcurl -lz -lssl -lcrypto -ldl -lz -lz -lm -
lmysqlclient -ludmsearch 1>&5
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status

Any ideas?  I have cleaned out my ld.so.conf and ldconfig'd as well.


======================
Machine 2:
======================
Bombs out trying to compile in the inbuilt GD.  I was previously 
running 4.2.2 and it worked fine.  Moving to 4.3.0 with the exact 
same configure command and it will configure happily but fails during 
compilation.

CFLAGS="-O6 -mpentiumpro" CXX=gcc CXXFLAGS="-O6 -mpentiumpro -felide-
constructors -fno-exceptions -fno-rtti" 
./configure
--prefix=            /usr/local/php"                      
--with-apache=/usr/local/src/apache_1.3.26"                    
--with-mysql        "                    
--with-gd "                                       
--with-freetype-dir= /usr/local/include/freetype2"        
--with-jpeg-dir"                                          
--with-png-dir"                                           
--with-zlib"                                              
--disable-debug"                                          
--enable-sockets"                                         
--enable-track-vars"                                      
--enable-gd-native-tt"                                    

No errors during config.

Error producted during make.

gcc -I/usr/local/src/php-4.3.0/ext/gd/libgd -DHAVE_LIBPNG -
DHAVE_LIBJPEG -DHAVE_LIBFREETYPE -Iext/gd/ -I/usr/local/src/php-
4.3.0/ext/gd/ -DPHP_ATOM_INC -I/usr/local/src/php-4.3.0/include -
I/usr/local/src/php-4.3.0/main -I/usr/local/src/php-4.3.0 -
I/usr/local/src/php-4.3.0/Zend -I/usr/local/include -
I/usr/local/include/freetype2 -I/usr/local/src/php-
4.3.0/ext/xml/expat  -I/usr/local/src/php-4.3.0/TSRM  -O6 -
mpentiumpro  -c /usr/local/src/php-4.3.0/ext/gd/libgd/gdft.c -o 
ext/gd/libgd/gdft.o  && echo > ext/gd/libgd/gdft.lo
In file included from /usr/local/src/php-
4.3.0/ext/gd/libgd/gdft.c:50:
/usr/local/include/freetype2/freetype/ftglyph.h:104: parse error 
before `FT_Library'

[...lots of stuff...]

usr/local/src/php-4.3.0/ext/gd/libgd/gdft.c:1001: `bm' undeclared 
(first use in this function)
/usr/local/src/php-4.3.0/ext/gd/libgd/gdft.c:1011: dereferencing 
pointer to incomplete type
/usr/local/src/php-4.3.0/ext/gd/libgd/gdft.c:1012: dereferencing 
pointer to incomplete type
make: *** [ext/gd/libgd/gdft.lo] Error 1

Any ideas on that one?

Thank you very much for any help you can provide!

Faithfully!

Jason.

-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to