I've been trying to build a 3rd party Xserver but have run into some
difficulty when trying to link two xfree86 libraries to it (libXfont
and libdix)

During the link I'm getting warnings about multiple definitions of
various symbols defined in libXfont and in libdix (output below).  The
curious thing is this only happens if I try to link the Xserver w/ a
static libXfont.

The machine I am working with is an sh3 for which I don't currently
have support for shared libs.  However, the same problem can be
duplicated when linking the Xsun Xserver by linking it against a
static libXfont instead of shared.

1) What exactly is going on here and why doesn't it blow up like this
   when linking a shared version of libXfont?
2) How might I deal with this problem, so I can actually get my 
   Xserver up and running?

Thanks!

/x/obj/sh3el/usr/src/destdir.sh3el/usr/X11R6/lib/libXfont.a(miscutil.o)(.data+0x0): 
multiple definition of `serverGeneration'
/x/obj/sh3el//usr/src/x11/Xserver/dix/libdix.a(globals.o)(.data+0x50): first defined 
here
/x/obj/sh3el/usr/src/destdir.sh3el/usr/X11R6/lib/libXfont.a(miscutil.o)(.text+0x78): 
In function `CopyISOLatin1Lowered':
: multiple definition of `CopyISOLatin1Lowered'
/x/obj/sh3el//usr/src/x11/Xserver/dix/libdix.a(dixutils.o)(.text+0x78): first defined 
here
/var/tools/shle--netbsdelf/bin/ld: Warning: size of symbol `CopyISOLatin1Lowered' 
changed from 96 in /x/obj/sh3el//usr/src/x11/Xserver/dix/libdix.a(dixutils.o) to 102 
in /x/obj/sh3el//usr/src/x11/Xserver/dix/libdix.a(dixutils.o)
/x/obj/sh3el//usr/src/x11/Xserver/os/libos.a(utils.o)(.text+0x1350): In function 
`Xfree':
: multiple definition of `Xfree'
/x/obj/sh3el/usr/src/destdir.sh3el/usr/X11R6/lib/libXfont.a(miscutil.o)(.text+0x44): 
first defined here
/x/obj/sh3el//usr/src/x11/Xserver/os/libos.a(utils.o)(.text+0x12a4): In function 
`Xrealloc':
: multiple definition of `Xrealloc'
/x/obj/sh3el/usr/src/destdir.sh3el/usr/X11R6/lib/libXfont.a(miscutil.o)(.text+0x18): 
first defined here
/var/tools/shle--netbsdelf/bin/ld: Warning: size of symbol `Xrealloc' changed from 44 
in /x/obj/sh3el/usr/src/destdir.sh3el/usr/X11R6/lib/libXfont.a(miscutil.o) to
 116 in /x/obj/sh3el/usr/src/destdir.sh3el/usr/X11R6/lib/libXfont.a(miscutil.o)
/x/obj/sh3el//usr/src/x11/Xserver/os/libos.a(utils.o)(.text+0x121c): In function 
`Xcalloc':
: multiple definition of `Xcalloc'
/x/obj/sh3el/usr/src/destdir.sh3el/usr/X11R6/lib/libXfont.a(miscutil.o)(.text+0x60): 
first defined here
/var/tools/shle--netbsdelf/bin/ld: Warning: size of symbol `Xcalloc' changed from 24 
in /x/obj/sh3el/usr/src/destdir.sh3el/usr/X11R6/lib/libXfont.a(miscutil.o) to 
56 in /x/obj/sh3el/usr/src/destdir.sh3el/usr/X11R6/lib/libXfont.a(miscutil.o)
/x/obj/sh3el//usr/src/x11/Xserver/os/libos.a(utils.o)(.text+0x1198): In function 
`Xalloc':
: multiple definition of `Xalloc'
/x/obj/sh3el/usr/src/destdir.sh3el/usr/X11R6/lib/libXfont.a(miscutil.o)(.text+0x0): 
first defined here
/var/tools/shle--netbsdelf/bin/ld: Warning: size of symbol `Xalloc' changed from 24 in 
/x/obj/sh3el/usr/src/destdir.sh3el/usr/X11R6/lib/libXfont.a(miscutil.o) to 7
2 in /x/obj/sh3el/usr/src/destdir.sh3el/usr/X11R6/lib/libXfont.a(miscutil.o)
_______________________________________________
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel

Reply via email to