ID:               23330
 Comment by:       98181011 at 263 dot sina dot com
 Reported By:      news105 at guidoni dot com
 Status:           Closed
 Bug Type:         MySQL related
 Operating System: RHL 9.0 Shrike - everything inst
 PHP Version:      4.3.1
 New Comment:

in RH9,I try to setup php-4.3.1 ,and such error appear:

Zend/zend_execute.lo sapi/cli/php_cli.lo sapi/cli/getopt.lo
main/internal_functions_cli.lo -lcrypt -lsablot -lexpat -lcrypt
-lmysqlclient -lgd -ljpeg -lz -lresolv -lm -ldl -lnsl -lcrypt -lcrypt 
-o sapi/cli/php
ext/gd/gd.o(.text+0x573): In function `zm_deactivate_gd':
/root/zhanghe/spt/php4-200310160130/ext/gd/gd.c:382: undefined
reference to `gdFreeFontCache'
ext/gd/gd.o(.text+0x2c3f): In function `zif_imagecreatefromstring':
/root/zhanghe/spt/php4-200310160130/ext/gd/gd.c:1313: undefined
reference to `gdImageCreateFromJpegCtx'
ext/gd/gd.o(.text+0x2c97):/root/zhanghe/spt/php4-200310160130/ext/gd/gd.c:1322:
undefined reference to `gdImageCreateFromPngCtx'
ext/gd/gd.o(.text+0x3003): In function `zif_imagecreatefromjpeg':
/root/zhanghe/spt/php4-200310160130/ext/gd/gd.c:1497: undefined
reference to `gdImageCreateFromJpegCtx'
ext/gd/gd.o(.text+0x3008):/root/zhanghe/spt/php4-200310160130/ext/gd/gd.c:1497:
undefined reference to `gdImageCreateFromJpeg'
ext/gd/gd.o(.text+0x302f): In function `zif_imagecreatefrompng':
/root/zhanghe/spt/php4-200310160130/ext/gd/gd.c:1507: undefined
reference to `gdImageCreateFromPngCtx'
ext/gd/gd.o(.text+0x3034):/root/zhanghe/spt/php4-200310160130/ext/gd/gd.c:1507:
undefined reference to `gdImageCreateFromPng'
ext/gd/gd.o(.text+0x36bb): In function `zif_imagepng':
/root/zhanghe/spt/php4-200310160130/ext/gd/gd.c:1722: undefined
reference to `gdImagePngCtx'
ext/gd/gd.o(.text+0x36e3): In function `zif_imagejpeg':
/root/zhanghe/spt/php4-200310160130/ext/gd/gd.c:1736: undefined
reference to `gdImageJpegCtx'
ext/gd/gd.o(.text+0x8de9): In function `_php_image_convert':
/root/zhanghe/spt/php4-200310160130/ext/gd/gd.c:3725: undefined
reference to `gdImageCreateFromJpeg'
ext/gd/gd.o(.text+0x8e0f):/root/zhanghe/spt/php4-200310160130/ext/gd/gd.c:3736:
undefined reference to `gdImageCreateFromPng'
ext/standard/filestat.o(.text+0xcd9): In function `php_stat':
/root/zhanghe/spt/php4-200310160130/ext/standard/filestat.c:575:
undefined reference to `php_check_open_basedir_ex'
/usr/local/lib/libsablot.so: undefined reference to `operator
new[](unsigned)'
/usr/local/lib/libsablot.so: undefined reference to `vtable for
__cxxabiv1::__si_class_type_info'
/usr/local/lib/libsablot.so: undefined reference to `operator
delete(void*)'
/usr/local/lib/libsablot.so: undefined reference to
`__gxx_personality_v0'
/usr/local/lib/libsablot.so: undefined reference to
`__cxa_pure_virtual'
/usr/local/lib/libsablot.so: undefined reference to `vtable for
__cxxabiv1::__class_type_info'
/usr/local/lib/libsablot.so: undefined reference to `operator
delete[](void*)'
/usr/local/lib/libsablot.so: undefined reference to `vtable for
__cxxabiv1::__vmi_class_type_info'
/usr/local/lib/libsablot.so: undefined reference to `operator
new(unsigned)'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1


then i try to setup php-4.3.3 ,the same. after that,I downloaded
php4-STABLE-200310152330 and php4-200310160130 from
http://snaps.php.net/ ,the same result.


Previous Comments:
------------------------------------------------------------------------

[2003-04-24 15:47:20] news105 at guidoni dot com

here's the info.  thanks again.

glibc-2.3.2-27.9
gcc-3.2.2-5


#include <errno.h> was added to these files
-------------------------------------------
php4-200304241530/ext/mysql/libmysql/my_lib.c
php4-200304241530/ext/mysql/libmysql/my_malloc.c
php4-200304241530/ext/mysql/libmysql/my_realloc.c
php4-200304241530/ext/mysql/libmysql/my_delete.c
php4-200304241530/ext/mysql/libmysql/my_tempnam.c
php4-200304241530/ext/mysql/libmysql/my_error.c
php4-200304241530/ext/mysql/libmysql/my_getwd.c
php4-200304241530/ext/mysql/libmysql/safemalloc.c
php4-200304241530/ext/mysql/libmysql/my_once.c


this error remained, although it successfully made the 
sapi/cli/php binary i needed:
ext/mysql/libmysql/my_tempnam.o(.text+0x40): In function 
`my_tempnam':
php4-200304241530/ext/mysql/libmysql/my_tempnam.c:104: the 
use of `tempnam' is dangerous, better use `mkstemp'

------------------------------------------------------------------------

[2003-04-24 15:20:52] [EMAIL PROTECTED]

Glad that worked.  
 
Which files needed the change, specifically? I don't have 
a box with MySQL, glibc 2.3.x and gcc 3.2.2 on it so I 
can't test at the moment. (I think the problem was glibc, 
not gcc, btw.) 
 
J 

------------------------------------------------------------------------

[2003-04-24 14:48:20] news105 at guidoni dot com

thanks a 10^9, j.  that worked like a charm.  got the cli 
binary.

how does that get propogated into the source or will it?

--michele

------------------------------------------------------------------------

[2003-04-24 14:14:12] [EMAIL PROTECTED]

Try putting 
 
#include <errno.h> 
 
near the top of the offending files, such as my_tempnam.c, 
my_delete.c, etc. and see if that helps. 
 
J 

------------------------------------------------------------------------

[2003-04-24 13:08:24] news105 at guidoni dot com

we're using mysql 3.23.54a-11.  thanks in advance.

--michele

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/23330

-- 
Edit this bug report at http://bugs.php.net/?id=23330&edit=1

Reply via email to