Gdal error during ports upgrade

Ted Kord teddy.kord at
Wed Sep 11 14:01:49 PDT 2013


Uprading the ports fails at gdal with the error:

--->  Fetching distfiles for gdal
--->  Verifying checksums for gdal
--->  Extracting gdal
--->  Applying patches to gdal
--->  Configuring gdal
--->  Building gdal
Error: for port gdal returned: command execution failed

The last few lines of the log file are:

:info:build Undefined symbols:
:info:build   "_environ", referenced from:
:info:build       _CPLSpawnAsync in cpl_spawn.o
:info:build       _CPLSpawnAsync in cpl_spawn.o
:info:build ld: symbol(s) not found
:info:build collect2: ld returned 1 exit status
:info:build make[1]: *** [] Error 1
:info:build make[1]: Leaving directory
:info:build make: *** [check-lib] Error 2
:info:build make: Leaving directory
:info:build Command failed:  cd
&& /usr/bin/make -j2 -w
:info:build Exit code: 2
:error:build for port gdal returned: command execution
:debug:build Error code: CHILDSTATUS 48181 2
:debug:build Backtrace: command execution failed
    while executing
"system -nice 0 $fullcmdstring"
    ("eval" body line 1)
    invoked from within
"eval system $notty $nice \$fullcmdstring"
    invoked from within
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"
:info:build Warning: targets not executed for gdal: org.macports.install org.macports.destroot
:notice:build Please see the log file for port gdal for details:


Has there been a resolution to this?


Best regards,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the macports-users mailing list