Opened 15 years ago

Closed 15 years ago

#20754 closed defect (duplicate)

xorg-server-1.4.2-apple47 and xorg-server-1.5.3-apple14 don't compile on Tiger because of X11 C header files

Reported by: ballapete (Peter "Pete" Dyballa) Owned by: jeremyhu (Jeremy Huddleston Sequoia)
Priority: Normal Milestone:
Component: ports Version: 1.7.1
Keywords: Cc:
Port: xorg-server xorg-server-devel

Description (last modified by mf2k (Frank Schima))

Command output: /opt/local/include/X11/extensions/XShm.h:83: warning: type defaults to 'int' in declaration of 'XShmAttach'
/opt/local/include/X11/extensions/XShm.h:83: warning: function declaration isn't a prototype
/opt/local/include/X11/extensions/XShm.h:83: warni
ng: data definition has no type or storage class
/opt/local/include/X11/extensions/XShm.h:85: error: parse error before 'XShmDetach'
/opt/local/include/X11/extensions/XShm.h:86: error: parse error before '*' token
/opt/local/include/X11/extensions/XShm.h:88: warning: type defaults to 'int' in declaration of 'XShmDetach'
/opt/local/include/X11/extensions/XShm.h:88: warning: function declaration isn't a prototype
/opt/local/include/X11/extensions/XShm.h:88: warning: data definition has no type or storage cl
ass
/opt/local/include/X11/extensions/XShm.h:90: error: parse error before 'XShmPutImage'
/opt/local/include/X11/extensions/XShm.h:91: error: parse error before '*' token
/opt/local/include/X11/extensions/XShm.h:102: warning: type defaults to 'int' in declaration of 'XShmPutImage'
/opt/local/include/X11/extensions/XShm.h:102: warning: function declaration isn't a prototype
/opt/local/include/X11/extensions/XShm.h:102: warning: data definition has no type or storage class
/opt/local/include/X11/extensions/
XShm.h:104: error: parse error before 'XShmGetImage'
/opt/local/include/X11/extensions/XShm.h:105: error: parse error before '*' token
/opt/local/include/X11/extensions/XShm.h:111: warning: type defaults to 'int' in declaration of 'XShmGetImage'
/opt/local/include/X11/extensions/XShm.h:111: warning: function declaration isn't a prototype
/opt/local/include/X11/extensions/XShm.h:111: warning: data definition has no type or storage class
/opt/local/include/X11/extensions/XShm.h:113: error: parse error before '*' token
/opt/local/include/X11/extensions/XShm.h:114: error: parse error before '*' token
/opt/local/include/X11/extensions/XShm.h:122: warning: type defaults to 'int' in declaration of 'XShmCreateImage'
/opt/local/include/X11/extensions/XShm.h:122: warning: function declaration isn't a prototype
/opt/local/include/X11/extensions/XShm.h:122: warning: data definition has no type or storage class
/opt/local/include/X11/extensions/XShm.h:125: error: parse error before '*' token
/opt/local/include/X11/extensions/XShm.h:132: warning: function declaration isn't a prototype
miscrinit.c: In function 'miScreenInit':
miscrinit.c:241: warning: implicit declaration of function 'ShmRegisterFbFuncs'
miscrinit.c:241: warning: nested extern declaration of 'ShmRegisterFbFuncs'
make[1]: *** [miscrinit.lo] Error 1
make: *** [all-recursive] Error 1
Error: Status 1 encountered during processing.

There is also another error which I can't classify in the beginning:

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-devel/work/xorg-server-1.5.3-apple14" && make all " returned error 2

Here is the LOG from "port -v install xorg-server-devel:"

