Xfce compilation on macosx

Brian J. Tarricone bjt23 at cornell.edu
Mon Dec 4 03:06:25 CET 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Yves-Alexis Perez wrote:
> Hi list,
> 
> I'm trying to build Xfce on Mac OSx tiger (yeah, I know... :) ). I've
> successfully built gtk, and it works. I've built xarchiver to see if it
> was ok, and here it is:
> 
> http://heracles.corsac.net/~corsac/xfce/xarchiver-osx.png
> 
> But now I'd like to build Xfce, and when building libxfce4util (rc2 or
> svn) I get this error:
> 
> gcc -dynamiclib
> -o .libs/libxfce4util.4.0.0.dylib  .libs/libxfce4util_la-libxfce4util-aliasdef.o .libs/libxfce4util_la-libxfce4util-enum-types.o .libs/libxfce4util_la-libxfce4util-config.o .libs/libxfce4util_la-libxfce4util-private.o .libs/libxfce4util_la-xfce-desktopentry.o .libs/libxfce4util_la-xfce-fileutils.o .libs/libxfce4util_la-xfce-i18n.o .libs/libxfce4util_la-xfce-kiosk.o .libs/libxfce4util_la-xfce-license.o .libs/libxfce4util_la-xfce-miscutils.o .libs/libxfce4util_la-xfce-rc.o .libs/libxfce4util_la-xfce-rc-config.o .libs/libxfce4util_la-xfce-rc-simple.o .libs/libxfce4util_la-xfce-resource.o .libs/libxfce4util_la-xfce-utf8.o  -L/opt/gtk/lib /opt/gtk/lib/libgobject-2.0.dylib /usr/lib/libc.dylib /opt/gtk/lib/libglib-2.0.dylib /opt/gtk/lib/libintl.dylib /usr/lib/libiconv.dylib  -install_name  /opt/gtk//lib/libxfce4util.4.dylib -Wl,-compatibility_version -Wl,5 -Wl,-current_version -Wl,5.0
> ld: warning multiple definitions of symbol _locale_charset
> /opt/gtk/lib/libintl.dylib(localcharset.o) definition of _locale_charset
> /usr/lib/libiconv.dylib(localcharset.o) definition of _locale_charset
> ld: Undefined symbols:
> _xfce_mkdirhier
> _xfce_rc_close
> _xfce_resource_lookup_all
> _xfce_resource_save_location
> _xfce_locale_match
> _xfce_rc_is_readonly
> /usr/bin/libtool: internal link edit command failed
> make[3]: *** [libxfce4util.la] Error 1
> make[2]: *** [all] Error 2
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2
> 
> I guess this is not a problem in libxfce4util but in my (weird, I know)
> installation (ld etc.), but if someone knows how to fix this, it would
> be really nice.

What linker are you using?  I'm just using Apple's stock gcc and the
system's ld on MacOS X 10.4.  Assuming I pass --disable-visibility to
configure, libxfce4util compiles fine for me.

It appears to work as well if I use gcc 4.1 and odld from DarwinPorts
(guess they're called 'MacPorts' now).  I don't see GNU ld in
DarwinPorts anywhere... binutils doesn't install it.

Also, I don't think the version of libiconv included with the OS will
work properly, but I'm not sure where I read that (or even if I'm
remembering correctly).  I'm using libiconv and libintl from
DarwinPorts.  I imagine the fink equivalents would also work here (or
compiling them by hand, but who wants to do that? ^_~).

Anyway, as I mentioned earlier, libxfcegui4 won't compile without
libX11, so gtk compiled with the gdk-quartz backend isn't going to work
for Xfce.

	-brian

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFFc4Kh6XyW6VEeAnsRAu/kAJ0UJf8gwPFuUtYPZtxblJqq6m2wOgCgrA2p
dZcsV/xcihvvehfdn4L7su4=
=I2mO
-----END PGP SIGNATURE-----



More information about the Xfce mailing list