#33818 closed defect (fixed)
xorg-server-1.12 fails to build on PPC Tiger, 10.4.11
Reported by: | ballapete (Peter "Pete" Dyballa) | Owned by: | jeremyhu (Jeremy Huddleston Sequoia) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.0.4 |
Keywords: | tiger | Cc: | ryandesign (Ryan Carsten Schmidt) |
Port: | xorg-server |
Description
The error is this:
libtool: link: /usr/bin/gcc-4.0 -std=gnu99 -DHAVE_DIX_CONFIG_H -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wcast-qual -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -fno-strict-aliasing -fno-strict-aliasing -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -I/opt/local/include -I/opt/local/include/pixman-1 -I/opt/local/include/freetype2 -I../../../include -I../../../include -I../../../Xext -I../../../damageext -I../../../xfixes -I../../../Xi -I../../../mi -I../../../miext/sync -I../../../miext/shadow -I../../../miext/damage -I../../../render -I../../../randr -I../../../fb -pipe -O2 -arch ppc -DROOTLESS_WORKAROUND -DROOTLESS_SAFEALPHA -DNO_ALLOCA -Objc -Wl,-u -Wl,_miDCInitialize -Wl,-framework -Wl,Carbon -Wl,-framework -Wl,Cocoa -Wl,-framework -Wl,CoreAudio -Wl,-framework -Wl,IOKit -Wl,-framework -Wl,OpenGL -arch ppc -o X11.bin bundle-main.o strndup.o mach_startupServer.o mach_startupUser.o ../../../dix/.libs/dixfonts.o -L/opt/local/lib /opt/local/lib/libXfont.dylib /opt/local/lib/libfreetype.dylib -lbz2 /opt/local/lib/libfontenc.dylib -lz -lXplugin ../../../hw/xquartz/.libs/libXquartz.a ../../../hw/xquartz/xpr/.libs/libXquartzXpr.a ../../../miext/rootless/.libs/librootless.a ../../../hw/xquartz/pbproxy/.libs/libxpbproxy.a /opt/local/lib/libAppleWM.dylib /opt/local/lib/libXext.dylib /opt/local/lib/libXfixes.dylib /opt/local/lib/libX11.dylib /opt/local/lib/libxcb.dylib /opt/local/lib/libXau.dylib /opt/local/lib/libXdmcp.dylib ../../../dix/.libs/libmain.a ../../../fb/.libs/libfb.a /opt/local/lib/libpixman-1.dylib -lpthread ../../../xfixes/.libs/libxfixes.a ../../../Xext/.libs/libXext.a ../../../dbe/.libs/libdbe.a ../../../randr/.libs/librandr.a ../../../render/.libs/librender.a ../../../damageext/.libs/libdamageext.a ../../../miext/sync/.libs/libsync.a ../../../miext/damage/.libs/libdamage.a ../../../miext/shadow/.libs/libshadow.a ../../../Xi/.libs/libXi.a ../../../xkb/.libs/libxkb.a ../../../xkb/.libs/libxkbstubs.a ../../../dix/.libs/libdix.a ../../../mi/.libs/libmi.a ../../../os/.libs/libos.a ../../../hw/xquartz/GL/.libs/libCGLCore.a ../../../glx/.libs/libglx.a ../../../record/.libs/librecord.a -lm -framework ApplicationServices /usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: warning multiple definitions of symbol _serverGeneration ../../../dix/.libs/libdix.a(globals.o) definition of _serverGeneration in section (__DATA,__data) /opt/local/lib/libXfont.dylib(miscutil.o) definition of _serverGeneration /usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: multiple definitions of symbol _ErrorF /opt/local/lib/libXfont.dylib(errorf.o) definition of _ErrorF ../../../os/.libs/libos.a(log.o) definition of _ErrorF in section (__TEXT,__text) /usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: multiple definitions of symbol _FatalError /opt/local/lib/libXfont.dylib(fatalerror.o) definition of _FatalError ../../../os/.libs/libos.a(log.o) definition of _FatalError in section (__TEXT,__text) /usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: multiple definitions of symbol _MakeAtom /opt/local/lib/libXfont.dylib(atom.o) definition of _MakeAtom ../../../dix/.libs/libdix.a(atom.o) definition of _MakeAtom in section (__TEXT,__text) /usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: multiple definitions of symbol _NameForAtom /opt/local/lib/libXfont.dylib(atom.o) definition of _NameForAtom ../../../dix/.libs/libdix.a(atom.o) definition of _NameForAtom in section (__TEXT,__text) /usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: multiple definitions of symbol _ValidAtom /opt/local/lib/libXfont.dylib(atom.o) definition of _ValidAtom ../../../dix/.libs/libdix.a(atom.o) definition of _ValidAtom in section (__TEXT,__text) collect2: ld returned 1 exit status make[4]: *** [X11.bin] Error 1 make[4]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_x11_xorg-server/xorg-server/work/xorg-server-1.12.0/hw/xquartz/mach-startup' make[3]: *** [all] Error 2 make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_x11_xorg-server/xorg-server/work/xorg-server-1.12.0/hw/xquartz/mach-startup'
This looks similar to #31928.
Attachments (1)
Change History (18)
Changed 13 years ago by ballapete (Peter "Pete" Dyballa)
comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | ryandesign@… added; jeremyhu@… removed |
---|---|
Keywords: | tiger added |
Owner: | changed from macports-tickets@… to jeremyhu@… |
Thanks, I was going to report that, but got sidetracked.
comment:2 follow-up: 4 Changed 13 years ago by jeremyhu (Jeremy Huddleston Sequoia)
Rrrrmmm ... /shrug
Can you change it back to 1.11.x and provide that build log, so I can compare?
comment:3 Changed 13 years ago by jeremyhu (Jeremy Huddleston Sequoia)
Status: | new → assigned |
---|
comment:4 follow-up: 5 Changed 13 years ago by ballapete (Peter "Pete" Dyballa)
Replying to jeremyhu@…:
Rrrrmmm ... /shrug
Can you change it back to 1.11.x and provide that build log, so I can compare?
How can I make port to build an old version? I'd really like to do that, so that I could update the old xorg-server 1.7.1_901_0 which cannot launch because libopenssl and libcrypt were updated.
I'll try to understand the documentation and see whether I can get successful...
comment:5 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Replying to Peter_Dyballa@…:
How can I make port to build an old version?
comment:6 Changed 13 years ago by jeremyhu (Jeremy Huddleston Sequoia)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
r91368, -devel will get the fix once it's in master.
comment:7 follow-ups: 8 9 Changed 13 years ago by jeremyhu (Jeremy Huddleston Sequoia)
This has apparently been a bug for about a year, so it doesn't look like many people are using this on Tiger any more...
comment:8 Changed 13 years ago by ballapete (Peter "Pete" Dyballa)
Replying to jeremyhu@…:
This has apparently been a bug for about a year, so it doesn't look like many people are using this on Tiger any more...
Does this mean that I can stop trying to build old xorg-server? (I had waited until doxygen was built with MacPorts' flex and around local midnight I seemed to have the proper sym-link "files" together with Portfile.)
comment:9 follow-up: 11 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Replying to jeremyhu@…:
This has apparently been a bug for about a year, so it doesn't look like many people are using this on Tiger any more...
It had not been possible until 3 days ago to build xorg-server on PowerPC Tiger because mesa had been broken on PowerPC Tiger for quite awhile. I have not tested on Intel. Hopefully most Intel users have upgraded to at least Snow Leopard since all Intel Macs support it and there's little reason not to do so, but there are definitely PowerPC Macs that do not support Leopard.
comment:10 Changed 13 years ago by jeremyhu (Jeremy Huddleston Sequoia)
Well I have a few pieces of extra hardware at the moment, so I'm trying to look into some Tiger/Leopard bugs.
xorg-server built fine for me i386, but I haven't tested it.
comment:11 Changed 13 years ago by ballapete (Peter "Pete" Dyballa)
Replying to ryandesign@…:
Replying to jeremyhu@…:
This has apparently been a bug for about a year, so it doesn't look like many people are using this on Tiger any more...
It had not been possible until 3 days ago to build xorg-server on PowerPC Tiger because mesa had been broken on PowerPC Tiger for quite awhile. I have not tested on Intel. Hopefully most Intel users have upgraded to at least Snow Leopard since all Intel Macs support it and there's little reason not to do so, but there are definitely PowerPC Macs that do not support Leopard.
Yes, this has prevented me to update xorg-server or xorg-server-devel on PPC Tiger. This week I started to update the Leopard and Tiger software for my PPC hardware ans thought of asking Jeremy how to deactivate the recent MESA version in MacPorts and how to switch to the old working version in order to be able to compile the X server. But then MESA built again...
comment:12 Changed 13 years ago by ballapete (Peter "Pete" Dyballa)
The software compiles and installs on PPC Tiger, Mac OS X 10.4.11 – but it does not launch! Maybe it's a problem with xauth:
pete 228 /\ sh -x /opt/local/bin/startx | tee Start\ X + unset DBUS_SESSION_BUS_ADDRESS + unset SESSION_MANAGER + bindir=/opt/local/bin + oldbindir=/usr/X11R6/bin + '[' -d /usr/X11R6/bin ']' + export PATH + userclientrc=/Users/pete/.xinitrc + sysclientrc=/opt/local/lib/X11/xinit/xinitrc + userserverrc=/Users/pete/.xserverrc + sysserverrc=/opt/local/lib/X11/xinit/xserverrc + defaultclient=xterm + defaultserver=/opt/local/bin/X + defaultclientargs= + defaultserverargs= + defaultdisplay=:0 + clientargs= + serverargs= + '[' x = x ']' + export X11_PREFS_DOMAIN=org.macports.X11 + X11_PREFS_DOMAIN=org.macports.X11 + defaults read org.macports.X11 cache_fonts + defaults read org.macports.X11 no_auth + defaults read org.macports.X11 nolisten_tcp ++ defaults read org.macports.X11 cache_fonts + '[' x1 = x1 ']' + '[' -x /opt/local/bin/font_cache ']' + /opt/local/bin/font_cache font_cache: Scanning user font directories to generate X11 font caches + '[' -x /opt/local/lib/X11/xinit/privileged_startx ']' + /opt/local/lib/X11/xinit/privileged_startx privileged_startx: bootstrap_look_up(org.macports.privileged_startx): 1102l ++ defaults read org.macports.X11 no_auth + '[' x0 = x0 ']' + enable_xauth=1 ++ defaults read org.macports.X11 nolisten_tcp font_cache: Updating FC cache + '[' x1 = x1 ']' + defaultserverargs= -nolisten tcp + defaults read org.macports.X11 dpi ++ defaults read org.macports.X11 dpi + defaultserverargs= -nolisten tcp -dpi 100 + d=0 + true + '[' -e /tmp/.X0-lock ']' + break + defaultdisplay=:0 + unset d + whoseargs=client + '[' x '!=' x ']' + '[' x = x ']' + client=xterm + '[' x = x ']' + '[' -f /Users/pete/.xinitrc ']' + client=/Users/pete/.xinitrc + '[' x = x ']' + clientargs= + '[' x = x ']' + server=/opt/local/bin/X + '[' x = x -a x = x ']' + '[' -f /Users/pete/.xserverrc ']' + '[' -f /opt/local/lib/X11/xinit/xserverrc ']' + '[' x = x ']' + serverargs= -nolisten tcp -dpi 100 + '[' x = x ']' + display=:0 + '[' x1 = x1 ']' + '[' x = x ']' + XAUTHORITY=/Users/pete/.Xauthority + export XAUTHORITY + removelist= ++ uname ++ hostname + hostname=hier.do.main + authdisplay=:0 + '[' -r /dev/urandom ']' ++ dd if=/dev/urandom bs=16 count=1 ++ hexdump -e '"%08x"' + mcookie=0151eed519cb4d3f649d054984820fa7 + test x0151eed519cb4d3f649d054984820fa7 = x + dummy=0 + xserverauthfile=/Users/pete/.serverauth.23224 + trap 'rm -f '\''/Users/pete/.serverauth.23224'\''' HUP INT QUIT ILL TRAP KILL BUS TERM + xauth -q -f /Users/pete/.serverauth.23224 xauth: file /Users/pete/.serverauth.23224 does not exist ++ echo /Users/pete/.serverauth.23224 ++ sed 's/'\''/'\''\\'\'''\''/g' + xserverauthfilequoted=/Users/pete/.serverauth.23224 + serverargs= -nolisten tcp -dpi 100 -auth '/Users/pete/.serverauth.23224' ++ xauth list :0 ++ sed -n 's/.*:0[[:space:]*].*[[:space:]*]//p' + authcookie=1d26291abc8e954041589d3ca81f181e + '[' z1d26291abc8e954041589d3ca81f181e = z ']' + dummy=1 + xauth -q -f /Users/pete/.serverauth.23224 ++ xauth list hier.do.main:0 ++ sed -n 's/.*hier.do.main:0[[:space:]*].*[[:space:]*]//p' font_cache: Done xauth: (argv):1: bad display name "hier.do.main:0" in "list" command + authcookie= + '[' z = z ']' + xauth -q xauth: (stdin):1: bad display name "hier.do.main:0" in "add" command + removelist=hier.do.main:0 + eval xinit '"/Users/pete/.xinitrc"' -- '"/opt/local/bin/X"' :0 -nolisten tcp -dpi 100 -auth ''\''/Users/pete/.serverauth.23224'\''' ++ xinit /Users/pete/.xinitrc -- /opt/local/bin/X :0 -nolisten tcp -dpi 100 -auth /Users/pete/.serverauth.23224 waiting for X server to begin accepting connections . .. .. .. .. .. .. .. .. xinit: giving up xinit: unable to connect to X server: Connection refused xinit: server error + retval=1 + '[' x1 = x1 ']' + '[' 'xhier.do.main:0 ' '!=' x ']' + xauth remove hier.do.main:0 xauth: (argv):1: bad display name "hier.do.main:0" in "remove" command + '[' x/Users/pete/.serverauth.23224 '!=' x ']' + rm -f /Users/pete/.serverauth.23224 + exit 1 Exit 1
This happens more than just my account, even the most simple ones, just created:
latsche:~ x11$ sh -x /opt/local/bin/startx + unset DBUS_SESSION_BUS_ADDRESS + unset SESSION_MANAGER + bindir=/opt/local/bin + oldbindir=/usr/X11R6/bin + '[' -d /usr/X11R6/bin ']' + PATH=/opt/local/bin:/opt/local/sbin:/usr/X11/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/x11:/usr/X11R6/bin + export PATH + userclientrc=/Users/x11/.xinitrc + sysclientrc=/opt/local/lib/X11/xinit/xinitrc + userserverrc=/Users/x11/.xserverrc + sysserverrc=/opt/local/lib/X11/xinit/xserverrc + defaultclient=xterm + defaultserver=/opt/local/bin/X + defaultclientargs= + defaultserverargs= + defaultdisplay=:0 + clientargs= + serverargs= + '[' x = x ']' + export X11_PREFS_DOMAIN=org.macports.X11 + X11_PREFS_DOMAIN=org.macports.X11 + defaults read org.macports.X11 cache_fonts + defaults read org.macports.X11 no_auth + defaults read org.macports.X11 nolisten_tcp ++ defaults read org.macports.X11 cache_fonts + '[' x1 = x1 ']' + '[' -x /opt/local/bin/font_cache ']' + /opt/local/bin/font_cache + '[' -x /opt/local/lib/X11/xinit/privileged_startx ']' + /opt/local/lib/X11/xinit/privileged_startx privileged_startx: bootstrap_look_up(org.macports.privileged_startx): 1102l ++ defaults read org.macports.X11 no_auth font_cache: Scanning user font directories to generate X11 font caches font_cache: Updating FC cache + '[' x0 = x0 ']' + enable_xauth=1 ++ defaults read org.macports.X11 nolisten_tcp font_cache: Done + '[' x1 = x1 ']' + defaultserverargs= -nolisten tcp + defaults read org.macports.X11 dpi + d=0 + true + '[' -e /tmp/.X0-lock ']' + break + defaultdisplay=:0 + unset d + whoseargs=client + '[' x '!=' x ']' + '[' x = x ']' + client=xterm + '[' x = x ']' + '[' -f /Users/x11/.xinitrc ']' + '[' -f /opt/local/lib/X11/xinit/xinitrc ']' + client=/opt/local/lib/X11/xinit/xinitrc + '[' x = x ']' + clientargs= + '[' x = x ']' + server=/opt/local/bin/X + '[' x = x -a x = x ']' + '[' -f /Users/x11/.xserverrc ']' + '[' -f /opt/local/lib/X11/xinit/xserverrc ']' + '[' x = x ']' + serverargs= -nolisten tcp + '[' x = x ']' + display=:0 + '[' x1 = x1 ']' + '[' x = x ']' + XAUTHORITY=/Users/x11/.Xauthority + export XAUTHORITY + removelist= ++ uname ++ hostname + hostname=hier.do.main + authdisplay=:0 + '[' -r /dev/urandom ']' ++ dd if=/dev/urandom bs=16 count=1 ++ hexdump -e '"%08x"' + mcookie=aa3fb122e48306526a3d205ade109e2a + test xaa3fb122e48306526a3d205ade109e2a = x + dummy=0 + xserverauthfile=/Users/x11/.serverauth.22648 + trap 'rm -f '\''/Users/x11/.serverauth.22648'\''' HUP INT QUIT ILL TRAP KILL BUS TERM + xauth -q -f /Users/x11/.serverauth.22648 xauth: file /Users/x11/.serverauth.22648 does not exist ++ echo /Users/x11/.serverauth.22648 ++ sed 's/'\''/'\''\\'\'''\''/g' + xserverauthfilequoted=/Users/x11/.serverauth.22648 + serverargs= -nolisten tcp -auth '/Users/x11/.serverauth.22648' ++ xauth list :0 ++ sed -n 's/.*:0[[:space:]*].*[[:space:]*]//p' + authcookie=e2fe0039356f971c084850bc477f32f1 + '[' ze2fe0039356f971c084850bc477f32f1 = z ']' + dummy=1 + xauth -q -f /Users/x11/.serverauth.22648 ++ xauth list hier.do.main:0 ++ sed -n 's/.*hier.do.main:0[[:space:]*].*[[:space:]*]//p' xauth: (argv):1: bad display name "hier.do.main:0" in "list" command + authcookie= + '[' z = z ']' + xauth -q xauth: (stdin):1: bad display name "hier.do.main:0" in "add" command + removelist=hier.do.main:0 + eval xinit '"/opt/local/lib/X11/xinit/xinitrc"' -- '"/opt/local/bin/X"' :0 -nolisten tcp -auth ''\''/Users/x11/.serverauth.22648'\''' ++ xinit /opt/local/lib/X11/xinit/xinitrc -- /opt/local/bin/X :0 -nolisten tcp -auth /Users/x11/.serverauth.22648 waiting for X server to begin accepting connections . .. .. .. .. .. .. .. .. xinit: giving up xinit: unable to connect to X server: Connection refused xinit: server error + retval=1 + '[' x1 = x1 ']' + '[' 'xhier.do.main:0 ' '!=' x ']' + xauth remove hier.do.main:0 xauth: (argv):1: bad display name "hier.do.main:0" in "remove" command + '[' x/Users/x11/.serverauth.22648 '!=' x ']' + rm -f /Users/x11/.serverauth.22648 + exit 1
The X server in /usr/X11R6, X11 1.1.3 - XFree86 4.4.0, has no problems to launch.
comment:13 follow-up: 14 Changed 13 years ago by jeremyhu (Jeremy Huddleston Sequoia)
X11.app is insecure, which is why it may be launching...
Please open a separate issue for the bug you're seeing.
comment:14 Changed 13 years ago by ballapete (Peter "Pete" Dyballa)
Replying to jeremyhu@…:
X11.app is insecure, which is why it may be launching...
Please open a separate issue for the bug you're seeing.
There is also some chance that the syntax used in startx is incorrect – this works:
xauth list hier.do.main/unix:0
So it could be that just updates to the script are needed – which I can't test right now because the X11 variant of GNU Emacs is compiling...
comment:15 Changed 13 years ago by ballapete (Peter "Pete" Dyballa)
The documentation (man xauth) tells:
DISPLAY NAMES
Display names for the add, [n]extract, [n]list, [n]merge, and remove commands use the same format as the DISPLAY environment variable and the common -display command line argument. Display-specific informa- tion (such as the screen number) is unnecessary and will be ignored. Same-machine connections (such as local-host sockets, shared memory, and the Internet Protocol hostname localhost) are referred to as host- name/unix:displaynumber so that local entries for different machines may be stored in one authority file.
So the startx script is indeed incorrect. It needs to be patched:
--- /opt/local/bin/startx.orig 2012-03-29 14:24:38.000000000 +0200 +++ /opt/local/bin/startx 2012-04-01 22:50:29.000000000 +0200 @@ -271,9 +271,9 @@ # now add the same credentials to the client authority file # if '$displayname' already exists do not overwrite it as another # server man need it. Add them to the '$xserverauthfile' instead. - for displayname in $authdisplay $hostname$authdisplay; do + for displayname in $authdisplay ${hostname}/unix$authdisplay; do authcookie=`xauth list "$displayname" \ - | sed -n "s/.*$displayname[[:space:]*].*[[:space:]*]//p"` 2>/dev/null; + | sed -n "s,.*$displayname[[:space:]*].*[[:space:]*],,p"` 2>/dev/null; if [ "z${authcookie}" = "z" ] ; then xauth -q << EOF add $displayname . $mcookie
comment:16 Changed 13 years ago by ballapete (Peter "Pete" Dyballa)
The "repaired" startx script makes no change, the X server still fails to do its job:
eval xinit \"$client\" $clientargs -- \"$server\" $display $serverargs + eval xinit '"/Users/pete/.xinitrc"' -- '"/opt/local/bin/X"' :0 -nolisten tcp -dpi 100 -auth ''\''/Users/pete/.serverauth.16320'\''' xinit "/Users/pete/.xinitrc" -- "/opt/local/bin/X" :0 -nolisten tcp -dpi 100 -auth '/Users/pete/.serverauth.16320' ++ xinit /Users/pete/.xinitrc -- /opt/local/bin/X :0 -nolisten tcp -dpi 100 -auth /Users/pete/.serverauth.16320 font_cache: Done waiting for X server to begin accepting connections . .. .. .. .. .. .. .. .. . xinit: giving up xinit: unable to connect to X server: Connection refused xinit: server error retval=$? + retval=1 if [ x"$enable_xauth" = x1 ] ; then if [ x"$removelist" != x ]; then xauth remove $removelist fi if [ x"$xserverauthfile" != x ]; then rm -f "$xserverauthfile" fi fi + '[' x1 = x1 ']' + '[' 'x:0 ' '!=' x ']' + xauth remove :0 + '[' x/Users/pete/.serverauth.16320 '!=' x ']' + rm -f /Users/pete/.serverauth.16320 exit $retval + exit 1
comment:17 Changed 13 years ago by jeremyhu (Jeremy Huddleston Sequoia)
Peter, please open a new ticket for your issue.
The changes you made are not correct.
I believe the issue is that your hostname is not resolving.
main.log