FS#23654 - [gdal] 1.8.0-3 WMS layers not working - no curl support
Attached to Project:
Community Packages
Opened by Dražen Odobašić (dodobas) - Friday, 08 April 2011, 13:45 GMT
Last edited by Alexander F. Rødseth (xyproto) - Monday, 15 October 2012, 00:42 GMT
Opened by Dražen Odobašić (dodobas) - Friday, 08 April 2011, 13:45 GMT
Last edited by Alexander F. Rødseth (xyproto) - Monday, 15 October 2012, 00:42 GMT
|
Details
Description:
Gdal has no support for accessing WMS/TMS layers. This functionality depends on curl which is installed. During execution of makepkg, configure reports that there is on curl support, I've attached config.log. However, if I run configure with the same parameters manually, curl is supported. Additional info: * gdal 1.8.0-3 * curl 7.21.4-2 Steps to reproduce: Try running any examples that can be found on http://www.gdal.org/frmt_wms.html |
This task depends upon
Closed by Alexander F. Rødseth (xyproto)
Monday, 15 October 2012, 00:42 GMT
Reason for closing: No response
Additional comments about closing: Please reopen if this is still an issue.
Monday, 15 October 2012, 00:42 GMT
Reason for closing: No response
Additional comments about closing: Please reopen if this is still an issue.
no curl no support for WMS/TMS :)
it is possible that complier flags cause problems
it doesn't fail when running configure manually without extra compiler options.
makepkg FAIL -> gcc -o conftest -march=x86-64 -mtune=generic -O2 -pipe -fno-strict-aliasing -fPIC -Wl,--hash-style=gnu -Wl,--as-needed conftest.c -lcurl -lodbc -lodbcinst -lexpat -ljasper -lhdf5 -lgif -ljpeg -lpng -lnetcdf -lcfitsio -L/usr/lib -lpq -lz -lpthread -lm -lrt -ldl
normal configure WORKS -> gcc -o conftest -g -O2 conftest.c -lcurl -lodbc -lodbcinst -lexpat -lxerces-c -lpthread -ljasper -lhdf5 -lgif -ljpeg -lpng -lnetcdf -lcfitsio -L/usr/lib -lpq -lz -lpthread -lm -lrt -ldl
curl support was failing because of default makepkg LDFLAGS="-Wl,--hash-style=gnu -Wl,--as-needed", specifically "-Wl,--as-needed" part.
By adding specific: export LDFLAGS="-Wl,--hash-style=gnu" to PKGBUILD script gdal compiles with functional curl support.
Should this be reported upstream or fixed in PKGBUILD?
http://projects.archlinux.org/svntogit/community.git/commit/trunk?h=packages/gdal&id=9c98b41c391c17822b002d5ae7898df7f62af336
but this is exactly the part that is offending, and should be disabled. Instead of adding extra LDFLAGS, overwriting what is here already or so, it's best to disable only this single flag with:
export LDFLAGS="$LDFLAGS -Wl,--no-as-needed"
which leaves all other flags in place (like --has-style=gnu) but only disables the --as-needed which causes curl to not link correctly.