Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 12223 - mozilla-1.2.1-r2 - Xrender compilation fails
Summary: mozilla-1.2.1-r2 - Xrender compilation fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: Normal minor (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-12-15 19:02 UTC by Throstur Svanbergsson
Modified: 2003-02-04 19:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Throstur Svanbergsson 2002-12-15 19:02:20 UTC
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* -----
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2002-12-15 20:30:11 UTC
This should be fixed in mozilla-1.2.1-r3. Please try and let me know, thanks.
Comment 2 Throstur Svanbergsson 2002-12-16 03:46:47 UTC
No, I still get the exact same error with -r3. 
Comment 3 Martin Schlemmer (RETIRED) gentoo-dev 2002-12-16 13:28:44 UTC
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.

Comment 4 Throstur Svanbergsson 2002-12-16 15:52:51 UTC
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 
 
Comment 5 Martin Schlemmer (RETIRED) gentoo-dev 2002-12-16 16:05:36 UTC
Err, what version/revision of gcc ?
Comment 6 Throstur Svanbergsson 2002-12-16 16:51:15 UTC
gcc-3.2.1 (-r0) 
Comment 7 Martin Schlemmer (RETIRED) gentoo-dev 2002-12-16 16:59:23 UTC
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 ...
Comment 8 Throstur Svanbergsson 2002-12-16 17:01:13 UTC
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  
  
Comment 9 Martin Schlemmer (RETIRED) gentoo-dev 2002-12-16 17:34:48 UTC
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.
Comment 10 Throstur Svanbergsson 2002-12-16 19:22:56 UTC
Yes! Xrender compiles without errors :-)  Thanks 
Comment 11 Martin Schlemmer (RETIRED) gentoo-dev 2002-12-17 07:22:48 UTC
Great.