Bug 10146 - Libtool uses -bundle switch to create .libs/libXdmGreet.so
Summary: Libtool uses -bundle switch to create .libs/libXdmGreet.so
Status: RESOLVED DUPLICATE of bug 14182
Alias: None
Product: xorg
Classification: Unclassified
Component: App/xdm (show other bugs)
Version: 7.1 (2006.05)
Hardware: PowerPC Mac OS X (All)
: medium normal
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-01 15:41 UTC by Peter Dyballa
Modified: 2008-05-06 01:55 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Peter Dyballa 2007-03-01 15:41:58 UTC
I updated recently with git and tried once more to compile XDarwin with build.sh. Compilation ended here:

	/bin/sh ../libtool --tag=CC --mode=link gcc -I/usr/X11R7/include   -I/usr/X11R7/include   -I/usr/X11R7/include   -I/usr/X11R7/include   -D__DARWIN__ -DNO_LASTLOG  -I/usr/X11R7/include   -I/usr/X11R7/include -I/sw/lib/freetype219/include/freetype2 -I/sw/lib/freetype219/include -I/sw/lib/fontconfig2/include   -I/usr/X11R7/include   -DGREET_LIB -I/usr/X11R7/include   -I.. -v -pipe -fPIC -O0 -mcpu=7450 -mtune=7450 -fno-common  -dead_strip -bind_at_load -L/sw/lib/freetype219/lib -L/sw/lib/fontconfig2/lib -L/sw/lib/ncurses -L/usr/local/lib -L/sw/lib -o libXdmGreet.la -rpath /usr/X11R7/lib/X11/xdm -module -avoid-version Login.lo greet.lo verify.lo -L/usr/X11R7/lib -lXt -lSM -lICE -lX11 -lXext   -L/usr/X11R7/lib -lXaw8 -lXmu -lXt -lX11 -lSM -lICE -lXau   -L/usr/X11R7/lib -lXdmcp    -L/usr/X11R7/lib -lXinerama   -L/usr/X11R7/lib -L/sw/lib/freetype219/lib -L/sw/lib/fontconfig2/lib -lXft -lXrender -lfontconfig -lfreetype -lz -lX11   -L/usr/X11R7/lib -lXpm -lX11   
	gcc ${wl}-undefined ${wl}dynamic_lookup -o .libs/libXdmGreet.so -bundle  .libs/Login.o .libs/greet.o .libs/verify.o  -L/sw/lib/freetype219/lib -L/sw/lib/fontconfig2/lib -L/sw/lib/ncurses -L/usr/local/lib -L/sw/lib -L/usr/X11R7/lib /usr/X11R7/lib/libXext.dylib /usr/X11R7/lib/libxcb-xlib.dylib /usr/X11R7/lib/libxcb.dylib /usr/X11R7/lib/libXaw8.dylib /usr/X11R7/lib/libXp.dylib /usr/X11R7/lib/libXmu.dylib /usr/X11R7/lib/libXt.dylib /usr/X11R7/lib/libSM.dylib /usr/X11R7/lib/libICE.dylib /usr/X11R7/lib/libXau.dylib /usr/X11R7/lib/libXdmcp.dylib /usr/X11R7/lib/libXinerama.dylib /usr/X11R7/lib/libXft.dylib /sw/lib/libexpat.dylib /usr/X11R7/lib/libXrender.dylib /sw/lib/fontconfig2/lib/libfontconfig.dylib /sw/lib/freetype219/lib/libfreetype.dylib -lz /usr/X11R7/lib/libXpm.dylib /usr/X11R7/lib/libX11.dylib -mcpu=7450 -mtune=7450
	/sw/lib/odcctools/bin/ld: multiple definitions of symbol ___xdm_getpwnam
	.libs/Login.o definition of ___xdm_getpwnam in section (__DATA,__common)
	.libs/greet.o definition of ___xdm_getpwnam in section (__DATA,__data)
	collect2: ld returned 1 exit status
	make[2]: *** [libXdmGreet.la] Error 1
	make[1]: *** [all-recursive] Error 1
	make: *** [all] Error 2

Libtool's use of -bundle switch

	-bundle
	Produce a Mach-o bundle format file. See man ld(1) for more information. 

is obviously incorrect. Its version is:

	ltmain.sh (GNU libtool) 1.5.23a (1.1220.2.414 2006/10/19 05:05:55)

The same behaviour shows also

	ltmain.sh (GNU libtool) 1.5.22 (1.1220.2.365 2005/12/18 22:14:06)

Mac OS X 10.4.8
xdm-1.1.3
Comment 1 Alan Coopersmith 2007-03-01 15:49:29 UTC
Xorg does not maintain libtool - to report libtool bugs, see
http://www.gnu.org/software/libtool/contribute.html

Once there is a fixed version of libtool, let us know and we can rebuild our
packages using it.
Comment 2 Peter Dyballa 2007-03-02 15:08:57 UTC
I think libtool is not the cause why making of xdm fails! I managed to "patch" the libtool script in xdm to not contain the -bundle switch and I still have the same error in the end with "multiple definitions of symbol ___xdm_getpwnam." This comes from the struct dlfuncs in greet.h, which is used in both  greeter/Login.c (as declaration only) and in greeter/greet.c:

	 struct passwd *(*_getpwnam)(GETPWNAM_ARGS);

expanded to

	extern struct passwd *(*__xdm_getpwnam)();
Comment 3 Benjamin Close 2008-01-11 02:39:23 UTC
Bugzilla Upgrade Mass Bug Change

NEEDSINFO state was removed in Bugzilla 3.x, reopening any bugs previously listed as NEEDSINFO.

  - benjsc
    fd.o Wrangler
Comment 4 Jeremy Huddleston Sequoia 2008-05-06 01:55:03 UTC

*** This bug has been marked as a duplicate of bug 14182 ***


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.