[PHP] Problem with compilation from CVS

2002-12-25 Thread Bc. Radek Kreja
Hello,
I try compile PHP from CVS. I download source, configure it, compile
it and install it. All ok, but after installation I got this:

Fatal error: main() [function.main]: Failed opening required 
'./libraries/grab_globals.lib.php' (include_path='.:/usr/local/lib/php') in 
/home/starnet.cz/dbadmin3/index.php on line 8

Where is problem, what I made bad?

Thanks
Radek



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




Re: [PHP] Problem with compilation from CVS

2002-12-25 Thread Johannes Schlueter
On Thursday 26 December 2002 00:57, Bc. Radek Kreja wrote:
 Fatal error: main() [function.main]: Failed opening required
 './libraries/grab_globals.lib.php' (include_path='.:/usr/local/lib/php') in
 /home/starnet.cz/dbadmin3/index.php on line 8

 Where is problem, what I made bad?

Hi,

are you sure you have all PHP-Files your PHP-Project needs? The error message 
tells you that your script trys to load ./libraries/grab_globals.lib.php at 
index.php, line 8, check wether the grab_globals.lib.php is reachable...

johannes

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




Re: [PHP] Problem with compilation from CVS

2002-12-25 Thread Bc. Radek Kreja
Hello,

  yes, I am. Because if I compile PHP from source.tar.gz (version
  4.2.3), it works. But I am not sure with version of PHP from CVS. I
  try

  cvs -d :pserver:[EMAIL PROTECTED]:/repository co -r PHP_4_2_3 php4

  but answer is only cvs [server aborted]: no such tag PHP_4_2_3.

  Command
  cvs -d :pserver:[EMAIL PROTECTED]:/repository co -r PHP_4_2_2 php4
  works perfectly. I don't know, what I make bad.

  Thanks Radek

JS On Thursday 26 December 2002 00:57, Bc. Radek Kreja wrote:
 Fatal error: main() [function.main]: Failed opening required
 './libraries/grab_globals.lib.php' (include_path='.:/usr/local/lib/php') in
 /home/starnet.cz/dbadmin3/index.php on line 8

 Where is problem, what I made bad?

JS Hi,

JS are you sure you have all PHP-Files your PHP-Project needs? The error message 
JS tells you that your script trys to load ./libraries/grab_globals.lib.php at 
JS index.php, line 8, check wether the grab_globals.lib.php is reachable...

JS johannes



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




[PHP] Problem with compilation

2002-05-28 Thread Mirek Novak

Hi, I'm trying to compile CGI version of latest PHP v4  (4.2.1) on Linux RH 6.2 kernel 
2.2.14 with mysql client/server ver 2.22.49 
   and it always fails to compile while compiling mysql extension. I've included part 
with error message which I don't understand to.
CONFIG
   ./configure --prefix=/usr \
 --with-config-file-path=/etc \
 --enable-sockets \
 --enable-ftp \
 --with-mysql=/usr \
 --enable-inline-optimization
 [root@www php-4.2.1]#
/CONFIG
MESSAGE
Making all in mysql
make[2]: Entering directory `/usr/src/php-4.2.1/ext/mysql'
make[3]: Entering directory `/usr/src/php-4.2.1/ext/mysql'
gcc -I. -I/usr/src/php-4.2.1/ext/mysql -I/usr/src/php-4.2.1/main -I/usr/src/php-4.2.1 
-I/usr/src/php-4.2.1/Zend 
-I/usr/include/mysql -I/usr/src/php-4.2.1/ext/xml/expat  -I/usr/src/php-4.2.1/TSRM -g 
-O2  -c php_mysql.c  touch php_mysql.lo
In file included from /usr/include/sys/socket.h:34,
  from /usr/include/netdb.h:31,
  from php_mysql.c:49:
