Can't get PHP with GD / libjpeg to work

I'm totally frustrated, I tried compiling PHP 5.2.6 with GD and JPEG/PNG support on my Dual 2 GHz PowerPC G5 since yesterday (installed the latest XCode version) but without success so far. I also did all necessary steps like recompiling apache2, libjpeg and libpng. I found lots of tutorials but none of them worked out. PNG support works fine, here's the info from phpinfo()
GD Support enabled
GD Version bundled (2.0.34 compatible)
GIF Read Support enabled
GIF Create Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled
But whenever I use --with-jpeg-dir=/usr/local/lib /that's the dir I compiled libjpeg to) when configuring php I get the following errors when executing the "make" command:
lt -liconv -liodbc -lmysqlclient -lldap -llber -liconv -liconv -lfreetype -lX11 -lXpm -lpng -lz -ljpeg -lssl -lcrypto -lcurl -lz -lssl -lcrypto -lm -lxml2 -lz -licucore -lm -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lcurl -lssl -lcrypto -lz -lxml2 -lz -licucore -lm -lmysqlclient -lz -lm -liodbc -lxml2 -lz -licucore -lm -lxml2 -lz -licucore -lm -lxml2 -lz -licucore -lm -lxml2 -lz -licucore -lm -lxml2 -lz -licucore -lm -lxslt -lxml2 -lz -licucore -lm -o libs/libphp5.bundle && cp libs/libphp5.bundle libs/libphp5.so
Undefined symbols:
"_jpeg_destroy_compress", referenced from:
_php_gd_gdImageJpegCtx in gd_jpeg.o
"_jpeg_resync_to_restart", referenced from:
_jpeg_resync_to_restart$non_lazy_ptr in gd_jpeg.o
"_jpeg_start_compress", referenced from:
_php_gd_gdImageJpegCtx in gd_jpeg.o
"_jpeg_CreateDecompress", referenced from:
_php_gd_gdImageCreateFromJpegCtx in gd_jpeg.o
"_jpeg_set_defaults", referenced from:
_php_gd_gdImageJpegCtx in gd_jpeg.o
"_jpeg_destroy", referenced from:
_fatal_jpeg_error in gd_jpeg.o
"_jpeg_destroy_decompress", referenced from:
_php_gd_gdImageCreateFromJpegCtx in gd_jpeg.o
_php_gd_gdImageCreateFromJpegCtx in gd_jpeg.o
"_jpeg_write_marker", referenced from:
_php_gd_gdImageJpegCtx in gd_jpeg.o
"_jpeg_finish_decompress", referenced from:
_php_gd_gdImageCreateFromJpegCtx in gd_jpeg.o
"_jpeg_std_error", referenced from:
_php_gd_gdImageJpegCtx in gd_jpeg.o
_php_gd_gdImageCreateFromJpegCtx in gd_jpeg.o
"_jpeg_read_header", referenced from:
_php_gd_gdImageCreateFromJpegCtx in gd_jpeg.o
"_jpeg_set_quality", referenced from:
_php_gd_gdImageJpegCtx in gd_jpeg.o
"_jpeg_finish_compress", referenced from:
_php_gd_gdImageJpegCtx in gd_jpeg.o
"_jpeg_write_scanlines", referenced from:
_php_gd_gdImageJpegCtx in gd_jpeg.o
_php_gd_gdImageJpegCtx in gd_jpeg.o
"_jpeg_start_decompress", referenced from:
_php_gd_gdImageCreateFromJpegCtx in gd_jpeg.o
"_jpeg_CreateCompress", referenced from:
_php_gd_gdImageJpegCtx in gd_jpeg.o
"_jpeg_read_scanlines", referenced from:
_php_gd_gdImageCreateFromJpegCtx in gd_jpeg.o
_php_gd_gdImageCreateFromJpegCtx in gd_jpeg.o
"_jpeg_save_markers", referenced from:
_php_gd_gdImageCreateFromJpegCtx in gd_jpeg.o
"_jpeg_simple_progression", referenced from:
_php_gd_gdImageJpegCtx in gd_jpeg.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [libs/libphp5.bundle] Error 1
Can anyone help me? Maybe I need special CFLAGS for my machine? Thanks in advance.

