[PHP-DEV] Re: Bug #10561 Updated: sockets.c uses `SUN_LEN' unconditionally - undefined on Solaris

2001-05-02 Thread Rob McMahon

  Have you tried 4.0.5 as I think this is fixed in it.  Also, you don't need
  to set those CPPFLAGS anymore.

It looks like sockets.c has been fixed, but pdf.c has been broken on the way
:-(

pdf.c, line 2704: prototype mismatch: 3 args passed, 2 expected

  2702  PDF_close_pdi_page(pdf,
  2703  Z_LVAL_PP(arg2)-PDFLIB_PDI_OFFSET,
  2704  Z_LVAL_PP(arg3)-PDFLIB_IMAGE_OFFSET);

pdflib 4.0.0 has a two-argument PDF_close_pdi_page, 3.0 hasn't got one at all.
Time for another bug report.

Rob

-- 
PHP Development 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]




[PHP-DEV] Re: Bug #10561 Updated: sockets.c uses `SUN_LEN' unconditionally - undefined on Solaris

2001-05-02 Thread Rob McMahon

Have you tried 4.0.5 as I think this is fixed in it.  Also, you don't need
to set those CPPFLAGS anymore.
  
  It looks like sockets.c has been fixed, but pdf.c has been broken on the way
  :-(

Ignore me.  I was trying to use the pdf module that came with php, instead of
replacing it with the one that came from pdflib.

Sorry for the confusion.

Rob

-- 
PHP Development 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]




[PHP-DEV] Bug #10561: sockets.c uses `SUN_LEN' unconditionally - undefined on Solaris

2001-04-30 Thread Rob . McMahon

From: [EMAIL PROTECTED]
Operating system: Solaris 7
PHP version:  4.0.4pl1
PHP Bug Type: Compile Failure
Bug description:  sockets.c uses `SUN_LEN' unconditionally - undefined on Solaris

Configured with

nv 'CC=cc -mt' CFLAGS=-O CPPFLAGS='-D_XPG4_2
-D__EXTENSIONS__' ./configure
--with-apxs=/usr/local/apache_1.3.19/bin/apxs
--with-mysql=/usr/local/mysql
--with-ldap=/usr/local/openldap --with-xml --enable-yp
--enable-safe-mode --with-gd --with-jpeg-dir=/usr/local
--with-pdflib --with-zlib --with-tiff-dir=/usr/local
--with-openssl=/usr/local/openssl --enable-bcmath --with-bz2
--enable-calendar --enable-dbase --with-gdbm=/usr/local/gnu
--with-ndbm --enable-ctype --with-db3=/usr/local/BerkeleyDB
--with-dom --enable-exif --with-fdftk --enable-filepro
--enable-ftp --enable-gd-imgstrttf --with-gd --with-gmp
--with-hyperwave --with-imap-ssl
--with-imap=/usr/local/src/pine4.30/imap
--with-java=/usr/java --with-mcal
--with-unixODBC=/usr/local/unixODBC
--with-readline=/usr/local/gnu --with-mm --enable-trans-sid
--enable-shmop --enable-sockets --with-regex=php
--enable-sysvsem --enable-sysvshm --enable-wddx --with-zlib
--enable-versioning --enable-track-vars --without-fdftk
--without-mcal --with-xpm-dir=/usr/local/X11

Can be fixed with (I suspect this is going to get mangled in
the post).

diff -c -r1.1 sockets.c
*** sockets.c   2001/04/19 10:04:11 1.1
--- sockets.c   2001/04/19 16:17:37
***
*** 66,71 
--- 66,77 
  #endif
  #endif

+ /* ... or this */
+ #ifndef   SUN_LEN
+ #define   SUN_LEN(sunp)   ((size_t)((struct
sockaddr_un *)0)-sun_path \
++ strlen((sunp)-sun_path))
+ #endif
+
  /* Use the read() wrapper, stopping at '\n', '\r', or '\0'. */
  #define PHP_NORMAL_READ 0x0001
  /* Use the read() wrapper, but read until the entire
buffer is filled. */



-- 
Edit Bug report at: http://bugs.php.net/?id=10561edit=1



-- 
PHP Development 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]