Opened 17 years ago

Closed 17 years ago

Last modified 16 years ago

#12348 closed defect (fixed)

libgda 1.2.4 fail to build

Reported by: mrjozef@… Owned by: nox@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: libgda Cc: mrjozef@…, landonf (Landon Fuller)
Port:

Description (last modified by jmpalacios (Juan Manuel Palacios))

/bin/sh ../libtool --tag=CC --mode=link gcc  -O2  -Wl,-undefined -Wl,dynamic_lookup -L/opt/local/lib -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_gnome_libgda/work/pgsql/lib -L/opt/local/lib -o libgdasql.la -rpath /opt/local/lib -version-info 3:0:0 -L/opt/local/lib -lgobject-2.0 -lgthread-2.0 -lgmodule-2.0 -lglib-2.0 -lintl -lxslt -lxml2 -lpthread -lz -liconv -lm   parser.lo lexer.lo sql_parser.lo mem.lo sql_display.lo sql_tree.lo
gcc -dynamiclib ${wl}-undefined ${wl}dynamic_lookup -o .libs/libgdasql.3.0.0.dylib  .libs/parser.o .libs/lexer.o .libs/sql_parser.o .libs/mem.o .libs/sql_display.o .libs/sql_tree.o  -L/opt/local/lib -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_gnome_libgda/work/pgsql/lib /opt/local/lib/libgobject-2.0.dylib /opt/local/lib/libgthread-2.0.dylib /opt/local/lib/libgmodule-2.0.dylib /opt/local/lib/libglib-2.0.dylib /opt/local/lib/libintl.dylib /opt/local/lib/libxslt.dylib /opt/local/lib/libz.dylib /opt/local/lib/libxml2.dylib -lpthread -lz /opt/local/lib/libiconv.dylib -lm  -Wl,-undefined -Wl,dynamic_lookup -install_name  /opt/local/lib/libgdasql.3.dylib -Wl,-compatibility_version -Wl,4 -Wl,-current_version -Wl,4.0
ld: warning -L: directory name (/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_gnome_libgda/work/pgsql/lib) does not exist
ld: flag: -undefined dynamic_lookup can't be used with MACOSX_DEPLOYMENT_TARGET environment variable set to: 10.1
/usr/bin/libtool: internal link edit command failed
make[1]: *** [libgdasql.la] Error 1
make: *** [all-recursive] Error 1

Warning: the following items did not execute (for libgda): org.macports.activate org.macports.build org.macports.destroot org.macports.install
Error: The following dependencies failed to build: gtk-sharp libgda libgtkhtml3 mono boehmgc icu libgdiplus
Error: Status 1 encountered during processing.

Change History (9)

comment:1 Changed 17 years ago by nox@…

Cc: landonf@… added
Priority: BlockerHigh
Version: 1.5.0

comment:2 Changed 17 years ago by bjcarter@…

adding the following to the portfile fixes the problem

platform darwin 8 { build.env-append MACOSX_DEPLOYMENT_TARGET=10.4 configure.env-append MACOSX_DEPLOYMENT_TARGET=10.4 }

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

Cc: mrjozef@… added

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

Owner: changed from macports-tickets@… to nox@…

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

MACOSX_DEPLOYMENT_TARGET environment variables were added in r33373. This should not have been necessary anymore, however, since MacPorts 1.6 automatically sets these variables. In particuler, r33373 seems incorrect because it will result in MACOSX_DEPLOYMENT_TARGET being set to 10.4 on 10.4, and 10.3 on all other versions of Mac OS X (including 10.5).

I recommend removing the setting of MACOSX_DEPLOYMENT_TARGET from the portfile. If that's not possible, please explain why not. (MacPorts base should already be doing this automatically.)

comment:6 Changed 17 years ago by jmpalacios (Juan Manuel Palacios)

Description: modified (diff)
Priority: HighNormal

comment:7 Changed 17 years ago by nox@…

Status: newassigned

comment:8 Changed 17 years ago by nox@…

Resolution: fixed
Status: assignedclosed

Ryan, you're right, you don't need to set MACOSX_DEPLOYMENT_TARGET at all. I've removed the setting and the darwin 8 platform in r33421. This problem should not occur again.

comment:9 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.