Projects
New Ticket     Wiki     Browse Source     Timeline     Roadmap     Bug Reports     Search

Ticket #12348 (closed defect: fixed)

Opened 16 months ago

Last modified 10 months ago

libgda 1.2.4 fail to build

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

Description (last modified by jmpp@…) (diff)

/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

Changed 16 months ago by nox@…

  • cc landonf@… added
  • priority changed from Blocker to High
  • version 1.5.0 deleted

Changed 15 months 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 }

Changed 14 months ago by ryandesign@…

  • cc mrjozef@… added

Changed 10 months ago by ryandesign@…

  • owner changed from macports-tickets@… to nox@…

Changed 10 months ago by ryandesign@…

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.)

Changed 10 months ago by jmpp@…

  • priority changed from High to Normal
  • description modified (diff)

Changed 10 months ago by nox@…

  • status changed from new to assigned

Changed 10 months ago by nox@…

  • status changed from assigned to closed
  • resolution set to fixed

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.

Note: See TracTickets for help on using tickets.