473,225 Members | 1,252 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,225 software developers and data experts.

PHP 4.3.3 compile error w/GD

Anyone else have this problem compiling PHP 4.3.3 from source under Linux
(I'm using Slackware 9.0)?

Under PHP 4.3.2 I had no compilation problems at all, but now all of the
sudden, compiling with GD support gives me the list of errors below.

My ./configure is:

../configure --with-pgsql=/usr/local/pgsql --with-ssl=/usr/local/ssl
--with-jpeg-dir=/usr/lib --with-png-dir=/usr/lib --with-zlib-dir=/usr/lib
--with-gd --with-mcrypt=/usr/local/lib --with-java=/usr/local/java
--with-apxs2=/usr/local/apache2/bin/apxs

(Yes, I am using Apache 2)

I have the JPEG, PNG and ZLIB libraries under /usr/lib, but I have not
installed my own GD... want to use the one that comes with PHP. Again,
this worked before with 4.3.2, why not this one?

Errors from running 'make':

ext/mysql/libmysql/my_tempnam.lo(.text+0x5b): In function `my_tempnam':
: the use of `tempnam' is dangerous, better use `mkstemp'
ext/gd/libgd/gd_jpeg.lo(.text+0x47): In function `fatal_jpeg_error':
: undefined reference to `jpeg_destroy'
ext/gd/libgd/gd_jpeg.lo(.text+0x192): In function `gdImageJpegCtx':
: undefined reference to `jpeg_std_error'
ext/gd/libgd/gd_jpeg.lo(.text+0x206): In function `gdImageJpegCtx':
: undefined reference to `jpeg_CreateCompress'
ext/gd/libgd/gd_jpeg.lo(.text+0x244): In function `gdImageJpegCtx':
: undefined reference to `jpeg_set_defaults'
ext/gd/libgd/gd_jpeg.lo(.text+0x261): In function `gdImageJpegCtx':
: undefined reference to `jpeg_set_quality'
ext/gd/libgd/gd_jpeg.lo(.text+0x27f): In function `gdImageJpegCtx':
: undefined reference to `jpeg_simple_progression'
ext/gd/libgd/gd_jpeg.lo(.text+0x2f9): In function `gdImageJpegCtx':
: undefined reference to `jpeg_start_compress'
ext/gd/libgd/gd_jpeg.lo(.text+0x37e): In function `gdImageJpegCtx':
: undefined reference to `jpeg_write_marker'
ext/gd/libgd/gd_jpeg.lo(.text+0x495): In function `gdImageJpegCtx':
: undefined reference to `jpeg_write_scanlines'
ext/gd/libgd/gd_jpeg.lo(.text+0x5d3): In function `gdImageJpegCtx':
: undefined reference to `jpeg_write_scanlines'
ext/gd/libgd/gd_jpeg.lo(.text+0x61b): In function `gdImageJpegCtx':
: undefined reference to `jpeg_finish_compress'
ext/gd/libgd/gd_jpeg.lo(.text+0x62d): In function `gdImageJpegCtx':
: undefined reference to `jpeg_destroy_compress'
ext/gd/libgd/gd_jpeg.lo(.text+0x703): In function `gdImageCreateFromJpegCtx':
: undefined reference to `jpeg_std_error'
ext/gd/libgd/gd_jpeg.lo(.text+0x799): In function `gdImageCreateFromJpegCtx':
: undefined reference to `jpeg_CreateDecompress'
ext/gd/libgd/gd_jpeg.lo(.text+0x7c2): In function `gdImageCreateFromJpegCtx':
: undefined reference to `jpeg_read_header'
ext/gd/libgd/gd_jpeg.lo(.text+0x88e): In function `gdImageCreateFromJpegCtx':
: undefined reference to `jpeg_start_decompress'
ext/gd/libgd/gd_jpeg.lo(.text+0x982): In function `gdImageCreateFromJpegCtx':
: undefined reference to `jpeg_read_scanlines'
ext/gd/libgd/gd_jpeg.lo(.text+0xa33): In function `gdImageCreateFromJpegCtx':
: undefined reference to `jpeg_finish_decompress'
ext/gd/libgd/gd_jpeg.lo(.text+0xa5c): In function `gdImageCreateFromJpegCtx':
: undefined reference to `jpeg_destroy_decompress'
ext/gd/libgd/gd_jpeg.lo(.text+0xa8e): In function `gdImageCreateFromJpegCtx':
: undefined reference to `jpeg_destroy_decompress'
ext/gd/libgd/gd_jpeg.lo(.text+0xd26): In function `jpeg_gdIOCtx_src':
: undefined reference to `jpeg_resync_to_restart'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
Any ideas?

TIA,

- skubik.
Jul 16 '05 #1
3 5274
skubik wrote:
Anyone else have this problem compiling PHP 4.3.3 from source under Linux
(I'm using Slackware 9.0)?

Under PHP 4.3.2 I had no compilation problems at all, but now all of the
sudden, compiling with GD support gives me the list of errors below.

My ./configure is:

./configure --with-pgsql=/usr/local/pgsql --with-ssl=/usr/local/ssl
--with-jpeg-dir=/usr/lib --with-png-dir=/usr/lib --with-zlib-dir=/usr/lib
--with-gd --with-mcrypt=/usr/local/lib --with-java=/usr/local/java
--with-apxs2=/usr/local/apache2/bin/apxs

--with-jpeg-dir=/usr --with-pgsql-dir=/usr/local --with-ssl=/usr/local

etc
--
Matt Mitchell - AskMeNoQuestions
Dynamic Website Development and Marketing
Jul 16 '05 #2
On Wed, 27 Aug 2003 20:02:26 GMT, skubik <vk***@yahoo.com> wrote:
Anyone else have this problem compiling PHP 4.3.3 from source under Linux
(I'm using Slackware 9.0)?


Just compiled & installed 4.3.3 OK on Slackware 9.0 with:

../configure --prefix=/usr --with-apxs2=/usr/apache2/bin/apxs
--with-config-file-path=/etc/apache2 --with-openssl --with-bz2
--enable-calendar --enable-ctype --enable-ftp --with-xml=shared
--enable-trans-sid --enable-sockets --with-regex=php --enable-shared
--enable-exif --with-oci8=/home/oracle/Ora92 --with-gd --with-zlib-dir=/usr
--with-jpeg-dir=/usr --with-png-dir=/usr --with-freetype-dir=/usr
--with-mysql=/usr

--
Andy Hassall (an**@andyh.co.uk) icq(5747695) (http://www.andyh.co.uk)
Space: disk usage analysis tool (http://www.andyhsoftware.co.uk/space)
Jul 16 '05 #3
>
Well, you probably want --with-pgsql=/usr/local instead...

try doing a "make clean" before running the configure, just to make sure
nothing's being cached


Sorry, I don't see how setting the pgsql setting to /usr/local instead of
/usr/local/pgsql will make a difference. I know the problem is with GD. I
did the following and was able to install PHP without error (although, the
Java extension doesn't show up in phpinfo():

../configure --with-pgsql=/usr/local/pgsql --with-openssl=/usr/local/ssl
--with-java=/usr/local/java --with-mcrypt=/usr/local/lib
--with-apxs2=/usr/local/apache2/bin/apxs

So I KNOW the problem is with GD, I just don't understand why it fails the
way it does.

Now, that's the other thing I'm curious about... the PHP extenions for
Postgres, OpenSSL, Java, etc. Are those compiled as their own dynamic
modules that PHP loaded only when it needs them, or are they compiled
statically? If they are dynamic, where are the .so objects installed to?
Seems odd that in my previous installation (4.3.2), NONE of my extensions
were set in php.ini, yet I had full functionality (which then tells me
that they're statically-linked, correct?)

- skubik.
Jul 16 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Danny Boelens | last post by:
Hi all, today I ran into a compile error after a compiler upgrade. I made a small example to demonstrate my compile error: template<typename T1, typename T2> class A {}; class B
5
by: Carmine Cairo | last post by:
Hi, I'm working on a project and today I've note a little problem during the compile fase. Here a little piece of code: // 1st version welldone = 0; size = p->getSize(); backbone = new...
5
by: Brice Prunier | last post by:
Here under 4 schemas i'm working with ( it may be long: sorry...) The context is the following : Resident.xsd imports Person.xsd and includes Common.xsd ( anonimous schema: no TargetNamespace )...
10
by: Chris LaJoie | last post by:
Our company has been developing a program in C# for some time now, and we haven't had any problems with it, but just last night something cropped up that has me, and everyone else, stumped. I...
6
by: Thomas Connolly | last post by:
I have 2 pages referencing the same codebehind file in my project. Originally the pages referenced separate code behind files. Once I changed the reference to the same file, everything worked...
0
by: Jim Heavey | last post by:
Internal Compiler Error: stage 'BEGIN' Hello, I had an application which was working just fine and I decided to modify all database access within the application to utilizie a new Namespace that I...
9
by: ThunderMusic | last post by:
Hi, I'd like to create a compile time error in my class... maybe there's a way already built in in the framework so I can achieve what I want... I have 2 constructors in my class. One of them...
4
by: tony | last post by:
Hello! My question is about calling this method CollectData below but I get a compile error that I shouldn't have because the type parameter is correct. The compile error is the following:...
5
by: wong_powah | last post by:
#include <vector> #include <iostream> using std::cout; using std::vector; enum {DATASIZE = 20}; typedef unsigned char data_t;
2
by: BruceWho | last post by:
I downloaded boost1.35.0 and built it with following command: bjam --toolset=msvc-7.1 --variant=release --threading=multi -- link=shared --with-system stage and it failed to compile, error...
1
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: mar23 | last post by:
Here's the situation. I have a form called frmDiceInventory with subform called subfrmDice. The subform's control source is linked to a query called qryDiceInventory. I've been trying to pick up the...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.