Rob-C wrote:
I got the jpeg source files from http://www.ijg.org/files/and compiled it according to some tutorials I found on the net. I also installed it using the port command (used --with-jpeg-dir=/opt/local for php then), but whatever I did and whatever configuration I used I always get the same error.
/opt huh? Why am I not surprised? Your first step should be to purge all traces of whatever "port" software you were using and delete any software you installed with it. If you don't want to do that, you'll have to contact them (fink or MacPorts/DarwinPorts or whatever they are now) for support. The port packages do work and seem to work well for the software they provide. The evidence I have seen indicates that if they don't provide the port, it won't work. Be prepared for very strange and unsolvable problems when compiling non-ports software using ports tools. Plus, you can't really ask for help from the non-ports community, because all that non-ports software works fine for us.
PS: Sorry if I sound a bit harsh. I've just seen too many of these postings. At least I have located the culprit - Apple!. That information is over five years old. I'm going to file a bug report against it.
But I will try to help with what I can for now...
Tried it with
env MACOSXDEPLOYMENTTARGET=10.5 CFLAGS="-O -g -arch ppc -arch i386" LDFLAGS="-arch ppc -arch i386"
./configure -prefix=/usr -sysconfdir=/etc -localstatedir=/var -mandir=/usr/share/man -disable-dependency-tracking
and without the env command as well
Unless you are distributing the software, you shouldn't need to include the cross compilation options. However, when linking several of these projects together (as in PHP) you do need to match the compilation options for all the code that is linked together. Use whatever settings you used when you built PHP.
then
cp /usr/share/libtool/config.sub .
cp /usr/share/libtool/config.guess .
./configure --enable-shared --enable-static
make
sudo make install
sudo ranlib /usr/local/lib/libjpeg.a
It seems that libjpeg hasn't been updated in 10 years, so these instructions look OK, more or less. Try "--disable-static" instead of "--enable-static". If that fails, leave them both off and try to link against the default static libraries.