/usr/include/bits/socket.h:35: warning: redefinition of `socklen_t'
/usr/src/php-4.2.1/main/php.h:114: warning: `socklen_t' previously declared here
php_mysql.c: In function `_close_mysql_link':
php_mysql.c:252: `SIGPIPE' undeclared (first use in this function)
php_mysql.c:252: (Each undeclared identifier is reported only once
php_mysql.c:252: for each function it appears in.)
php_mysql.c:252: `SIG_IGN' undeclared (first use in this function)
php_mysql.c:252: warning: assignment makes pointer from integer without a cast
php_mysql.c: In function `_close_mysql_plink':
php_mysql.c:267: `SIGPIPE' undeclared (first use in this function)
php_mysql.c:267: `SIG_IGN' undeclared (first use in this function)
php_mysql.c:267: warning: assignment makes pointer from integer without a cast
php_mysql.c: In function `php_mysql_do_connect':
php_mysql.c:602: `SIGPIPE' undeclared (first use in this function)
php_mysql.c:602: `SIG_IGN' undeclared (first use in this function)
php_mysql.c:602: warning: assignment makes pointer from integer without a cast
make[3]: *** [php_mysql.lo] Error 1
make[3]: Leaving directory `/usr/src/php-4.2.1/ext/mysql'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/php-4.2.1/ext/mysql'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/php-4.2.1/ext'
make: *** [all-recursive] Error 1

/MESSAGE

I'm not able to identify the real cause of this problem. Can someone help?

Mirek.
--


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




[PHP] Problem with compilation with GD support on OpenBSD 2.9

2001-09-19 Thread Martin Ambroz

Hi,
I have problem with GD lib in PHP. I try compile PHP with Gdlib on OpenBSD
2.9. I download gd-1.8.4, freetype-2.0.4, libpng-1.2.0 and jpeg-6b. With
compile gd i have some problems, but I thought it was OK. But during
compilation php-4.0.6 has happened mistake. This:

/bin/sh /home/darius/install/php-4.0.6/libtool --silent --mode=link
gcc  -I. -I/
home/darius/install/php-4.0.6/ -I/home/darius/install/php-4.0.6/main -I/home
/dar
ius/install/php-4.0.6 -I/usr/local/httpd/include -I/home/darius/install/php-
4.0.
6/Zend -I/usr/local/include -I/usr/local/include/c-client -I/home/darius/ins
tall
/php-4.0.6/ext/mysql/libmysql -I/home/darius/install/php-4.0.6/ext/xml/expat
/xml
tok -I/home/darius/install/php-4.0.6/ext/xml/expat/xmlparse -I/home/darius/i
nsta
ll/php-4.0.6/TSRM  -DUSE_EXPAT -DSUPPORT_UTF8 -DXML_BYTE_ORDER=12 -g -O2   -
o li
bphp4.la -rpath
/home/darius/install/php-4.0.6/libs -avoid-version -L/usr/local/
lib  -R /usr/local/lib stub.lo  Zend/libZend.la  sapi/apache/libsapi.la
main/li
bmain.la  regex/libregex.la  ext/ftp/libftp.la ext/gd/libgd.la
ext/imap/libimap.
la ext/mysql/libmysql.la ext/pcre/libpcre.la ext/posix/libposix.la
ext/session/l
ibsession.la ext/standard/libstandard.la ext/xml/libxml.la
TSRM/libtsrm.la -lc-
client -lgd -lresolv -lm -lresolv
gd.c:361: Definition of symbol `_gdImageColorResolve' (multiply defined)
my_tempnam.c:86: warning: tempnam() possibly used unsafely; consider using
mkste
mp()
/usr/local/lib/libgd.a(gd.o): Definition of symbol `_gdImageColorResolve'
(multi
ply defined)
collect2: ld returned 1 exit status
*** Error code 1

Stop in /home/darius/install/php-4.0.6 (line 23 of
/home/darius/install/php-4.0.
6/build/library.mk).
*** Error code 1

Stop in /home/darius/install/php-4.0.6 (line 37 of
/home/darius/install/php-4.0.
6/build/rules.mk).

The configure command is:
./configure --with-apxs=/usr/local/httpd/bin/apxs --with-mysql --with-imap -
-enable-ftp --with-gd=/usr/local

What is wrong? Could you help me please, how to compile PHP with gd library
on OpenBSD 2.9?

Thank
Radek



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]