Opened 11 years ago

Closed 11 years ago

#23804 closed defect (fixed)

libproj4 build fails on Snow Leopard

Reported by: jwhowse4 Owned by: tenomoto (Takeshi Enomoto)
Priority: Normal Milestone:
Component: ports Version: 1.8.2
Keywords: Cc:
Port: libproj4

Description

Running Snow Leopard 10.6.2 with Xcode 3.2.1 the build of libproj4 fails with the following error.

/usr/bin/gcc-4.2 -I. -DPROJ_HAVE_GSL=1 -DPROJ_HAVE_THREADS=1 -O2 -arch x86_64   -c -o proj_maurer.o proj_maurer.c
ar rv libproj4.a proj_maurer.o
a - proj_maurer.o
/usr/bin/gcc-4.2 -I. -DPROJ_HAVE_GSL=1 -DPROJ_HAVE_THREADS=1 -O2 -arch x86_64   -c -o proj_mayr.o proj_mayr.c
proj_mayr.c:31:33: error: gsl/gsl_integration.h: No such file or directory
In file included from proj_mayr.c:38:
./lib_proj.h:128: error: expected specifier-qualifier-list before 'gsl_function'
proj_mayr.c: In function 's_forwardg':
proj_mayr.c:109: error: 'PROJ' has no member named 'func'
proj_mayr.c:110: error: 'PROJ' has no member named 'work'
proj_mayr.c: In function 'freeup':
proj_mayr.c:120: error: 'PROJ' has no member named 'mode'
proj_mayr.c:121: error: 'PROJ' has no member named 'work'
proj_mayr.c: In function 'proj_mayr':
proj_mayr.c:135: error: 'PROJ' has no member named 'func'
proj_mayr.c:136: error: 'PROJ' has no member named 'func'
proj_mayr.c:137: error: 'PROJ' has no member named 'work'
proj_mayr.c:138: error: 'PROJ' has no member named 'mode'
proj_mayr.c:143: error: 'PROJ' has no member named 'mode'
make: *** [proj_mayr.o] Error 1
rm proj_eck2.o proj_rpoly.o proj_ocea.o proj_lagrng.o proj_oea.o proj_mill.o proj_ktmerc.o proj_eqc.o proj_etmerc.o proj_guyou.o proj_vandg4.o proj_braun2.o proj_gn_sinu.o proj_lsat.o proj_cass.o proj_ob_tran.o proj_tpeqd.o proj_tmerc.o proj_lcc.o proj_maurer.o proj_baranyi.o proj_fouc_s.o proj_tcea.o proj_merc.o proj_boggs.o proj_eqdc.o proj_hatano.o proj_four2.o proj_hill.o proj_ftmerc.o proj_hammer.o proj_tob_sqr.o proj_august.o proj_vandg2.o proj_denoy.o proj_holzel.o proj_bonne.o proj_lcca.o proj_goode.o proj_kocc.o proj_nocol.o proj_mill_2.o proj_eisen.o proj_gilbert.o proj_larr.o proj_ardn_cls.o proj_collg.o proj_ortho.o proj_wag9.o proj_geos.o proj_eck1.o proj_lask.o proj_rouss.o proj_erdi_ksz.o proj_gins8.o proj_fahey.o proj_cea.o proj_mod_ster.o proj_fc-loerr.o proj_bacon.o proj_aitoff.o proj_four1.o proj_poly.o proj_airy.o proj_nzmg.o proj_wag7.o proj_dummy.o proj_eck4.o proj_cubic.o proj_stere.o proj_gbtmerc.o proj_omerc.o proj_gstmerc.o proj_aeqd.o proj_nsper.o proj_labrd.o proj_mill_per.o proj_equi_moll.o proj_imw_p.o proj_sconics.o proj_crast.o proj_baker.o proj_baranyi4.o proj_sterea.o proj_tcc.o proj_bipc.o proj_eck5.o proj_cyl_stere.o proj_eck3.o proj_cc.o proj_vandg.o proj_loxim.o proj_aea.o proj_armadillo.o proj_somerc.o proj_laea.o proj_gnom.o
Error: Target org.macports.build returned: shell command " cd "/opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_gis_libproj4/work/libproj4" && /usr/bin/make libproj4 lproj -e " returned error 2
DEBUG: Backtrace: shell command " cd "/opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_gis_libproj4/work/libproj4" && /usr/bin/make libproj4 lproj -e " returned error 2
    while executing
"command_exec build"
    (procedure "portbuild::build_main" line 9)
    invoked from within
"$procedure $targetname"

Attachments (2)

Portfile (2.2 KB) - added by jwhowse4 11 years ago.
port_diff.txt (1.3 KB) - added by jwhowse4 11 years ago.

Download all attachments as: .zip

Change History (12)

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

Cc: takeshi removed
Owner: changed from macports-tickets@… to takeshi@…
Port: libproj4 added

Trac requires full email addresses.

comment:2 Changed 11 years ago by tenomoto (Takeshi Enomoto)

Resolution: fixed
Status: newclosed

Fixed in r64083.

comment:3 Changed 11 years ago by jwhowse4

The revised port fails for me with exactly the same error as before.

comment:4 Changed 11 years ago by jwhowse4

Attached is a portfile that worked for me.

Changed 11 years ago by jwhowse4

Attachment: Portfile added

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

Resolution: fixed
Status: closedreopened

comment:6 Changed 11 years ago by jwhowse4

I also had the exact same error under Leopard 10.5.8, and the previously attached portfile fixed it.

comment:7 Changed 11 years ago by jmroot (Joshua Root)

It's impossible to see what you changed when you attach the full portfile; please submit changes as unified diffs.

comment:8 Changed 11 years ago by jwhowse4

It seems to me that impossible is a poor word choice in this context. Nevertheless attached is a diff file.

Changed 11 years ago by jwhowse4

Attachment: port_diff.txt added

comment:9 Changed 11 years ago by jwhowse4

Addition and subtraction are reversed (- should be +) in my attached diff file.

comment:10 Changed 11 years ago by tenomoto (Takeshi Enomoto)

Resolution: fixed
Status: reopenedclosed

Fixed in r64157. Thanks.

Note: See TracTickets for help on using tickets.