Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#40334 closed defect (fixed)

gdal 1.10.1: Undefined symbols: _environ

Reported by: gnw3 Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.2.0
Keywords: Cc: seanasy@…, EJFielding (Eric Fielding), mojca (Mojca Miklavec), ryandesign (Ryan Carsten Schmidt), jorgos.castello@…, calvin@…, mdekauwe (Martin De Kauwe)
Port: gdal

Description

http://trac.osgeo.org/gdal/ticket/5197. discusses changes in the definition (or not) of TARGET_OS_IPHONE by Apple in TargetConditionals.h as used in port/cpl_spawn.cpp.

A workaround for Snow Leopard with Xcode 3.2 is to run the configure step, edit port/cpl_spawn.cpp, and then build.

Change History (11)

comment:1 Changed 11 years ago by mf2k (Frank Schima)

Keywords: upstream bug removed

comment:2 Changed 11 years ago by EJFielding (Eric Fielding)

Fails on 10.7.4 also. Seems to be the same reason:

:info:build Undefined symbols for architecture x86_64:
:info:build   "_environ", referenced from:
:info:build       _CPLSpawnAsync in cpl_spawn.o
:info:build ld: symbol(s) not found for architecture x86_64
Last edited 11 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:3 Changed 11 years ago by EJFielding (Eric Fielding)

Cc: Eric.J.Fielding@… added

Cc Me!

comment:4 Changed 11 years ago by mojca (Mojca Miklavec)

Cc: mojca@… added

Cc Me!

comment:5 Changed 11 years ago by calvin@…

Same problem for me.

comment:6 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… jorgos.castello@… added

Has duplicate #40431.

Upstream has applied a fix to their code. We should try adding this to the port.

comment:7 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: calvin@… added
Summary: gdal 1.10.1 build fails on Snow Leopard due to known upstream issuegdal 1.10.1: Undefined symbols: _environ

comment:8 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: mdekauwe@… added

Has duplicate #40452.

comment:9 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: newclosed

comment:10 in reply to:  9 Changed 11 years ago by mdekauwe (Martin De Kauwe)

Replying to ryandesign@…:

r110974

how do we apply this fix? Or is it awaiting some kind of confirmation? I tried to reinstall GDAL and it was still failing for me. Thanks

comment:11 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

As always, wait 30 minutes after the commit, then run "sudo port selfupdate".

Note: See TracTickets for help on using tickets.