[Xfce-bugs] [XFCE 0000229]: Cannot compile xffm on Mac OS X 10.3.4 : multiply definitions _UriType in common libxffm_calls.la

xfce-bugs at xfce.org xfce-bugs at xfce.org
Thu Jul 15 05:56:12 CEST 2004


The following bug has been RESOLVED.
=======================================================================
http://bugs.xfce.org/view_bug_page.php?f_id=0000229
=======================================================================
Reporter:                   cpweather
Handler:                    edscott
=======================================================================
Project:                    XFCE
Bug ID:                     0000229
Category:                   xffm
Reproducibility:            always
Severity:                   block
Priority:                   normal
Status:                     resolved
Resolution:                 open
=======================================================================
Date Submitted:             2004-06-17 18:43 GMT
Last Modified:              2004-07-15 03:56 GMT
=======================================================================
Summary:                    Cannot compile xffm on Mac OS X 10.3.4 : multiply definitions _UriType in common libxffm_calls.la
Description: 
I can compile all parts of xfce-4.0.5 successfully, except xffm which fails
when linking libxffm_calls.la.
OS: Mac OS X 10.3.4
Exact error (details of the command in additional information):
ld: multiple definitions of symbol _UriType
.libs/libxffm_calls_la-dnd.o definition of _UriType in section
(__DATA,__common)
.libs/libxffm_calls_la-pasteboard.o definition of _UriType in section
(__DATA,__common)

=======================================================================

-----------------------------------------------------------------------
 kelnos - 2004-06-17 20:00 GMT 
-----------------------------------------------------------------------
yeah, os x's linker doesn't like multiple same-named symbols in the common
section of libraries.  IIRC, if you compile _every_ .c file and link the
lib and executable (if any) with the '-fno-common' cmdline option, it'll
work.  however, i'm not sure how to tell libtool to do that in a portable
way.

-----------------------------------------------------------------------
 cpweather - 2004-06-17 20:10 GMT 
-----------------------------------------------------------------------
I was just successful : I just had to remove UriType and leave an empty
type definition...

I also had to remove any -Wl,R/usr/local/lib which is present in some
Makefiles.



More information about the Xfce-bugs mailing list