--->  Building xorg-server-devel
Making all in doc
make  all-am
make[2]: Nothing to be done for `all-am'.
Making all in include
make  all-am
Making all in dix
make  all-am
make[2]: Nothing to be done for `all-am'.
Making all in fb
make[1]: Nothing to be done for `all'.
Making all in mi
/bin/sh ../libtool --tag=CC   --mode=compile /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I../include   -I/opt/local/include -I/usr/include -I/opt/local/var/macports/sources/rsync.macports.org/release/ports/x11/xorg-server-devel/files/dri -I/opt/local/var/macports/sources/rsync.macports.org/release/ports/x11/xorg-server-devel/files/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/opt/local/include   -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 miscrinit.lo -MD -MP -MF .deps/miscrinit.Tpo -c -o miscrinit.lo miscrinit.c
 /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I../include -I/opt/local/include -I/usr/include -I/opt/local/var/macports/sources/rsync.macports.org/release/ports/x11/xorg-server-devel/files/dri -I/opt/local/var/macports/sources/rsync.macports.org/release/ports/x11/xorg-server-devel/files/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/opt/local/include -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 miscrinit.lo -MD -MP -MF .deps/miscrinit.Tpo -c miscrinit.c  -fno-common -DPIC -o .libs/miscrinit.o
In file included from miscrinit.c:43:
/opt/local/include/X11/extensions/XShm.h:44: error: parse error before 'Display'
/opt/local/include/X11/extensions/XShm.h:44: warning: no semicolon at end of struct or union
/opt/local/include/X11/extensions/XShm.h:50: error: parse error before '}' token
/opt/local/include/X11/extensions/XShm.h:50: warning: type defaults to 'int' in declaration of 'XShmCompletionEvent'
/opt/local/include/X11/extensions/XShm.h:50: warning: data definition has no type or storage class
/opt/local/include/X11/extensions/XShm.h:62: error: parse error before '*' token
/opt/local/include/X11/extensions/XShm.h:63: warning: function declaration isn't a prototype
/opt/local/include/X11/extensions/XShm.h:66: error: parse error before '*' token
/opt/local/include/X11/extensions/XShm.h:67: warning: function declaration isn't a prototype
/opt/local/include/X11/extensions/XShm.h:70: error: parse error before '*' token
/opt/local/include/X11/extensions/XShm.h:74: warning: function declaration isn't a prototype
/opt/local/include/X11/extensions/XShm.h:77: error: parse error before '*' token
/opt/local/include/X11/extensions/XShm.h:78: warning: function declaration isn't a prototype
/opt/local/include/X11/extensions/XShm.h:80: error: parse error before 'XShmAttach'
/opt/local/include/X11/extensions/XShm.h:81: error: parse error before '*' token
/opt/local/include/X11/extensions/XShm.h:83: warning: type defaults to 'int' in declaration of 'XShmAttach'
/opt/local/include/X11/extensions/XShm.h:83: warning: function declaration isn't a prototype
/opt/local/include/X11/extensions/XShm.h:83: warning: data definition has no type or storage class
/opt/local/include/X11/extensions/XShm.h:85: error: parse error before 'XShmDetach'
/opt/local/include/X11/extensions/XShm.h:86: error: parse error before '*' token
/opt/local/include/X11/extensions/XShm.h:88: warning: type defaults to 'int' in declaration of 'XShmDetach'
/opt/local/include/X11/extensions/XShm.h:88: warning: function declaration isn't a prototype
/opt/local/include/X11/extensions/XShm.h:88: warning: data definition has no type or storage class
/opt/local/include/X11/extensions/XShm.h:90: error: parse error before 'XShmPutImage'
/opt/local/include/X11/extensions/XShm.h:91: error: parse error before '*' token
/opt/local/include/X11/extensions/XShm.h:102: warning: type defaults to 'int' in declaration of 'XShmPutImage'
/opt/local/include/X11/extensions/XShm.h:102: warning: function declaration isn't a prototype
/opt/local/include/X11/extensions/XShm.h:102: warning: data definition has no type or storage class
/opt/local/include/X11/extensions/XShm.h:104: error: parse error before 'XShmGetImage'
/opt/local/include/X11/extensions/XShm.h:105: error: parse error before '*' token
/opt/local/include/X11/extensions/XShm.h:111: warning: type defaults to 'int' in declaration of 'XShmGetImage'
/opt/local/include/X11/extensions/XShm.h:111: warning: function declaration isn't a prototype
/opt/local/include/X11/extensions/XShm.h:111: warning: data definition has no type or storage class
/opt/local/include/X11/extensions/XShm.h:113: error: parse error before '*' token
/opt/local/include/X11/extensions/XShm.h:114: error: parse error before '*' token
/opt/local/include/X11/extensions/XShm.h:122: warning: type defaults to 'int' in declaration of 'XShmCreateImage'
/opt/local/include/X11/extensions/XShm.h:122: warning: function declaration isn't a prototype
/opt/local/include/X11/extensions/XShm.h:122: warning: data definition has no type or storage class
/opt/local/include/X11/extensions/XShm.h:125: error: parse error before '*' token
/opt/local/include/X11/extensions/XShm.h:132: warning: function declaration isn't a prototype
miscrinit.c: In function 'miScreenInit':
miscrinit.c:241: warning: implicit declaration of function 'ShmRegisterFbFuncs'
miscrinit.c:241: warning: nested extern declaration of 'ShmRegisterFbFuncs'
make[1]: *** [miscrinit.lo] Error 1
make: *** [all-recursive] Error 1
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-devel/work/xorg-server-1.5.3-apple14" && make all " returned error 2
Command output: /opt/local/include/X11/extensions/XShm.h:83: warning: type defaults to 'int' in declaration of 'XShmAttach'
/opt/local/include/X11/extensions/XShm.h:83: warning: function declaration isn't a prototype
/opt/local/include/X11/extensions/XShm.h:83: warning: data definition has no type or storage class
/opt/local/include/X11/extensions/XShm.h:85: error: parse error before 'XShmDetach'
/opt/local/include/X11/extensions/XShm.h:86: error: parse error before '*' token
/opt/local/include/X11/extensions/XShm.h:88: warning: type defaults to 'int' in declaration of 'XShmDetach'
/opt/local/include/X11/extensions/XShm.h:88: warning: function declaration isn't a prototype
/opt/local/include/X11/extensions/XShm.h:88: warning: data definition has no type or storage class
/opt/local/include/X11/extensions/XShm.h:90: error: parse error before 'XShmPutImage'
/opt/local/include/X11/extensions/XShm.h:91: error: parse error before '*' token
/opt/local/include/X11/extensions/XShm.h:102: warning: type defaults to 'int' in declaration of 'XShmPutImage'
/opt/local/include/X11/extensions/XShm.h:102: warning: function declaration isn't a prototype
/opt/local/include/X11/extensions/XShm.h:102: warning: data definition has no type or storage class
/opt/local/include/X11/extensions/XShm.h:104: error: parse error before 'XShmGetImage'
/opt/local/include/X11/extensions/XShm.h:105: error: parse error before '*' token
/opt/local/include/X11/extensions/XShm.h:111: warning: type defaults to 'int' in declaration of 'XShmGetImage'
/opt/local/include/X11/extensions/XShm.h:111: warning: function declaration isn't a prototype
/opt/local/include/X11/extensions/XShm.h:111: warning: data definition has no type or storage class
/opt/local/include/X11/extensions/XShm.h:113: error: parse error before '*' token
/opt/local/include/X11/extensions/XShm.h:114: error: parse error before '*' token
/opt/local/include/X11/extensions/XShm.h:122: warning: type defaults to 'int' in declaration of 'XShmCreateImage'
/opt/local/include/X11/extensions/XShm.h:122: warning: function declaration isn't a prototype
/opt/local/include/X11/extensions/XShm.h:122: warning: data definition has no type or storage class
/opt/local/include/X11/extensions/XShm.h:125: error: parse error before '*' token
/opt/local/include/X11/extensions/XShm.h:132: warning: function declaration isn't a prototype
miscrinit.c: In function 'miScreenInit':
miscrinit.c:241: warning: implicit declaration of function 'ShmRegisterFbFuncs'
miscrinit.c:241: warning: nested extern declaration of 'ShmRegisterFbFuncs'
make[1]: *** [miscrinit.lo] Error 1
make: *** [all-recursive] Error 1

Warning: the following items did not execute (for xorg-server-devel): org.macports.activate org.macports.build org.macports.destroot org.macports.install
Error: Status 1 encountered during processing.

Minutes before "port -v selfupdate" (Synchronizing local ports tree from rsync://rsync.macports.org/release/ports/) and "port -v upgrade outdated" (Error: No ports found) were run.

Mac OS X 10.4.11, PPC, chose the macosx and the universal variants of the X server packages in Porticus.

Change History (4)

comment:1 Changed 15 years ago by ballapete (Peter "Pete" Dyballa)

Aftern an update the error has become for xorg-server-1.5.3-apple14:

Fetching xorg-server
Verifying checksum(s) for xorg-server
Extracting xorg-server
Applying patches to xorg-server
Configuring xorg-server
Building xorg-server
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.5.3-apple14" && make all " returned error 2
Command output: /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I../../../include  -DBUILD_DATE=\"20090823\" -DXSERVER_VERSION=\"1.5.3-apple14\" -DX11BINDIR=\"/opt/local/bin\" -I/opt/local/include -I/usr/include -I/opt/local/var/macports/sources/rsync.macports.org/release/ports/x11/
xorg-server/files/dri -I/opt/local/var/macports/sources/rsync.macports.org/release/ports/x11/xorg-server/files/include  -O2 -DROOTLESS_WORKAROUND -DROOTLESS_SAFEALPHA -DNO_ALLOCA -MT launchd_fd.o -MD -MP -MF .deps/launchd_fd.Tpo -c -o launchd_fd.o launchd_fd.c
mv -f .deps/launchd_fd.Tpo .deps/launchd_fd.Po
/usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I../../../include  -DBUILD_DATE=\"20090823\" -DXSERVER_VERSION=\"1.5.3-apple14\" -DX11BINDIR=\"/opt/local/bin\" -I/opt/local/include -I/usr/include -I/opt/local/var
/macports/sources/rsync.macports.org/release/ports/x11/xorg-server/files/dri -I/opt/local/var/macports/sources/rsync.macports.org/release/ports/x11/xorg-server/files/include  -O2 -DROOTLESS_WORKAROUND -DROOTLESS_SAFEALPHA -DNO_ALLOCA -MT mach_startupUser.o -MD -MP -MF .deps/mach_startupUser.Tpo -c -o mach_startupUser.o mach_startupUser.c
mv -f .deps/mach_startupUser.Tpo .deps/mach_startupUser.Po
/bin/sh ../../../libtool --tag=CC   --mode=link /usr/bin/gcc-4.0  -O2 -DROOTLESS_WORKAROUND -DROOTLESS_SAFEALPH
A -DNO_ALLOCA -Wl,-framework,CoreServices -L/opt/local/lib -o Xquartz stub.o launchd_fd.o mach_startupUser.o  -lm 
libtool: link: /usr/bin/gcc-4.0 -O2 -DROOTLESS_WORKAROUND -DROOTLESS_SAFEALPHA -DNO_ALLOCA -Wl,-framework -Wl,CoreServices -o Xquartz stub.o launchd_fd.o mach_startupUser.o  -L/opt/local/lib -lm
/usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I../../../include  -DBUILD_DATE=\"20090823\" -DXSERVER_VERSION=\"1.5.3-apple14\" -DX11BINDIR=\"/opt/local/bin\" -I/opt/local/include -I/usr/include -I/opt/local/v
ar/macports/sources/rsync.macports.org/release/ports/x11/xorg-server/files/dri -I/opt/local/var/macports/sources/rsync.macports.org/release/ports/x11/xorg-server/files/include  -O2 -DROOTLESS_WORKAROUND -DROOTLESS_SAFEALPHA -DNO_ALLOCA -MT bundle-main.o -MD -MP -MF .deps/bundle-main.Tpo -c -o bundle-main.o bundle-main.c
mv -f .deps/bundle-main.Tpo .deps/bundle-main.Po
/usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I../../../include  -DBUILD_DATE=\"20090823\" -DXSERVER_VERSION=\"1.5.3-apple14\" -DX11BINDIR=\"/opt/l
ocal/bin\" -I/opt/local/include -I/usr/include -I/opt/local/var/macports/sources/rsync.macports.org/release/ports/x11/xorg-server/files/dri -I/opt/local/var/macports/sources/rsync.macports.org/release/ports/x11/xorg-server/files/include  -O2 -DROOTLESS_WORKAROUND -DROOTLESS_SAFEALPHA -DNO_ALLOCA -MT mach_startupServer.o -MD -MP -MF .deps/mach_startupServer.Tpo -c -o mach_startupServer.o mach_startupServer.c
mv -f .deps/mach_startupServer.Tpo .deps/mach_startupServer.Po
/bin/sh ../../../libtool --tag=CC   
--mode=link /usr/bin/gcc-4.0  -O2 -DROOTLESS_WORKAROUND -DROOTLESS_SAFEALPHA -DNO_ALLOCA -XCClinker -Objc -Wl,-u,_miDCInitialize -Wl,-framework,Carbon -Wl,-framework,Cocoa -Wl,-framework,CoreAudio -Wl,-framework,IOKit -L/System/Library/Frameworks/OpenGL.framework/Libraries -lGL -Wl,-framework,OpenGL  -L/opt/local/lib -o X11.bin bundle-main.o mach_startupServer.o mach_startupUser.o ../../../hw/xquartz/libXquartz.la ../../../hw/xquartz/xpr/libXquartzXpr.la ../../../dix/dixfonts.lo ../../../miext/rootless/li
brootless.la ../../../hw/xquartz/pbproxy/libxpbproxy.la ../../../mi/libmi.la ../../../os/libos.la ../../../dix/libdix.la ../../../fb/libfb.la ../../../xfixes/libxfixes.la ../../../Xext/libXext.la ../../../config/libconfig.a ../../../dbe/libdbe.la   ../../../render/librender.la ../../../randr/librandr.la ../../../damageext/libdamageext.la ../../../miext/damage/libdamage.la ../../../miext/shadow/libshadow.la ../../../Xi/libXi.la ../../../xkb/libxkb.la ../../../xkb/libxkbstubs.la ../../../dix/libxpstubs.la .
./../../dix/libdix.la ../../../config/libconfig.a ../../../mi/libmi.la ../../../os/libos.la -Wl,-framework,CoreServices -Wl,-framework,ApplicationServices -L/opt/local/lib -lXfont -lm -lfreetype -lz -lXau -lfontenc -lpixman-1 -lXdmcp    -lm  -L/opt/local/lib   -lcrypto -lXplugin ../../../hw/xquartz/GL/libCGLCore.la ../../../glx/libglx.la  -lm 
libtool: link: /usr/bin/gcc-4.0 -O2 -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 -o X11.bin bundle-main.o mach_startupServer.o mach_startupUser.o ../../../dix/.libs/dixfonts.o -Wl,-framework -Wl,CoreServices -Wl,-framework -Wl,ApplicationServices  -L/System/Library/Frameworks/OpenGL.framework/Libraries -lGL -L/opt/local/lib ../../../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 ../../../fb/.libs/libfb.a ../../../xfixes/.libs/libxfixes.a ../../../Xext/.libs/libXext.a ../../../dbe/.libs/libdbe.a ../../../render/.libs/librender.a ../../../randr/.libs/librandr.a ../../../damageext/.libs/libdamageext.a ../../../miext/damage/.libs/libdamage.a ../../../miext/shadow/.libs/libshadow.a ../../../Xi/.libs/libXi.a ../../../xkb/.libs/libxkb.a ../../../xkb/.libs/libxkbstub
s.a ../../../dix/.libs/libxpstubs.a ../../../dix/.libs/libdix.a ../../../config/libconfig.a ../../../mi/.libs/libmi.a ../../../os/.libs/libos.a /opt/local/lib/libXfont.dylib -lbz2 /opt/local/lib/libfreetype.dylib /opt/local/lib/libXau.dylib /opt/local/lib/libfontenc.dylib -lz /opt/local/lib/libpixman-1.dylib /opt/local/lib/libXdmcp.dylib -lcrypto -lXplugin ../../../hw/xquartz/GL/.libs/libCGLCore.a ../../../glx/.libs/libglx.a -lm -framework ApplicationServices
/usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/l
d: warning multiple definitions of symbol _Xalloc
../../../os/.libs/libos.a(utils.o) definition of _Xalloc in section (__TEXT,__text)
/opt/local/lib/libXdmcp.dylib(Alloc.o) definition of _Xalloc
/usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: warning multiple definitions of symbol _Xfree
../../../os/.libs/libos.a(utils.o) definition of _Xfree in section (__TEXT,__text)
/opt/local/lib/libXdmcp.dylib(Alloc.o) definition of _Xfree
/usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: warning multiple definitions
 of symbol _Xrealloc
../../../os/.libs/libos.a(utils.o) definition of _Xrealloc in section (__TEXT,__text)
/opt/local/lib/libXdmcp.dylib(Alloc.o) definition of _Xrealloc
/usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: Undefined symbols:
_glProgramEnvParameters4fvEXT
_glProgramLocalParameters4fvEXT
collect2: ld returned 1 exit status
make[4]: *** [X11.bin] Error 1
make[3]: *** [all] Error 2
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1
Error: 
Unable to upgrade port: 1

comment:2 Changed 15 years ago by mf2k (Frank Schima)

Description: modified (diff)
Owner: changed from macports-tickets@… to jeremyhu@…
Port: xorg-server xorg-server-devel added

comment:3 Changed 15 years ago by jmroot (Joshua Root)

Please remember to use WikiFormatting (or even better for lengthy output, attachments).

comment:4 Changed 15 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.