Re: [PHP]make error

2012-03-23 Thread Daniel Brown
2012/3/23 黄昭源 wongzhaoy...@gmail.com:
 Hello, I have a problem.
 When I configure php with the parameter --with-mysql=/usr/local/mysql and
 make, some errors happen. Below is the errors:
 ext/mysql/php_mysql.c:995: undefined reference to `_mysqlnd_init'
 ext/mysql/php_mysql.c:1012: undefined reference to `mysqlnd_connect'
 ext/mysql/php_mysql.c:876: undefined reference to `_mysqlnd_init'
 ...
 and so on.
 Is there someone also come across this? Can anyone help me? Thanks!

Sounds like you're missing the MySQL headers from the source
library.  You can either download the full source or install just the
headers via your system's package manager.  If you need more help, let
us know what distribution you're using.

-- 
/Daniel P. Brown
Network Infrastructure Manager
http://www.php.net/

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



Re: [PHP]make error

2012-03-23 Thread Asher Wong
I use php-5.4.0.tar.bz2 and MySQL-5.5.21-1.el6.src.rpm in CentOS 6.2. But I
can find the MySQL headers in the MySQL source I used. Is there anything
wrong with my installing MySQL?

2012/3/23 Daniel Brown danbr...@php.net

 2012/3/23 黄昭源 wongzhaoy...@gmail.com:
  Hello, I have a problem.
  When I configure php with the parameter --with-mysql=/usr/local/mysql and
  make, some errors happen. Below is the errors:
  ext/mysql/php_mysql.c:995: undefined reference to `_mysqlnd_init'
  ext/mysql/php_mysql.c:1012: undefined reference to `mysqlnd_connect'
  ext/mysql/php_mysql.c:876: undefined reference to `_mysqlnd_init'
  ...
  and so on.
  Is there someone also come across this? Can anyone help me? Thanks!

 Sounds like you're missing the MySQL headers from the source
 library.  You can either download the full source or install just the
 headers via your system's package manager.  If you need more help, let
 us know what distribution you're using.

 --
 /Daniel P. Brown
 Network Infrastructure Manager
 http://www.php.net/




-- 
黄昭源(Asher Wong)
*Best Wishes To You!*


Re: [PHP]make error

2012-03-23 Thread Asher Wong
I use php-5.4.0.tar.bz2 and MySQL-5.5.21-1.el6.src.rpm in CentOS 6.2. But I
can find the MySQL headers in the MySQL source I used. Is there anything
wrong with my installing MySQL?



 2012/3/23 Daniel Brown danbr...@php.net

 2012/3/23 黄昭源 wongzhaoy...@gmail.com:
  Hello, I have a problem.
  When I configure php with the parameter --with-mysql=/usr/local/mysql
 and
  make, some errors happen. Below is the errors:
  ext/mysql/php_mysql.c:995: undefined reference to `_mysqlnd_init'
  ext/mysql/php_mysql.c:1012: undefined reference to `mysqlnd_connect'
  ext/mysql/php_mysql.c:876: undefined reference to `_mysqlnd_init'
  ...
  and so on.
  Is there someone also come across this? Can anyone help me? Thanks!

 Sounds like you're missing the MySQL headers from the source
 library.  You can either download the full source or install just the
 headers via your system's package manager.  If you need more help, let
 us know what distribution you're using.

 --
 /Daniel P. Brown
 Network Infrastructure Manager
 http://www.php.net/




 --
 黄昭源(Asher Wong)
 *Best Wishes To You!*




-- 
黄昭源(Asher Wong)
*Best Wishes To You!*


[PHP]make error

2012-03-22 Thread 黄昭源
Hello, I have a problem.
When I configure php with the parameter --with-mysql=/usr/local/mysql and
make, some errors happen. Below is the errors:
ext/mysql/php_mysql.c:995: undefined reference to `_mysqlnd_init'
ext/mysql/php_mysql.c:1012: undefined reference to `mysqlnd_connect'
ext/mysql/php_mysql.c:876: undefined reference to `_mysqlnd_init'
...
and so on.
Is there someone also come across this? Can anyone help me? Thanks!

-- 
黄昭源
*Best Wishes To You!*


[PHP] make error on solaris

2003-02-27 Thread R'twick Niceorgaw
Hi all,
I'm trying to get a vanila installation of php 4.3.1(only the cli version)
on a solaris 8 system. This is my first day on a solaris box so I don't know
much about it. I'm running into some errors in the final linking stage. Any
one experienced this problem and got any idea to fix it? (error and my
configuration follows below).

Regards
R;twick

Here's the errors I'm getting

Undefined   first referenced
 symbol in file
