Subject: XFree86-clients and :37:17: missing terminating "
To: None <tech-pkg@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 04/24/2004 13:26:18
I am trying to build XFree86-clients under FreeBSD with
gcc (GCC) 3.3.3 [FreeBSD] 20031106

When building xc/programs/xdm/resource.c it fails with:

  <command line>:37:17: missing terminating " character

Since it says "command line" and since I can't find the bad gcc 3 use of
quotes wrapping to new line, I assume this is caused by something to do
with the quoting added to the command that pkgsrc runs.

.work.log ends with:

<.> /usr/pkgsrc/x11/XFree86-clients/work/.gcc/bin/gcc -c -O2 -ansi
-Wno-system-headers -Dasm=__asm -Wall -Wpointer-arith -Wundef
-I/usr/pkgsrc/x11/XFree86-clients/work/xc
-I/usr/pkgsrc/x11/XFree86-clients/work/xc/exports/include
-I/usr/pkgsrc/x11/XFree86-clients/work/.buildlink/include -DCSRG_BASED
-DFUNCPROTO=15 -DNARROWPROTO -DBINDIR=\"/usr/pkg/X11R6/bin\"
-DXDMDIR=\"/usr/pkg/X11R6/lib/X11/xdm\" -DUSE_PAM -DTCPCONN -DUNIXCONN
-DHAS_STICKY_DIR_BIT -DHAS_FCHOWN -DIPv6 -DGREET_USER_STATIC
-DFRAGILE_DEV_MEM -DOSMAJORVERSION=5 -DOSMINORVERSION=2
-DHAS_SETUSERCONTEXT -DXPM -DUSE_XINERAMA -DHAS_SETPROCTITLE
-DHAS_GETIFADDRS -UIPv6 -DHAS_MKSTEMP "-DDEF_SERVER_LINE=\":0 local
/usr/pkg/X11R6/bin/X :0\"" -DXRDB_PROGRAM=\"/usr/pkg/X11R6/bin/xrdb\"
"-DDEF_SESSION=\"/usr/pkg/X11R6/bin/xterm -ls\""
-DDEF_USER_PATH=\"/bin:/usr/bin:/sbin:/usr/sbin:/usr/pkg/X11R6/bin:/usr/gnu/bin:/usr/local/bin\"
-DDEF_SYSTEM_PATH=\"/bin:/usr/bin:/sbin:/usr/sbin:/usr/pkg/X11R6/bin\"
-DDEF_SYSTEM_SHELL=\"/bin/sh\"
-DDEF_FAILSAFE_CLIENT=\"/usr/pkg/X11R6/bin/xterm\"
-DDEF_XDM_CONFIG=\"/usr/pkg/X11R6/lib/X11/xdm/xdm-config\"
-DDEF_CHOOSER=\"/usr/pkg/X11R6/lib/X11/xdm/chooser\"
-DDEF_AUTH_DIR=\"/usr/pkg/X11R6/lib/X11/xdm\"
-DDEF_GREETER_LIB=\"-L/usr/pkgsrc/x11/XFree86-clients/work/.x11-buildlink/lib/X11/xdm
-lXdmGreet\" resource.c
-L/usr/pkgsrc/x11/XFree86-clients/work/.buildlink/lib


I have built this over ten times with gcc 3.x versions under Linux.

Any ideas?

   Jeremy C. Reed
   http://bsd.reedmedia.net/