Subject: pkg/37015: x11/modular-xorg-server doesn't build on NetBSD/amd64
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <ishit@oak.dti.ne.jp>
List: pkgsrc-bugs
Date: 09/21/2007 21:35:00
>Number:         37015
>Category:       pkg
>Synopsis:       x11/modular-xorg-server doesn't build on NetBSD/amd64
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Sep 21 21:35:00 +0000 2007
>Originator:     ISIHARA Takanori
>Release:        NetBSD/amd64 4.0_RC1
>Organization:
Nagoya *BSD Users' Group
>Environment:
NetBSD ishitPc6.home 4.0_RC1 NetBSD 4.0_RC1 (ISHITPC6) #1: Sun Sep 16 02:07:36 JST 2007  sysbuild@ishitPc6.home:/opt/sysbuild/netbsd-4/obj/amd64/sys/arch/amd64/compile/ISHITPC6 amd64

>Description:
I install NetBSD/amd64 4.0_RC1 without x*.tgz sets files to my NetBSD box.
x11/modular-xorg-server doesn't build on my NetBSD box.

>How-To-Repeat:
cd /usr/pkgsrc/x11/modular-xorg-server
make
<snip>
then mv -f ".deps/rrmode.Tpo" ".deps/rrmode.Plo"; else rm -f ".deps/rrmode.Tpo"; exit 1; fi
 cc -DHAVE_CONFIG_H -I. -I../include -DGLX_GLXEXT_LEGACY -I/opt/pkgsrc/x11/modular-xorg-server/work.x86_64/.buildlink/include -I/opt/pkgsrc/x11/modular-xorg-server/work.x86_64/.buildlink/include/freetype2 -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 -D_POSIX_THREAD_SAFE_FUNCTIONS -I../Xext -I../composite -I../damageext -I../xfixes -I../Xi -I../mi -I../miext/shadow -I../miext/damage -I../render -I../randr -I../fb -O2 -pipe -MT rrmode.lo -MD -MP -MF .deps/rrmode.Tpo -c rrmode.c  -fPIC -DPIC -o .libs/rrmode.o
rrmode.c: In function 'ProcRRCreateMode':
rrmode.c:311: error: 'xRRCreateModeReply' has no member named 'pad0'
gmake[1]: *** [rrmode.lo] Error 1
gmake[1]: Leaving directory `/opt/pkgsrc/x11/modular-xorg-server/work.x86_64/xorg-server-1.3.0.0/randr'
gmake: *** [all-recursive] Error 1
*** Error code 2

Stop.
make: stopped in /opt/pkgsrc/x11/modular-xorg-server
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/x11/modular-xorg-server

>Fix:
I don't know.

but this ad-hoc modified, I can build and use modular-xorg-server.

--- randr/rrmode.c.orig	2007-02-20 08:32:56.000000000 +0900
+++ randr/rrmode.c
@@ -308,7 +308,7 @@ ProcRRCreateMode (ClientPtr client)
 	return error;
 
     rep.type = X_Reply;
-    rep.pad0 = 0;
+    /* rep.pad0 = 0; */
     rep.sequenceNumber = client->sequence;
     rep.length = 0;
     rep.mode = mode->mode.id;