wtcLerr
/opt/oracle/app/oracle/product/8.1.7/lib/libclient8.a(kpucc.o)  (symbol
belongs to implicit dependency
/opt/oracle/app/oracle/product/8.1.7/lib/libwtc8.so)
wtcMerr
/opt/oracle/app/oracle/product/8.1.7/lib/libclient8.a(kpucc.o)  (symbol
belongs to implicit dependency
/opt/oracle/app/oracle/product/8.1.7/lib/libwtc8.so)
wtcsrin
/opt/oracle/app/oracle/product/8.1.7/lib/libclient8.a(kpuini.o)  (symbol
belongs to implicit dependency
/opt/oracle/app/oracle/product/8.1.7/lib/libwtc8.so)
wtcsrfre
/opt/oracle/app/oracle/product/8.1.7/lib/libclient8.a(kpuini.o)  (symbol
belongs to implicit dependency
/opt/oracle/app/oracle/product/8.1.7/lib/libwtc8.so)
wtcstu
/opt/oracle/app/oracle/product/8.1.7/lib/libclient8.a(kpucc.o)  (symbol
belongs to implicit dependency
/opt/oracle/app/oracle/product/8.1.7/lib/libwtc8.so)
wtclkm
/opt/oracle/app/oracle/product/8.1.7/lib/libclient8.a(kpucc.o)  (symbol
belongs to implicit dependency
/opt/oracle/app/oracle/product/8.1.7/lib/libwtc8.so)
ld: fatal: Symbol referencing errors. No output written to sapi/cli/php
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1

And here is my configure line
./configure --prefix=/export/home/hdradmin/php --disable-cgi --with-pear --e
nable-ftp --without-mysql --with-oci8




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



[PHP] make error

2002-12-09 Thread info
Hi PHP-List,


after re-compiling my new and stable version of php-4.3.0-dev on a redhat 7.3 box
I compilied this version in order to use the benefits of gd with the following 
compiling options:

./configure --prefix=/usr/local/php_stable7 ... --with-gd=/usr ...

and when I run make I will get the following error report:

 
ext/gd/gd.o: In function `zif_imagecolormatch':
/usr/src/php4-STABLE-200212061230/ext/gd/gd.c:751: undefined reference to 
`gdImageColorMatch'
ext/gd/gd.o: In function `zif_imagerotate':
/usr/src/php4-STABLE-200212061230/ext/gd/gd.c:1022: undefined reference to 
`gdImageRotate'
ext/gd/gd.o: In function `zif_imagecreatefromstring':
/usr/src/php4-STABLE-200212061230/ext/gd/gd.c:1237: undefined reference to 
`gdImageCreateFromGifCtx'
ext/gd/gd.o: In function `zif_imagecreatefromgif':
/usr/src/php4-STABLE-200212061230/ext/gd/gd.c:1393: undefined reference to 
`gdImageCreateFromGifCtx'
/usr/src/php4-STABLE-200212061230/ext/gd/gd.c:1393: undefined reference to 
`gdImageCreateFromGif'
ext/gd/gd.o: In function `_php_image_convert':
/usr/src/php4-STABLE-200212061230/ext/gd/gd.c:3602: undefined reference to 
`gdImageCreateFromGif'
collect2: ld returned 1 exit status

How can I govern this?

Oliver


[PHP] Make error

2002-07-16 Thread Paulo Henrique Castro

Hi,

Im having the problem bellow when try make PHP source.
Im using this configure:





./configure --with-apache=/usr/local/src/apache_1.3.23 --with-mysql=/usr/loc
al/mysql --with-pgsql --with-zlib --with-gd --with-gettext

And make error:


Making all in Zend
make[1]: Entering directory `/usr/local/src/php-4.1.1/Zend'
/bin/sh ../libtool --silent --mode=compile
gcc -DHAVE_CONFIG_H -I. -I. -I../main   -I../TSRM  -g -O2 -prefer-non-pic -s
tatic -c zend_language_parser.c
In file included from zend.h:54,
 from zend_compile.h:24,
 from zend_language_parser.c:148:
