[Xquartz-dev] Problems compiling xorg-server-1.3.0-apple10

Jeremy Huddleston jeremyhu at freedesktop.org
Sat Feb 23 14:39:57 PST 2008


Actually, I think I know the issue...

Do:
grep RRNumberRequests /usr/X11/include/X11/extensions/randr.h

I'm betting you have an old randrproto (meaning that will not output  
anything).  The OS-X update includes only binary updates.  The  
corresponding header updates will come with a new Xcode release  
whenever that happens.

You can "fix" this by installing 2.1.3 first which has the updated  
headers in 2.1.4.

--Jeremy

On Feb 23, 2008, at 12:04, Jaka Jančar wrote:

> Yes, I have both :/
>
> I have tried setting PATH to only:
>   "/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/ 
> X11R6/bin"
>
> The other environment variables that you sanitize  
> (CPLUS_INCLUDE_PATH, C_INCLUDE_PATH, OBJC_INCLUDE_PATH,  
> PKG_CONFIG_PATH) are empty.
>
> Any more ideas?
>
> Jaka
>
> On 23. Feb 2008, at 20:22, Jeremy Huddleston wrote:
>
>> Do you have macports or fink?  It looks like you're pulling in some  
>> old headers.  Check out:
>> http://svn.macosforge.org/repository/xquartz/trunk/compile-xserver.sh
>>
>> That shows how I sanitize my environment when compiling.
>>
>> On Feb 23, 2008, at 10:48, Jaka Jančar wrote:
>>
>>> Hi!
>>>
>>> I'm trying to compile Xquartz on 10.5.2, but I am getting the  
>>> following error:
>>>
>>> Making all in randr
>>> /bin/sh ../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H - 
>>> I. -I../include    -DHAVE_DIX_CONFIG_H -D_BSD_SOURCE -DHAS_FCHOWN - 
>>> DHAS_STICKY_DIR_BIT -I/usr/X11/include/pixman-1 -I/usr/X11/include/ 
>>> freetype2   -I../include -I../include -I../Xext -I../composite - 
>>> I../damageext -I../xfixes -I../Xi -I../mi -I../miext/shadow  -I../ 
>>> miext/damage -I../render -I../randr -I../fb -arch i386 -pipe - 
>>> DROOTLESS_WORKAROUND -DNO_ALLOCA -c -o mirandr.lo mirandr.c
>>> mkdir .libs
>>> gcc -DHAVE_CONFIG_H -I. -I../include -DHAVE_DIX_CONFIG_H - 
>>> D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -I/usr/X11/include/ 
>>> pixman-1 -I/usr/X11/include/freetype2 -I../include -I../include - 
>>> I../Xext -I../composite -I../damageext -I../xfixes -I../Xi -I../mi  
>>> -I../miext/shadow -I../miext/damage -I../render -I../randr -I../fb  
>>> -arch i386 -pipe -DROOTLESS_WORKAROUND -DNO_ALLOCA -c mirandr.c  - 
>>> fno-common -DPIC -o .libs/mirandr.o
>>> In file included from mirandr.c:34:
>>> randrstr.h:64: error: 'RRNumberRequests' undeclared here (not in a  
>>> function)
>>> randrstr.h:80: error: syntax error before 'xRRModeInfo'
>>> randrstr.h:80: warning: no semicolon at end of struct or union
>>> randrstr.h:83: error: syntax error before '}' token
>>> randrstr.h:441: error: syntax error before '*' token
>>> randrstr.h:611: error: syntax error before '*' token
>>> mirandr.c: In function 'miRandRInit':
>>> mirandr.c:107: error: 'xRRModeInfo' undeclared (first use in this  
>>> function)
>>> mirandr.c:107: error: (Each undeclared identifier is reported only  
>>> once
>>> mirandr.c:107: error: for each function it appears in.)
>>> mirandr.c:107: error: syntax error before 'modeInfo'
>>> mirandr.c:127: error: 'modeInfo' undeclared (first use in this  
>>> function)
>>> mirandr.c:149: error: 'RR_Connected' undeclared (first use in this  
>>> function)
>>> make[1]: *** [mirandr.lo] Error 1
>>> make: *** [all-recursive] Error 1
>>>
>>> I have installed http://xquartz.macosforge.org/downloads/X11-2.1.4.pkg 
>>> .
>>>
>>> Here is exactly what I'm doing:
>>>
>>> --
>>> curl -O http://xquartz.macosforge.org/downloads/xorg-server-1.3.0-apple10.tar.bz2
>>> curl -O http://surfnet.dl.sourceforge.net/sourceforge/mesa3d/MesaLib-6.5.2.tar.bz2
>>>
>>> tar -jxf MesaLib-6.5.2.tar.bz2
>>> tar -jxf xorg-server-1.3.0-apple10.tar.bz2
>>>
>>> cd xorg-server-1.3.0-apple10
>>>
>>> export ACLOCAL="aclocal -I /usr/X11/share/aclocal"
>>> export PKG_CONFIG_PATH=/usr/X11/lib/pkgconfig
>>>
>>> export CFLAGS="-arch i386 -pipe"
>>> export LDFLAGS="-arch i386 -pipe"
>>>
>>> ./configure --prefix=/Users/jaka/Temp/x/x_install_root --with-mesa- 
>>> source=`pwd`/../Mesa-6.5.2 --disable-dependency-tracking
>>> make
>>> --
>>>
>>> Am I missing something?
>>>
>>> Regards,
>>> Jaka Jancar
>>> Slovenia
>>> _______________________________________________
>>> Do not post admin requests to the list. They will be ignored.
>>> X11-users mailing list      (X11-users at lists.apple.com)
>>> Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/x11-users/jeremyhu%40freedesktop.org
>>>
>>> This email sent to jeremyhu at freedesktop.org
>>
>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3040 bytes
Desc: not available
Url : http://lists.macosforge.org/pipermail/xquartz-dev/attachments/20080223/9abc2aef/attachment-0001.bin 


More information about the Xquartz-dev mailing list