Bug 6703

Summary: liblbxutil build fixes
Product: xorg Reporter: paul <ephraim_owns>
Component: Lib/otherAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: high Keywords: patch
Version: git   
Hardware: PowerPC   
OS: Mac OS X (All)   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
minor diff none

Description paul 2006-04-23 11:07:51 UTC
lbxutil build fix for cygwin (https://bugs.freedesktop.org/show_bug.cgi?id=6245)
breaks build on darwin
Comment 1 paul 2006-04-23 11:08:52 UTC
Created attachment 5426 [details] [review]
minor diff

hopefully, this won't break cygwin back
Comment 2 Adam Jackson 2006-04-24 03:11:54 UTC
Any chance you can post the build failure from darwin without the patch?  I'd
rather see -no-undefined made mandatory and just fix the required libs as necessary.
Comment 3 paul 2006-04-24 05:58:21 UTC
(In reply to comment #2)
> Any chance you can post the build failure from darwin without the patch?  I'd
> rather see -no-undefined made mandatory and just fix the required libs as
necessary.

/bin/sh ../libtool --tag=CC --mode=link gcc  -g -O2   -o liblbxutil.la -rpath
/usr/lib -version-number 1:0:0 -no-undefined lbx_zlib_io.lo lbx_zlib.lo
reqstats.lo misc.lo dpackbits.lo epackbits.lo dfaxg42d.lo efaxg42d.lo
lbxdelta.lo  -lz 
gcc -dynamiclib  -o .libs/liblbxutil.1.dylib  .libs/lbx_zlib_io.o
.libs/lbx_zlib.o .libs/reqstats.o .libs/misc.o .libs/dpackbits.o
.libs/epackbits.o .libs/dfaxg42d.o .libs/efaxg42d.o .libs/lbxdelta.o  -lz 
-install_name  /usr/lib/liblbxutil.1.dylib -Wl,-compatibility_version -Wl,2
-Wl,-current_version -Wl,2.0
ld: Undefined symbols:
_Xalloc
_Xfree
/usr/bin/libtool: internal link edit command failed
make[2]: *** [liblbxutil.la] Error 1

i get this error building by hand or using jhbuild
the cygwin patch undid what was done about this exact problem earlier
(http://lists.freedesktop.org/archives/xorg-commit/2005-June/003748.html)
Comment 4 Adam Jackson 2006-04-27 05:37:06 UTC
(In reply to comment #3)
> /bin/sh ../libtool --tag=CC --mode=link gcc  -g -O2   -o liblbxutil.la -rpath
> /usr/lib -version-number 1:0:0 -no-undefined lbx_zlib_io.lo lbx_zlib.lo
> reqstats.lo misc.lo dpackbits.lo epackbits.lo dfaxg42d.lo efaxg42d.lo
> lbxdelta.lo  -lz 
> gcc -dynamiclib  -o .libs/liblbxutil.1.dylib  .libs/lbx_zlib_io.o
> .libs/lbx_zlib.o .libs/reqstats.o .libs/misc.o .libs/dpackbits.o
> .libs/epackbits.o .libs/dfaxg42d.o .libs/efaxg42d.o .libs/lbxdelta.o  -lz 
> -install_name  /usr/lib/liblbxutil.1.dylib -Wl,-compatibility_version -Wl,2
> -Wl,-current_version -Wl,2.0
> ld: Undefined symbols:
> _Xalloc
> _Xfree
> /usr/bin/libtool: internal link edit command failed
> make[2]: *** [liblbxutil.la] Error 1
> 
> i get this error building by hand or using jhbuild
> the cygwin patch undid what was done about this exact problem earlier
> (http://lists.freedesktop.org/archives/xorg-commit/2005-June/003748.html)

i'm inclined to fix this by converting lbxutil to just use malloc and free
directly.  i think the ABI makes that safe.  i'll look into this.
Comment 5 Daniel Stone 2006-06-01 14:41:02 UTC
being removed for 7.2 anyway

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.