Bug 192383 - graphics/gdal on 10.0-RELEASE-p7
Summary: graphics/gdal on 10.0-RELEASE-p7
Status: Closed Feedback Timeout
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Po-Chuan Hsieh
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-04 15:25 UTC by Rod Taylor
Modified: 2014-08-31 07:42 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rod Taylor 2014-08-04 15:25:45 UTC
The default options for the gdal port do not compile for me.

PROCESS:
cd graphics/gdal
make rmconfig   # Remove non-defaults if any exist
portmaster graphics/gdal

RESULT:
/usr/ports/graphics/gdal/work/gdal-1.11.0/libgdal.so: undefined reference to `libiconv'
/usr/ports/graphics/gdal/work/gdal-1.11.0/libgdal.so: undefined reference to `libiconv_close'
/usr/ports/graphics/gdal/work/gdal-1.11.0/libgdal.so: undefined reference to `libiconv_open'
c++: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[3]: *** [gdalinfo] Error 1
gmake[3]: Leaving directory `/usr/ports/graphics/gdal/work/gdal-1.11.0/apps'
gmake[2]: *** [apps-target] Error 2
gmake[2]: Leaving directory `/usr/ports/graphics/gdal/work/gdal-1.11.0'
*** Error code 1

FIX:
cd graphics/gdal
make config   # Enable ICONV option
portmaster graphics/gdal  # Finishes successfully
Comment 1 Rod Taylor 2014-08-04 15:29:14 UTC
Missed the version. It's gdal-1.11.0_7.
Comment 2 John Marino freebsd_committer freebsd_triage 2014-08-04 17:07:18 UTC
you probably have packages from before the libiconv changes.  I suspect if you rebuilt everything (say in poudriere) and replaced your current pages, gdal would build fine.

Let's see what the maintainer has to say...
Comment 3 Po-Chuan Hsieh freebsd_committer freebsd_triage 2014-08-04 17:51:08 UTC
I agree with Marino.

To Rod Taylor:

It seems to be raised by libiconv change/inconsistency among gdal dependencies and Mk/Uses/iconv.mk.
Would you please try the following steps:
1. Update ports tree
2. Rebuild all graphics/gdal dependencies (including converters/iconv)
3. Rebuild graphics/gdal

I think this should solve your problem.
Thanks.
Comment 4 Po-Chuan Hsieh freebsd_committer freebsd_triage 2014-08-31 07:42:06 UTC
Submitter feedback timeout. Feel free to reopen PR if the problem persists.