Subject: | bug in GD: library path options are discarded |
Date: | Mon, 15 Aug 2011 17:15:29 +0200 |
To: | <bug-GD [...] rt.cpan.org> |
From: | Simon Gábor <Gabor.Simon2 [...] it-services.hu> |
Dear Sirs,
Although the documentation states that paths to libjpeg, libpng et al. can be specified via the config switches 'lib_something_path=...', this was true only until GD 2.35, because from 2.39 on there is a
GetOptions("ignore_missing_gd" => \$force);
line in the Makefile.PL that discards all commandline arguments unknown to it - that is, everything except the ominous '-ignore_missing_gd'.
Currently we are quite fine with 2.35, but if our customers required a newer version, we will have to upgrade to it, and it would be good if it would be possible with a clean build, without manually patching out the offending lines from the Makefile.
The situation can be reproduced quite easily:
- create an environment with no lib{jpeg,png,gd} in the default search paths
- /somewhere/perl Makefile.PL -lib_png_path=/not/necessarily/exists/png
If it recognises the option, you will get something like this:
$ perl Makefile.PL -lib_png_path=/asdf/png
PNG library used from: /asdf/png
Where is libgd installed? [/usr/lib]
If the options are already discarded, you will see:
$ perl Makefile.PL -lib_png_path=/asdf/png
Unknown option: lib_png_path
**UNRECOVERABLE ERROR**
Could not find gdlib-config in the search path. Please install libgd 2.0.28 or higher.
If you want to try to compile anyway, please rerun this script with the option --ignore_missing_gd.
As the fix is trivial, I hope you can include it in the upcoming releases.
Sincerely,
Gabor Simon
IT Architect
Application Services, ICTO/CSS/S&F/AO Engineering
Phone: +36 1 456 5461
Mobile: +36 30 542 8452
Fax: +36 1 456 5499
E-mail: Gabor.Simon2@t-systems.com
Internet: www.it-services.hu <http://www.it-services.hu/> , www.t-systems.com <http://www.t-systems.com/>
IT Services Hungary Kft. (member of the T-Systems group)
Address: 1117 Budapest, Neumann János u 1/c.
Postal address: H-1453 Budapest, 92. Pf.:28.
Registered seat: 1117 Budapest, Infopark, Neumann János u. 1/C.
Registered by the Court of Budapest, as Court of Registration
Registration no.: 01-09-877517
This message may contain privileged and/or confidential information and is intended exclusively for the addressee(s). If you receive this message in error, please notify the sender via phone or email, and delete the message and any attachments from your system. If you are not the addressee indicated in this message, you may not copy or deliver this message to anyone. We have taken precautions to minimize the risk of transmitting software viruses, but we advise you to carry out your own virus checks on any attachment to this message. We cannot accept liability for any loss or damage caused by software viruses. Opinions, conclusions and other information in this message that do not relate to official business shall be understood as neither given nor endorsed by us. Views expressed herein do not necessarily reflect those of the sender’s employer or principal. Please be informed that we neither make nor accept legally binding statements via e-mail unless otherwise previously agreed.