Subject: cdrecord-xcdroast build failure
To: None <tech-pkg@NetBSD.org>
From: Julio M. Merino Vidal <jmmv@menta.net>
List: tech-pkg
Date: 09/25/2004 23:02:01
Hi all,

[ CC'ing jlam@ because this looks like a problem with the new wrappers or a
  change in their "semantics" ]

Building cdrecord-xcdroast results in an error like:

checking for executable suffix... configure: error: installation or configuration problem: compiler cannot create executables.
gmake[1]: *** [../incs/i386-netbsd-cc/rules.cnf] Error 1
gmake[1]: Leaving directory `/var/build/pkgsrc/sysutils/cdrecord-xcdroast/work/cdrtools-2.01/scgcheck'
gmake: *** [all] Error 2
*** Error code 2

Looking at work.log, the last command executed is:

<.> /var/build/pkgsrc/sysutils/cdrecord-xcdroast/work/.ccache/bin/gcc -o conftes
t -O -I. -IOBJ/i386-netbsd-cc -I../incs/i386-netbsd-cc -I../include -I../cdrecor
d -L../libs/i386-netbsd-cc /lib conftest.c -I/var/build/pkgsrc/sysutils/cdrecord
-xcdroast/work/.buildlink/include -L/var/build/pkgsrc/sysutils/cdrecord-xcdroast
/work/.buildlink/lib

As you can see, there is a '/lib' in there; this is what's causing the failure
(as seen in the config.log created by configure).

If I remove the following lines from the Makefile:

.if ${LOCALBASE} != "/opt/schily"
BUILDLINK_TRANSFORM=    rmdir:/opt/schily
.endif

the package builds correctly.  AFAICS in gen-transform.sh, the 'rmdir'
command should 'Remove all "dash" options that contain "dir" or "dir/*".',
but this seems to fail to remove dir/*.  I.e., the original call to the
compiler had a -L/opt/schily/lib argument in it, which gets converted to
the /lib string.

Cheers

-- 
Julio M. Merino Vidal <jmmv@menta.net>
http://www.livejournal.com/users/jmmv/
The NetBSD Project - http://www.NetBSD.org/