• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Building Xephyr and Xsdl - X11's libGL
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Building Xephyr and Xsdl - X11's libGL


  • Subject: Building Xephyr and Xsdl - X11's libGL
  • From: Jeremy Huddleston <email@hidden>
  • Date: Sat, 10 Nov 2007 16:04:02 -0800

When building Xephyr (--enable-kdrive), I noticed the following error as it tries to link Xsdl:
...
gcc -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -I/usr/X11/include/ freetype2 -I../../../include -I../../../include -I../../../Xext - I../../../composite -I../../../damageext -I../../../xfixes -I../../../ Xi -I../../../mi -I../../../miext/shadow -I../../../miext/damage - I../../../render -I../../../randr -I../../../fb -O2 -pipe -O2 -pipe -o Xsdl sdl.o -Wl,-framework -Wl,CoreServices -Wl,-framework - Wl,ApplicationServices -Wl,-framework -Wl,Cocoa -Wl,-framework - Wl,CoreServices -Wl,-framework -Wl,ApplicationServices ../../../ dix/.libs/libdix.a ../../../hw/kdrive/src/libkdrive.a ../../../ fb/.libs/libfb.a ../../../mi/.libs/libmi.a ../../../xfixes/.libs/ libxfixes.a ../../../Xext/.libs/libXext.a ../../../dbe/.libs/ libdbe.a ../../../XTrap/.libs/libxtrap.a ../../../record/.libs/ librecord.a ../../../GL/glx/.libs/libglx.a ../../../GL/mesa/.libs/ libGLcore.a ../../../render/.libs/librender.a ../../../randr/.libs/ librandr.a ../../../damageext/.libs/libdamageext.a ../../../miext/ damage/.libs/libdamage.a ../../../miext/cw/.libs/libcw.a ../../../ miext/shadow/.libs/libshadow.a ../../../Xi/.libs/libXi.a ../../../ xkb/.libs/libxkb.a ../../../xkb/.libs/libxkbstubs.a ../../../ composite/.libs/libcomposite.a ../../../dix/.libs/ libxpstubs.a ../../../os/.libs/libos.a ../../../hw/kdrive/src/ libkdrivestubs.a -L/usr/X11/lib -L/opt/local/lib -lSDLmain /opt/local/ lib/libSDL.dylib /usr/X11/lib/libXfont.1.4.1.dylib /usr/X11/lib/ libfreetype.dylib /usr/X11/lib/libXau.6.0.0.dylib /usr/X11/lib/ libfontenc.1.0.0.dylib -lz /usr/X11/lib/libXdmcp.6.0.0.dylib -lm
ld: cycle in dylib re-exports with /usr/X11/lib/libGL.dylib
collect2: ld returned 1 exit status


I realize that I can just --disable-xsdl to avoid building it, but that's not the issue here. I'm wondering two things:

1) Ben, did you encounter this when you build Xephyr? Or perhaps you didn't have SDL installed on that build machine, so it was skipped
2) Has anyone looked at this problem in /usr/X11/lib/libGL.dylib? Many other sources (MacPorts, Fink, etc) are avoiding this with a workaround like '-lGL -dylib_file /System/Library/Frameworks/ OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/ Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib' but it would be better to fix /usr/X11/lib/libGL.dylib
3) Where are /usr/X11/lib/libGL* coming from? I don't see any Mesa or GL stuff in X11libs-15.tar.bz2


...

Now back to Xephyr, when linking Xephyr, I get the following:
Undefined symbols:
  "_DarwinHandleGUI", referenced from:
      _main in libdix.a(main.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status

I saw this mentioned on the list by Andy Fore a few days ago, but I didn't hear what the solution was. Ben just released the binary and said sources in git had been updated to build right, but I'm still seeing this issue. Any thoughts?

--Jeremy
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list      (email@hidden)
This email sent to email@hidden


  • Follow-Ups:
    • Re: Building Xephyr and Xsdl - X11's libGL
      • From: Ben Byer <email@hidden>
  • Prev by Date: Re: The Leopard Middle Mouse issue...
  • Next by Date: Re: X11, Leopard and Keyboard Input
  • Previous by thread: Re: [Patch] Makefile updates: Remove cruft, XDarwin.app, etc
  • Next by thread: Re: Building Xephyr and Xsdl - X11's libGL
  • Index(es):
    • Date
    • Thread