ID: 25463
User updated by: [email][/email]
Reported By: [email][/email]
Status: Open
Bug Type: ClibPDF related
Operating System: Linux 2.4
PHP Version: 4.3.3
New Comment:

Ok, got lucky. Reproduced it for you :)

/home/src/php-4.3.3/ext/cpdf/cpdf.c:41:16 gd.h: No such file or
/home/src/php-4.3.3/ext/cpdf/cpdf.c: In function
/home/src/php-4.3.3/ext/cpdf/cpdf.c:2481: `gdImagePtr' undeclared
(first use in this function)
/home/src/php-4.3.3/ext/cpdf/cpdf.c:2481: (Each undeclared identifier
is reported only once
/home/src/php-4.3.3/ext/cpdf/cpdf.c:2481: for each function it appears
/home/src/php-4.3.3/ext/cpdf/cpdf.c:2481: syntax error before "im"
/home/src/php-4.3.3/ext/cpdf/cpdf.c:2505: `im' undeclared (first use in
this function)
make: *** [ext/cpdf/cpdf.lo] Error 1

Previous Comments:

[2003-09-10 23:52:01] [email][/email]

Ok. --with-gd does not compile, the error is related to cannot find
gd.h from within cpdf.c

--with-gd=somepath does work, using external GD.

I dont have a test machine i can reproduce it on now...since its a
production server I was installing on, now that its on there.


[2003-09-09 23:58:39] [email][/email]

Works just fine for me. (as usual)

And is it now with --with-gd=somepath or --with-gd ????
Your 'reproduce code' shows that you used external GD?
So with which does the 'not compile' happen?
And I really, REALLY need to know WHAT doesn't work.
Do you get some error? Or what?

FYI: I do expect a little bit better bug reports from people who's
email address contains


[2003-09-09 22:52:29] [email][/email]

When installing with --with-clibpdf, if using the Bundled GD (4.3.2 and
4.3.3), the compile will fail. Compiling GD on its own, and using
--with-gd=/usr/local/gd2 and then compiling with ClibPDF works fine.

Reproduce code:
../configure --prefix=/usr/local/php
--with-apxs=/usr/local/apache/bin/apxs --with-mysql --enable-cli
--disable-cgi --with-zlib --with-bz2 --enable-calendar --enable-exif
--enable-ftp --with-gd=/usr/local/gd2
--with-freetype-dir=/usr/local/freetype2 --with-iconv --enable-sockets
--with-curl=/usr --with-mcrypt=/usr --with-cpdflib

Expected result:
Build fine.

Actual result:
Do not have exact error. Relates to no such file or directory gd.h,
expecting to find the version in dir --with-gd=x, doesnt know where to
find bundled version.


Edit this bug report at [url][/url]