Opened 15 years ago

Closed 15 years ago

#20577 closed defect (fixed)

xorg-libXext fails to build: Xge.c needs Xge.h

Reported by: jones.chris.g@… Owned by: jeremyhu (Jeremy Huddleston Sequoia)
Priority: Normal Milestone:
Component: ports Version: 1.7.1
Keywords: Cc:
Port: xorg-libXext

Description

The error

$ sudo port install xorg-libXext
--->  Fetching xorg-libXext
--->  Verifying checksum(s) for xorg-libXext
--->  Extracting xorg-libXext
--->  Applying patches to xorg-libXext
--->  Configuring xorg-libXext
--->  Building xorg-libXext
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-libXext/work/libXext-1.0.5" && make all " returned error 2
Command output: libtool: compile:  /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I.. -I/opt/local/include -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -I/opt/local/include -O2 -MT XTestExt1.lo -MD -MP -MF .deps/XTestExt1.Tpo -c XTestExt1.c  -fno-common -DPIC -o .libs/XTestExt1.o
XTestExt1.c:154: warning: no previous prototype for 'XTestFakeInput'
XTestExt1.c:239: warning: no previous prototype for 'XTestGetInput'
XTestExt1.c:297: warning: no previous prototype for 'XTestStopInput'
XTestExt1.c:351: warning: no previous prototype for 'XTestReset'
XTestExt1.c:409: warning: no previous prototype for 'XTestQueryInputSize'
XTestExt1.c:644: warning: no previous prototype for 'XTestPressKey'
XTestExt1.c:676: warning: no previous prototype for 'XTestPressButton'
XTestExt1.c:890: warning: no previous prototype for 'XTestMovePointer'
XTestExt1.c:1295: warning: no previous prototype for 'XTestFlush'
libtool: compile:  /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I.. -I/opt/local/include -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -I/opt/local/include -O2 -MT XTestExt1.lo -MD -MP -MF .deps/XTestExt1.Tpo -c XTestExt1.c -o XTestExt1.o >/dev/null 2>&1
mv -f .deps/XTestExt1.Tpo .deps/XTestExt1.Plo
/bin/sh ../libtool --tag=CC   --mode=compile /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I..   -I/opt/local/include -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -I/opt/local/include    -O2 -MT Xcup.lo -MD -MP -MF .deps/Xcup.Tpo -c -o Xcup.lo Xcup.c
libtool: compile:  /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I.. -I/opt/local/include -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -I/opt/local/include -O2 -MT Xcup.lo -MD -MP -MF .deps/Xcup.Tpo -c Xcup.c  -fno-common -DPIC -o .libs/Xcup.o
libtool: compile:  /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I.. -I/opt/local/include -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -I/opt/local/include -O2 -MT Xcup.lo -MD -MP -MF .deps/Xcup.Tpo -c Xcup.c -o Xcup.o >/dev/null 2>&1
mv -f .deps/Xcup.Tpo .deps/Xcup.Plo
/bin/sh ../libtool --tag=CC   --mode=compile /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I..   -I/opt/local/include -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -I/opt/local/include    -O2 -MT Xdbe.lo -MD -MP -MF .deps/Xdbe.Tpo -c -o Xdbe.lo Xdbe.c
libtool: compile:  /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I.. -I/opt/local/include -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -I/opt/local/include -O2 -MT Xdbe.lo -MD -MP -MF .deps/Xdbe.Tpo -c Xdbe.c  -fno-common -DPIC -o .libs/Xdbe.o
libtool: compile:  /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I.. -I/opt/local/include -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -I/opt/local/include -O2 -MT Xdbe.lo -MD -MP -MF .deps/Xdbe.Tpo -c Xdbe.c -o Xdbe.o >/dev/null 2>&1
mv -f .deps/Xdbe.Tpo .deps/Xdbe.Plo
/bin/sh ../libtool --tag=CC   --mode=compile /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I..   -I/opt/local/include -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -I/opt/local/include    -O2 -MT Xge.lo -MD -MP -MF .deps/Xge.Tpo -c -o Xge.lo Xge.c
libtool: compile:  /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I.. -I/opt/local/include -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -I/opt/local/include -O2 -MT Xge.lo -MD -MP -MF .deps/Xge.Tpo -c Xge.c  -fno-common -DPIC -o .libs/Xge.o
Xge.c:43:32: error: X11/extensions/Xge.h: No such file or directory
Xge.c:132: warning: no previous prototype for '_xgeCheckExtInit'
Xge.c:299: warning: no previous prototype for 'xgeExtRegister'
Xge.c:337: warning: no previous prototype for 'XGEQueryExtension'
Xge.c:355: warning: no previous prototype for 'XGEQueryVersion'
make[2]: *** [Xge.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

And

$ sudo port provides /opt/local/include/X11/extensions/Xge.h
/opt/local/include/X11/extensions/Xge.h does not exist.

Interestingly,

$ ls /opt/local/include/X11/extensions/ge.h 
/opt/local/include/X11/extensions/ge.h

Marking priority "High" because python transitively depends on this port, and modern *NIX systems are near useless without python.

Change History (2)

comment:1 Changed 15 years ago by blb@…

Owner: changed from macports-tickets@… to jeremyhu@…
Priority: HighNormal

What does

$ port installed xorg-xextproto

say (that is the port which provides Xge.h)?

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

Resolution: fixed
Status: newclosed

r55035 ... only affects users who have not installed the X11 SDK with XCode... If people have installed that SDK (or Xquartz from MacOSForge), it will find the header in /usr/include/X11.

Updating to the latest rc for libXext fixes the problem because those headers are now packaged with libXext.

Note: See TracTickets for help on using tickets.