Similar Messages

  • Can't get PHP's mail() function to work on local Apache install

    I'm using Leopard and installed all available updates. I've done a clean install of Leopard, so no Tiger upgrade.
    I've installed the latest stable versions of Apache, PHP and MySql through MacPorts/command line in Leopard. So far so good, everything works except for PHP's mail() function.
    Does anyone know how to get PHP's mail() function to work on my localhost? Searching the web through Google taught me it's impossible to get it to work under Leopard but I find that hard to believe. Can anyone help me out?

    Any help appreciated.

  • How can I get help with an app not working properly?

    I just bought a 'learn Gujarati' app and the sound is so low I can hardly hear it even with the sound control on the iPad turned up as high as it would go. I have only had the iPad a few months - present from children, and I LOVE it and want to make most of it, thanks, Chrissy

    FOR ASSISTANCE WITH ORDERS - iTUNES STORE CUSTOMER SERVICE
    For assistance with billing questions or other order inquiries, please refer to our online support page by clicking here: http://www.apple.com/support/itunes/store/. If you cannot find the answers you are seeking in our robust knowledge base, you can contact us by visiting the following URL http://www.apple.com/support/itunes/store/, clicking on the appropriate Customer Service topic, then using the contact button or email form at the bottom of the page. Responses to emails will be provided as soon as possible.
    Phone: 800-275-2273 How to reach a live person: Press 0 four times
    Hours of Operation: Mon-Fri: 9am-5pm ET
    Email: [email protected]
    How to report an issue with Your iTunes Store purchase
    http://support.apple.com/kb/HT1933
    How to Get a Refund from the App Store
    http://gizmodo.com/5886683/how-to-get-a-refund-from-the-app-store
    Canceling a Digital Subscription
    http://gadgetwise.blogs.nytimes.com/2011/10/14/qa-canceling-a-digital-subscripti on/
     Cheers, Tom

  • Can we use PHP with Portal.

    Hello !
    Can we use PHP with oracle portal.
    Can we make portlets in PHP and use it in oracle portal.
    If yes then how .
    Any kind of help will be appreciated .
    Regards
    Seemab

    thank U marianfromspringwood..
    one more doubt please tell it clearly,
    i had bought ipad 2 wifi 3g 32gb  AT&T model from sanfrancisco, do i need to activate my ipad2 in america it self
    by AT&T ,or can i activate it in india with airtel,vodafone,bsnl,idea,etc gsm service provider. and weather my ipad2 wil work correctly in india, and if i have any problem in future then can i get assistance from india only or should i send it to america..............??

  • Hi, I've recently bought an iPad2 and can't get connected with AppStore or iTunes, when I tap on these icons a grey page pops up saying is loading but never opens the page, no failure message is displayed, it just keep saying is loading. Apparently it is

    Hi, I’ve recently bought an iPad2 and can’t get connected with AppStore or iTunes, when I tap on these icons a grey page pops up saying is loading but never opens the page, no failure message is displayed, it just keep saying is loading.
    Apparently it is not an issue with wifi since Safari, You Tube and Maps work well, I’ve tried some of the tips, e.g. log off/on my Id, change password but no one worked.
    Your help will be highly appreciated.
    Thank you.
    Luis.

    Try a reset. Hold the Sleep and Home button down for about 10 seconds until you see the Apple logo. Ignore the red slider.

  • How can I get my hp Laserjet 1012 to work with Windows 7?

    How can I get my hp Laserjet 1012 to work with Windows 7?

    Here is a list of products that are not supported in the win7 OS. This product is listed there.
    Products not supported in win7
    I am an HP employee.
    Say Thanks by clicking the Kudos Star in the post that helped you.
    Please mark the post that solves your problem as Accepted Solution

  • HT2845 can't get my apple magic mouse to work on my boot camp on my early 2011 macbook pro with latest Marveric OS

    I can't get my apple magic mouse to work on my boot camp,running Windows 7 Ultimate on my early 2011 macbook pro with latest Marveric OS........ It works perfectly on the Apple ,

    Not sure if this will help anyone, but I had trouble installing on 10.8.
    I then found this particular support page:
    http://h10025.www1.hp.com/ewfrf/wc/softwareCategory?os=4142&lc=en&cc=us&dlc=en&s w_lang=&product=4231205#N228
    Be patient with the download, it takes some time ... When it has downloaded, follow the install instructions. It works well.
    I use the printer through usb but my wife uses wireless from her PC laptop.
    Andre Francis

  • Can I get help with podcasts?  When I try to open the podcasts, itunes crashes, says "itunes has detected a problem and must close", or the spanish equivalent since my xp is in spanish.  everything else works fine, it even downloads podcasts and syncs.

    Can I get help with podcasts?  When I try to open the podcasts tab, itunes crashes, says "itunes has detected a problem and must close", or the spanish equivalent since my xp is in spanish.  everything else works fine, it even downloads podcasts and syncs.

    The only other thing I can suggest is to use the Repair option for iTunes.
    Download the iTunes programme (do not uninstall your current iTunes) and then "install" the new copy. At some stage you should see an option to "install" or "Repair". Take the Repair option.
    Once you've done that, if you still have a problem, I don't know what else to suggest, except to search through the discussions to see if anyone else has had the problem and managed to fix it.

  • I can't get my HP laserjet p1102w to work with airprint

    Hi!
    So it seem's that I can't get my HP laserjet p1102w to work with airprint. I got it to send out it's own Wi-Fi signal, and i get in touch with that signal on my iPad 3. But when I wan't to print something out from Pages, then it says that it can't find any airprinters.
    I tried to update the firmware several times, but it still doesn't work. Any suggestions to what I can do?

    Hey T-racer,
    As a work-around you can also use the HP eprint method which is available with your printer. The application (HP Home & Biz) is available for free in the apple catalogue.
    You can find more info on it here:
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c03128518&cc=us&dlc=en&lc=en &product=4110396&tmp_track_link=ot_search
    It shares many of the same capabilities of airprint but is a different program/feature.
    If you have any questions, just ask!
    I work with HP.

  • I have a new Bose sounddock with a lightning connector, but my iPod has the old style connector. Can I get an adapter to make them work together?

    I have a new Bose sound dock with a lightning connector but my iPod has the old style connector
    Can I get an adapter to make them work together?

    Alternatively...
    is this what you're after?
    If so, have a look here: http://www.amazon.co.uk/Lightning-female-30-pin-Dock-Cable-Adapter/dp/B00DZN3GZK /ref=pd_sim_sbs_ce_1
    or this one...
    http://www.amazon.co.uk/SANDBERG-440-45-Adaptor-Lightning-Connector/dp/B009KZZ3L C/ref=sr_1_16?ie=UTF8&qid=1382801610&sr=8-16&keywords=30+pin+to+lightning+adapto r
    Or google "lightning female to 30-pin dock male cable adaptor". The cruicial part is female lightning to male 30-pin ends.
    The Apple cable is a female 30-pin to male lightning end.

  • Hi, I can't get my old wacom intuos2 to work with mountain lion, any suggestions? Apart from buy a new tablet.

    Hi, I can't get my old wacom intuos2 to work with mountain lion, any suggestions? Apart from buy a new tablet.

    I was out of town for a few days. I had no issue installing the driver on Mountain Lion (10.8.2). What specifically happens when you try to install?
    If you get this message:
    then you need to right-click on the installer package and select 'Open' when you get this message:
    If this isn't your issue you need to be more specific about what is happening.

  • Since I installed Lion, I can't get online with ichat - shows ichat as offline or disconnected when I open the app.

    Since I installed Lion, I can't get online with ichat - shows ichat as offline or disconnected when I open the app.

    Hi,
    Also try turning Off Face Time
    Open Face Time
    Go to the Preferences
    Set it to Off.
    Also make sure your router has the Time and Date/Time Zone set as this upsets Face Time which in turn upsets IChat
    9:28 PM      Tuesday; August 16, 2011
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb( 10.6.8)
     Mac OS X (10.6.8),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • How can i get my unlocked iphone 4 to work with a new pay as u go sim card

    how can i get my unlocked iphone 4 to work with a new pay as u go sim card

    Insert the sim card and activate the iPhone.

  • I have problem with my iphone 4s my battery is not keeping charge. how can I get help with this one. it is less than a year that I purchased this cell.

    I have problem with my iphone 4s my battery is not keeping charge. how can I get help with this one? it is less than a year that I purchased this cell.

    I would like to know the answer to that one.  I realized this was happening just after upgradeing my iOS to 6.  Then when I looked up my purchase date, I was about 5 days past my one year warranty.  So I'm dead in the water.  Apple will replace the battery, but it will be about $80+.  I took it to the Apple store, and they checked a bunch of stuff, but said that it seemed ok.  I'm debating getting a battery for a more reasonable price off of ebay.  But if it's the iOS thats draining the battery, then I'm not going to be able to help it.  I wish I knew a better way to tell if its the battery, the phone, or the iOS.

  • How can I get help with pending songs that have taken over 12 hours to fully download?

    How can I get help with pending songs that have taken over 12 hours to fully download?

    You can only suspend service for 3 months at a time (with or without payment) and only twice a year.

