#17609 closed defect (fixed)
xorg-server 1.4.2-apple27_2 fails to build on Leopard
Reported by: | frstan@… | Owned by: | jeremyhu (Jeremy Huddleston Sequoia) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.7.0 |
Keywords: | x11 xorg-server glx | Cc: | jeremyhu (Jeremy Huddleston Sequoia) |
Port: | xorg-server |
Description
sample of error mesg: Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_xorg-server/work/xorg-server-1.4.2-apple27" && make all " returned error 2 Command output: glcontextmodes.c:194: error: 'struct GLcontextModesRec' has no member named 'bindToTextureRgba' glcontextmodes.c:196: error: 'struct GLcontextModesRec' has no member named 'bindToMipmapTexture' glcontextmodes.c:197: error: 'struct GLcontextModesRec' has no member named 'bindToTextureTargets' glcontextmodes.c:200: error: 'struct GLcontextModesRec' has no member named 'yInverted' glcontextmodes.c: In function '_gl_get_context_mode_data': glcontextmodes.c:333: error: 'struct GLcontextModesRec' has no member named 'bindToTextureRgb' glcontextmodes.c:336: error: 'struct GLcontextModesRec' has no member named 'bindToTextureRgba' glcontextmodes.c:339: error: 'struct GLcontextModesRec' has no member named 'bindToMipmapTexture'
at Jeremy's suggestion tried adding --disable-glx to config.args and build succeeded
Change History (14)
comment:1 Changed 16 years ago by jeremyhu (Jeremy Huddleston Sequoia)
comment:2 Changed 16 years ago by jeremyhu (Jeremy Huddleston Sequoia)
Owner: | changed from macports-tickets@… to jeremyhu@… |
---|---|
Status: | new → assigned |
comment:3 Changed 16 years ago by frstan@…
nuked /opt/local/include/GL/internal/glcore.h --- build failed same error restored /opt/local/include/GL/internal/glcore.h, nuked /usr/X11/include/GL/internal/glcore.h -- build failed same error
didnt try nuking both but it does build if you add --disable-glx to config.args
if you need me to try nuking both anyway I'll do so Thursday (1:52 am here, now)
comment:4 follow-up: 5 Changed 16 years ago by jeremyhu (Jeremy Huddleston Sequoia)
It would be nice if you could nuke both (don't resync, since I updated xorg-server/Portfile to just --disable-glx for everyone).
Thanks...
comment:5 Changed 16 years ago by frstan@…
Replying to jeremyhu@…:
It would be nice if you could nuke both (don't resync, since I updated xorg-server/Portfile to just --disable-glx for everyone).
Thanks...
When both files are nuked, xorg-server builds and installs successfully on Loepard. :) (This is with your last change to the port file reversed.)
comment:6 Changed 16 years ago by jeremyhu (Jeremy Huddleston Sequoia)
I think this will probably get it to work... can you give it a try?
Index: Portfile =================================================================== --- Portfile (revision 43658) +++ Portfile (working copy) @@ -91,11 +91,11 @@ configure.args --with-mesa-source=${worksrcpath}/../Mesa-${mesavers} --with-apple-applications-dir=${applications_dir} --with-fontdir=${x11prefix}/lib/X11/fonts --with-apple-application-id=org.macports.X11 # GLX doesn't work right ... see below... -configure.args-append --disable-glx +#configure.args-append --disable-glx -# Not working for some reason... # Otherwise glcore.h will be pulled in from glproto in /opt/local/include/GL/internal -#configure.cppflags-append -I${worksrcpath}/../Mesa-${mesavers}/include -I${prefix}/include +configure.cppflags-delete -I${prefix}/include +configure.cppflags-append -isystem${worksrcpath}/../Mesa-${mesavers}/include -I${prefix}/include -I${x11prefix}/include post-destroot { ln -s Xquartz ${destroot}${prefix}/bin/X
comment:7 Changed 16 years ago by frstan@…
no, build fails with this error: /bin/sh ../libtool --tag=CC --mode=compile /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I../include -I./../miext/cw -DHAVE_DIX_CONFIG_H -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include/pixman-1 -I../include -I../include -I../Xext -I../damageext -I../xfixes -I../Xi -I../mi -I../miext/shadow -I../miext/damage -I../render -I../randr -I../fb -O2 -DROOTLESS_WORKAROUND -DROOTLESS_SAFEALPHA -DNOxman-1 -I../../../include -I../../../include -I../../../Xext -I../../../damageext -I../../../xfixes -I../../../Xi -I../../../mi -I../../../miext/shadow -I../../../miext/damage -I../../../render -I../../../randr -I../../../fb -O2 -DROOTLESS_WORKAROUND -DROOTLESS_SAFEALPHA -DNO_ALLOCA -MT indirect.lo -MD -MP -MF .deps/indirect.Tpo -c indirect.c -fno-common -DPIC -o .libs/indirect.o indirect.c:61:19: error: GL/gl.h: No such file or directory indirect.c: In function 'setup_dispatch_table': indirect.c:1616: warning: assignment from incompatible pointer type indirect.c:1786: warning: assignment from incompatible pointer type indirect.c:1841: warning: assignment from incompatible pointer type indirect.c:1842: warning: assignment from incompatible pointer type indirect.c:1843: warning: assignment from incompatible pointer type make[3]: * [indirect.lo] Error 1 make[2]: * [all-recursive] Error 1 make[1]: * [all-recursive] Error 1 make: * [all-recursive] Error 1
Warning: the following items did not execute (for xorg-server): org.macports.destroot org.macports.build DEBUG: invalid command name "::ui_init"
while executing
"::ui_init $priority $prefix $channels $message"
("uplevel" body line 2) invoked from within
"uplevel 1 $body" Error: Unable to upgrade port: 1
comment:8 Changed 16 years ago by jeremyhu (Jeremy Huddleston Sequoia)
Really, I don't see mesa or X11/include being included on that command line (the condigure.cppflags-append doesn't seem to be in your Portfile)
comment:9 Changed 16 years ago by frstan@…
I updated the portfile by hand and some confusion about where the end-of-lines led to confusion of "-" as hyphen and "-" as '(remove this line) indicator'. I think I corrected this but got another error with sudo port -dfun upgrade. I cant post it because I resized the terminal window and lost the bottom lines. (Something strange is going on with Terminal I dont remember seeing before.) In any event I dont have time now to run port uograde again. Ill try later.
comment:10 Changed 16 years ago by frstan@…
after correcting the port file:
/usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I../../include -I../../hw/xfree86/os-support -I../../hw/xfree86/os-support/bus -I../../hw/xfree86/common -I../../hw/xfree86/dri -I../../mi -isystem/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_xorg-server/work/xorg-server-1.4.2-apple27/../Mesa-7.0.4/include -I/opt/local/include -I/usr/X11/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_xorg-server/work/xorg-server-1.4.2-apple27/../Mesa-7.0.4/include -DHAVE_DIX_CONFIG_H -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include/pixman-1 -I../../include -I../../include -I../../Xext -I../../damageext -I../../xfixes -I../../Xi -I../../mi -I../../miext/shadow -I../../miext/damage -I../../render -I../../randr -I../../fb -I/opt/local/include -I/opt/local/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_xorg-server/work/xorg-server-1.4.2-apple27/../Mesa-7.0.4/src/mesa/glapi -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_xorg-server/work/xorg-server-1.4.2-apple27/../Mesa-7.0.4/src/mesa/main -DXFree86Server -O2 -DROOTLESS_WORKAROUND -DROOTLESS_SAFEALPHA -DNO_ALLOCA -MT indirect_reqsize.lo -MD -MP -MF .deps/indirect_reqsize.Tpo -c indirect_reqsize.c -fno-common -DPIC -o .libs/indirect_reqsize.o glcontextmodes.c:419: error: 'struct GLcontextModesRec' has no member named 'bindToMipmapTexture' glcontextmodes.c:420: error: 'struct GLcontextModesRec' has no member named 'bindToTextureTargets' glcontextmodes.c:421: error: 'struct GLcontextModesRec' has no member named 'yInverted' glcontextmodes.c: In function '_gl_context_modes_are_same': glcontextmodes.c:535: error: 'struct GLcontextModesRec' has no member named 'bindToTextureRgb' glcontextmodes.c:535: error: 'struct GLcontextModesRec' has no member named 'bindToTextureRgb' glcontextmodes.c:536: error: 'struct GLcontextModesRec' has no member named 'bindToTextureRgba' glcontextmodes.c:536: error: 'struct GLcontextModesRec' has no member named 'bindToTextureRgba' glcontextmodes.c:537: error: 'struct GLcontextModesRec' has no member named 'bindToMipmapTexture' glcontextmodes.c:537: error: 'struct GLcontextModesRec' has no member named 'bindToMipmapTexture' glcontextmodes.c:538: error: 'struct GLcontextModesRec' has no member named 'bindToTextureTargets' glcontextmodes.c:538: error: 'struct GLcontextModesRec' has no member named 'bindToTextureTargets' glcontextmodes.c:539: error: 'struct GLcontextModesRec' has no member named 'yInverted' glcontextmodes.c:539: error: 'struct GLcontextModesRec' has no member named 'yInverted' make[2]: * [glcontextmodes.lo] Error 1 make[1]: * [all-recursive] Error 1 make: * [all-recursive] Error 1
Warning: the following items did not execute (for xorg-server): org.macports.destroot org.macports.build DEBUG: invalid command name "::ui_init"
while executing
"::ui_init $priority $prefix $channels $message"
("uplevel" body line 2) invoked from within
"uplevel 1 $body" Error: Unable to upgrade port: 1 macintosh:~ frstan$
comment:11 Changed 16 years ago by jeremyhu (Jeremy Huddleston Sequoia)
eh... what if we use '-I' instead of '-isystem' ... I keep getting -isystem confused...
comment:12 Changed 16 years ago by frstan@…
That change did the trick! xorg-server now builds under MacPorts on Leopard. :) Great work, Jeremy!
comment:13 Changed 16 years ago by jeremyhu (Jeremy Huddleston Sequoia)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
If you nuke /opt/local/include/GL/internal/glcore.h, will it build for you? If not, try nuking /usr/X11/include/GL/internal/glcore.h (and restore the one in /opt/...)... will it build now? Nuke both, will it build now?