Bug 513

Summary: Building with static FreeType library and static libXfont results in duplicate symbols
Product: xprint Reporter: Roland Mainz <roland.mainz>
Component: Server: Font engine: FreeTypeAssignee: Roland Mainz <roland.mainz>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: high    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
Patch for 2004-04-20-trunk none

Description Roland Mainz 2004-04-20 12:44:34 UTC
Building with static FreeType library and static libXfont results in duplicate
symbols:
-- snip --
gcc -m32 -o Xprt -O2 -fno-strength-reduce -fno-strict-aliasing -ansi -pedantic
-Wall -Wpointer-arith -Wundef     -L../../exports/lib
   Xprint/ddxInit.o Xprint/miinitext.o           dix/libdix.a os/libos.a 
Xprint/libprinter.a       Xprint/raster/libraster.a Xprint
/pcl/libpcl.a Xprint/pcl-mono/libpcl.a Xprint/ps/libps.a mfb/libmfb.a
cfb32/libcfb32.a            cfb/libcfb.a mfb/libmfb.a dix/libx
pstubs.a mi/libmi.a Xext/libext.a                    
lbx/liblbx.a                   ../../lib/lbxutil/liblbxutil.a    XTrap/libxtra
p.a  randr/librandr.a       ../../lib/font/libXfont.a -lfreetype
dix/libxpstubs.a  -lz -lm                  -lXau -lXdmcp  -Wl,-rpat
h-link,../../exports/lib
../../exports/lib/libfreetype.a(pcf.o)(.text+0x0): In function `BitOrderInvert':
: multiple definition of `BitOrderInvert'
../../lib/font/libXfont.a(utilbitmap.o)(.text+0x0): first defined here
../../exports/lib/libfreetype.a(pcf.o)(.text+0x30): In function `TwoByteSwap':
: multiple definition of `TwoByteSwap'
../../lib/font/libXfont.a(utilbitmap.o)(.text+0x30): first defined here
../../exports/lib/libfreetype.a(pcf.o)(.text+0x60): In function `FourByteSwap':
: multiple definition of `FourByteSwap'
../../lib/font/libXfont.a(utilbitmap.o)(.text+0x60): first defined here
../../exports/lib/libfreetype.a(pcf.o)(.text+0xa0): In function `RepadBitmap':
: multiple definition of `RepadBitmap'
../../lib/font/libXfont.a(utilbitmap.o)(.text+0xa0): first defined here
Xprint/ps/libps.a(psout_ftpstype1.o)(.text+0x69): In function
`PsOut_DownloadFreeType1':
: the use of `tempnam' is dangerous, better use `mkstemp'
collect2: ld returned 1 exit status
make[4]: *** [Xprt] Error 1
make[4]: Leaving directory
`/home/gismobile/projects/xprint/xorg_landing/test001/xc/programs/Xserver'
make[3]: *** [all] Error 2
make[3]: Leaving directory
`/home/gismobile/projects/xprint/xorg_landing/test001/xc/programs'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/home/gismobile/projects/xprint/xorg_landing/test001/xc'
make[1]: *** [World] Error 2
make[1]: Leaving directory
`/home/gismobile/projects/xprint/xorg_landing/test001/xc'
-- snip --
Comment 1 Roland Mainz 2004-04-20 12:48:29 UTC
Created attachment 215 [details] [review]
Patch for 2004-04-20-trunk
Comment 2 Roland Mainz 2004-04-20 12:50:29 UTC
Patch checked-in...

Checking in xc/config/cf/xprint_site.def;
/cvs/xorg/xc/config/cf/Attic/xprint_site.def,v  <--  xprint_site.def
new revision: 1.1.2.8; previous revision: 1.1.2.7
done
Mailing xorg-commit-diffs@freedesktop.org...
Generating notification message...
Generating notification message... done.
Checking in xc/lib/font/util/Imakefile;
/cvs/xorg/xc/lib/font/util/Imakefile,v  <--  Imakefile
new revision: 1.1.4.1.6.1.6.1; previous revision: 1.1.4.1.6.1
done
Checking in xc/lib/font/util/utilbitmap.c;
/cvs/xorg/xc/lib/font/util/utilbitmap.c,v  <--  utilbitmap.c
new revision: 1.1.4.1.6.1.6.1; previous revision: 1.1.4.1.6.1
done
Mailing the commit message to xorg-commit@pdx.freedesktop.org...
Mailing xorg-commit-diffs@freedesktop.org...
Generating notification message...
Generating notification message... done.


... marking bug as FIXED:

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.