Maybe you are looking for

  • Idoc Not received?

    Hi During data loading , I got one Error that Idoc Not received. What will be the cause of problem and How to resolve it? Regards & Thanks Durai

  • To delete sales order using BAPI_SALESORDER_CHANGE

    HI ,        I am using BAPI_SALESORDER_CHANGE to delete a bulk of order lines for an order.But the issue is...the entries are deleted in VBEP and VBUP tables for all the order lines where in VBAP only few order lines are deleted.This is happening rep

  • Some hyperlinks do not function with FF 29.0.1 vista

    OS VISTA Firefox ver. 29.0.1 Some links on some websites (eg. www.change.org) do not respond when clicked. (Others do.) Some objects on these pages do not function (eg. "thermometer" progress bar and "Sign" button) Pages work under Internet Explorer.

  • Can apple replace my ipod glass for free?

    i had my ipod 4th gen ios 5.1.1 for a few months about 5 months and i found the touch screen cracked. i still have around 7 months warranty left... don't want to spend much money for the replacement... just wondering if the glass/ipod replacement are

  • Theme in WebDynpro java callable object

    Hi Experts, I have created a portal theme and deployed on the server. Now i want to use this portal theme in my WebDynpro java callable object. I know how to use themes in WebDynpro application, set the theme in Exit plug of component interface view.