/usr/local/include/unix.h:196: parse error before `MAILSTREAM'
/usr/local/include/unix.h:196: warning: no semicolon at end of struct or
union
/usr/local/include/unix.h:203: parse error before `}'
/usr/local/include/unix.h:203: warning: data definition has no type or
storage class
/usr/local/include/unix.h:207: parse error before `*'
/usr/local/include/unix.h:207: warning: data definition has no type or
storage class
/usr/local/include/unix.h:210: parse error before `*'
/usr/local/include/unix.h:211: parse error before `*'
/usr/local/include/unix.h:212: parse error before `*'
/usr/local/include/unix.h:213: parse error before `*'
/usr/local/include/unix.h:214: parse error before `*'
/usr/local/include/unix.h:215: parse error before `*'
/usr/local/include/unix.h:216: parse error before `*'
/usr/local/include/unix.h:216: parse error before `*'
/usr/local/include/unix.h:216: warning: data definition has no type or
storage class
/usr/local/include/unix.h:217: parse error before `*'
/usr/local/include/unix.h:218: parse error before `*'
/usr/local/include/unix.h:220: parse error before `*'
/usr/local/include/unix.h:221: parse error before `*'
/usr/local/include/unix.h:223: parse error before `*'
/usr/local/include/unix.h:224: parse error before `*'
/usr/local/include/unix.h:225: parse error before `*'
/usr/local/include/unix.h:226: parse error before `*'
/usr/local/include/unix.h:227: parse error before `*'
/usr/local/include/unix.h:228: parse error before `*'
/usr/local/include/unix.h:229: parse error before `*'
/usr/local/include/unix.h:233: parse error before `*'
/usr/local/include/unix.h:235: parse error before `DOTLOCK'
/usr/local/include/unix.h:236: parse error before `MAILSTREAM'
/usr/local/include/unix.h:237: parse error before `*'
/usr/local/include/unix.h:238: parse error before `*'
/usr/local/include/unix.h:239: parse error before `*'
/usr/local/include/unix.h:240: parse error before `*'
/usr/local/include/unix.h:242: parse error before `*'
/usr/local/include/unix.h:243: parse error before `*'
/usr/local/include/unix.h:247: parse error before `*'
/usr/local/include/unix.h:249: parse error before `*'
/usr/local/include/unix.h:250: parse error before `*'
/usr/local/include/unix.h:254: parse error before `*'
/usr/local/include/unix.h:256: parse error before `MAILSTREAM'
make[1]: *** [zend_language_parser.lo] Error 1
make[1]: Leaving directory `/usr/local/src/php-4.1.1/Zend'
make: *** [all-recursive] Error 1


Can anyone help me?
I try move some .h files to another dir but doesnt work!!


Tnx!

Best Regards,

PH



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




[PHP] make error

2002-02-21 Thread info

Hi,
I've downloaded the newset PHP sources, made ./configure --with-mysql --with-apxs what 
was succesfully but when I type make it starts compiling but an error occures:
Making all in Zend
make[1]: Entering directory `/c/php-4.1.1/Zend'
/bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main   
-DEAPI_MM -DLINUX=2 -DMOD_SSL=206105 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT -I../TSRM  -g 
-O2 -prefer-pic -c zend_language_parser.c
/bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main   
-DEAPI_MM -DLINUX=2 -DMOD_SSL=206105 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT -I../TSRM  -g 
-O2 -prefer-pic -c zend_language_scanner.c
/bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main   
-DEAPI_MM -DLINUX=2 -DMOD_SSL=206105 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT -I../TSRM  -g 
-O2 -prefer-pic -c zend_ini_parser.c
/bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main   
-DEAPI_MM -DLINUX=2 -DMOD_SSL=206105 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT -I../TSRM  -g 
-O2 -prefer-pic -c zend_ini_scanner.c
/bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main   
-DEAPI_MM -DLINUX=2 -DMOD_SSL=206105 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT -I../TSRM  -g 
-O2 -prefer-pic -c zend_alloc.c
/bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main   
-DEAPI_MM -DLINUX=2 -DMOD_SSL=206105 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT -I../TSRM  -g 
-O2 -prefer-pic -c zend_compile.c
/bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main   
-DEAPI_MM -DLINUX=2 -DMOD_SSL=206105 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT -I../TSRM  -g 
-O2 -prefer-pic -c zend_constants.c
/bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main   
-DEAPI_MM -DLINUX=2 -DMOD_SSL=206105 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT -I../TSRM  -g 
-O2 -prefer-pic -c zend_dynamic_array.c
gcc: Internal compiler error: program cc1 got fatal signal 11
make[1]: *** [zend_dynamic_array.lo] Error 1
make[1]: Leaving directory `/c/php-4.1.1/Zend'
make: *** [all-recursive] Error 1

Can anyone help me ?
I also have problems when I delete the configure script and make a new one with 
./buildconf then it will output the following warning and ./configure --with-mysql 
--with-apxs will stop after checking whether yytext is a pointer... yes:
buildconf: checking installation...
buildconf: autoconf version 2.52 (ok)
buildconf: automake version 1.5 (ok)
buildconf: libtool version 1.4.2 (ok)
rebuilding configure
configure.in:124: warning: AC_PROG_LEX invoked multiple times
rebuilding main/php_config.h.in

./configure --with-mysql --with-apxs
checking for a BSD compatible install... /usr/bin/ginstall -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
Updated php_version.h
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... i586-pc-linux-gnu
checking host system type... i586-pc-linux-gnu
checking for mawk... no
checking for gawk... gawk
checking for bison... bison -y
checking bison version... 1.25 (ok)
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for executable suffix...
checking for object suffix... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for AIX... no
checking for gcc option to accept ANSI C... none needed
checking for ranlib... ranlib
checking whether gcc and cc understand -c and -o together... yes
checking whether ln -s works... yes
checking for flex... flex
checking for yywrap in -lfl... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
./configure: line 3394: syntax error near unexpected token `fi'
./configure: line 3394: `fi'

Anyone got an idea what is wrong here??

So long