Hi, I noticed that when emerging mozilla-1.2.1-r2, compilation of Xrender fails with an error as shown below. Mozilla continues to build though, and builds fine, and runs fine, so I don't know how serious this error is. Everything seems to work, so far ... >>> emerge (1 of 1) net-www/mozilla-1.2.1-r2 to / >>> md5 ;-) mozilla-source-1.2.1.tar.bz2 >>> md5 ;-) enigmail-0.71.0.tar.gz >>> md5 ;-) ipc-1.0.1.tar.gz >>> md5 ;-) fcpackage.2_1.tar.gz >>> Unpacking source... >>> Unpacking mozilla-source-1.2.1.tar.bz2 >>> Unpacking enigmail-0.71.0.tar.gz >>> Unpacking ipc-1.0.1.tar.gz >>> Unpacking fcpackage.2_1.tar.gz * Applying mozilla-1.0.1-platform.patch... [ ok ] * Applying mozilla-1.2b-default-plugin-less-annoying.patch.bz2... [ ok ] * Applying mozilla-1.2b-over-the-spot.patch.bz2... [ ok ] * Applying mozilla-1.2b-freetype.patch.bz2... [ ok ] * Applying mozilla-1.2b-wallet.patch.bz2... [ ok ] * Applying mozilla-1.2b-Xft-includes.patch.bz2... [ ok ] >>> Source unpacked. * Building with Xft2.0 support! * Compiling Xrender... imake -DUseInstalled -I/usr/X11R6/lib/X11/config /usr/X11R6/lib/X11/config/linux.cf:305: warning: "BuildLibGlxWithoutPIC" redefined + mkdir unshared rm -f Xrender.o unshared/Xrender.o gcc -c -I./exports/include -I/usr/X11R6/include/X11 -I/usr/X11R6/include/X11/extensions -I/usr/X11R6/include -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -DFUNCPROTO=15 -DNARROWPROTO -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -DMALLOC_0_RETURNS_NULL -O2 -fno-strength-reduce Xrender.c -o unshared/Xrender.o Xrender.c: In function `XRenderQueryFormats': Xrender.c:290: `SubPixelUnknown' undeclared (first use in this function) Xrender.c:290: (Each undeclared identifier is reported only once Xrender.c:290: for each function it appears in.) Xrender.c: In function `XRenderQuerySubpixelOrder': Xrender.c:339: `SubPixelUnknown' undeclared (first use in this function) make: *** [Xrender.o] Error 1 cp: cannot stat `libXrender_moz.so*': No such file or directory * Configuring Xft2.0... checking for gcc... gcc ----- *snip* -----
This should be fixed in mozilla-1.2.1-r3. Please try and let me know, thanks.
No, I still get the exact same error with -r3.
Sorry, had the updated render.h installed here. If you update and the following is in ChangeLog, it should be fixed: ----------- 16 Dec 2002; Martin Schlemmer <azarah@gentoo.org> mozilla-1.2.1-r3.ebuild : Update mozilla-1.2.1-Xrender-includes.patch.bz2 to truely fix #12223.
Now I get another error, see below: >>> Source unpacked. * Building with Xft2.0 support! * Compiling Xrender... imake -DUseInstalled -I/usr/X11R6/lib/X11/config imake: No such file or directory imake: Cannot exec /lib/cpp. Stop. imake: Exit code 1. Stop. make: *** No targets. Stop. cp: cannot stat `libXrender_moz.so*': No such file or directory
Err, what version/revision of gcc ?
gcc-3.2.1 (-r0)
Try the following: # emerge rsync # rm -f /lib/cpp /usr/bin/cc # cp /usr/portage/sys-devel/gcc/files/cpp /lib # cp /usr/portage/sys-devel/gcc/files/cc /usr/bin # chmod +x /lib/cpp /usr/bin/cc I did post to -user and -dev about the cause of this ...
Ah yes, I *just* noticed it and was posting my comments here at the same time as you, Bugzilla reported a "mid-air collision" :-) Well, now compilation of Xrender starts but still fails: * Compiling Xrender... imake -DUseInstalled -I/usr/X11R6/lib/X11/config /usr/X11R6/lib/X11/config/linux.cf:305: warning: "BuildLibGlxWithoutPIC" redefined + mkdir unshared rm -f Xrender.o unshared/Xrender.o gcc -c -I. -I./exports/include -I/usr/X11R6/include/X11 -I/usr/X11R6/include/X11/extensions -I/usr/X11R6/include -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -DFUNCPROTO=15 -DNARROWPROTO -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -DMALLOC_0_RETURNS_NULL -O2 -fno-strength-reduce Xrender.c -o unshared/Xrender.o rm -f Xrender.o gcc -c -O2 -fno-strength-reduce -I. -I./exports/include -I/usr/X11R6/include/X11 -I/usr/X11R6/include/X11/extensions -I/usr/X11R6/include -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -DFUNCPROTO=15 -DNARROWPROTO -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -DMALLOC_0_RETURNS_NULL -fPIC Xrender.c rm -f Color.o unshared/Color.o gcc -c -I. -I./exports/include -I/usr/X11R6/include/X11 -I/usr/X11R6/include/X11/extensions -I/usr/X11R6/include -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -DFUNCPROTO=15 -DNARROWPROTO -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -DMALLOC_0_RETURNS_NULL -O2 -fno-strength-reduce Color.c -o unshared/Color.o rm -f Color.o gcc -c -O2 -fno-strength-reduce -I. -I./exports/include -I/usr/X11R6/include/X11 -I/usr/X11R6/include/X11/extensions -I/usr/X11R6/include -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -DFUNCPROTO=15 -DNARROWPROTO -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -DMALLOC_0_RETURNS_NULL -fPIC Color.c rm -f Composite.o unshared/Composite.o gcc -c -I. -I./exports/include -I/usr/X11R6/include/X11 -I/usr/X11R6/include/X11/extensions -I/usr/X11R6/include -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -DFUNCPROTO=15 -DNARROWPROTO -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -DMALLOC_0_RETURNS_NULL -O2 -fno-strength-reduce Composite.c -o unshared/Composite.o rm -f Composite.o gcc -c -O2 -fno-strength-reduce -I. -I./exports/include -I/usr/X11R6/include/X11 -I/usr/X11R6/include/X11/extensions -I/usr/X11R6/include -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -DFUNCPROTO=15 -DNARROWPROTO -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -DMALLOC_0_RETURNS_NULL -fPIC Composite.c rm -f Cursor.o unshared/Cursor.o gcc -c -I. -I./exports/include -I/usr/X11R6/include/X11 -I/usr/X11R6/include/X11/extensions -I/usr/X11R6/include -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -DFUNCPROTO=15 -DNARROWPROTO -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -DMALLOC_0_RETURNS_NULL -O2 -fno-strength-reduce Cursor.c -o unshared/Cursor.o rm -f Cursor.o gcc -c -O2 -fno-strength-reduce -I. -I./exports/include -I/usr/X11R6/include/X11 -I/usr/X11R6/include/X11/extensions -I/usr/X11R6/include -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -DFUNCPROTO=15 -DNARROWPROTO -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -DMALLOC_0_RETURNS_NULL -fPIC Cursor.c rm -f Glyph.o unshared/Glyph.o gcc -c -I. -I./exports/include -I/usr/X11R6/include/X11 -I/usr/X11R6/include/X11/extensions -I/usr/X11R6/include -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -DFUNCPROTO=15 -DNARROWPROTO -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -DMALLOC_0_RETURNS_NULL -O2 -fno-strength-reduce Glyph.c -o unshared/Glyph.o rm -f Glyph.o gcc -c -O2 -fno-strength-reduce -I. -I./exports/include -I/usr/X11R6/include/X11 -I/usr/X11R6/include/X11/extensions -I/usr/X11R6/include -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -DFUNCPROTO=15 -DNARROWPROTO -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -DMALLOC_0_RETURNS_NULL -fPIC Glyph.c rm -f Picture.o unshared/Picture.o gcc -c -I. -I./exports/include -I/usr/X11R6/include/X11 -I/usr/X11R6/include/X11/extensions -I/usr/X11R6/include -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -DFUNCPROTO=15 -DNARROWPROTO -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -DMALLOC_0_RETURNS_NULL -O2 -fno-strength-reduce Picture.c -o unshared/Picture.o Picture.c: In function `XRenderSetPictureTransform': Picture.c:208: `X_RenderSetPictureTransform' undeclared (first use in this function) Picture.c:208: (Each undeclared identifier is reported only once Picture.c:208: for each function it appears in.) make: *** [Picture.o] Error 1 cp: cannot stat `libXrender_moz.so*': No such file or directory
Err, yes, im an idiot. Your cue should be: ------------- 17 Dec 2002; Martin Schlemmer <azarah@gentoo.org> mozilla-1.2.1-r3.ebuild : Update mozilla-1.2.1-Xrender-includes.patch.bz2 to hopefully (?) fix #12223. ------------- Thanks.
Yes! Xrender compiles without errors :-) Thanks
Great.