Subject: pkg/23859: pkgsrc/sysutils/cdrecord fails to build on OS X 10.3.2
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <firstname.lastname@example.org>
Date: 12/23/2003 16:30:15
>Synopsis: pkgsrc/sysutils/cdrecord fails to build on OS X 10.3.2
>Arrival-Date: Tue Dec 23 16:31:00 UTC 2003
>Originator: Erik Berls
>Release: pkgsrc -current
Darwin koolaid.local 7.2.0 Darwin Kernel Version 7.2.0: Thu Dec 11 16:20:23 PST 2003; root:xnu/xnu-517.3.7.obj~1/RELEASE_PPC Power Macintosh powerpc
The cdrecord problem fails to build out of pkgsrc, the culprit is in librscg:
==> COMPILING "OBJ/powerpc-darwin-gcc/scsi-remote.o"
scsi-remote.c: In function `rscsigetconn':
scsi-remote.c:526: warning: assignment makes pointer from integer without a cast
scsi-remote.c:559: error: dereferencing pointer to incomplete type
scsi-remote.c:564: error: dereferencing pointer to incomplete type
scsi-remote.c: In function `_rcmdrsh':scsi-remote.c:1048: error: `AF_UNIX' undeclared (first use in this function)
scsi-remote.c:1048: error: (Each undeclared identifier is reported only oncescsi-remote.c:1048: error: for each function it appears in.)
scsi-remote.c:1048: error: `SOCK_STREAM' undeclared (first use in this function)scsi-remote.c:1048: error: `PF_UNSPEC' undeclared (first use in this function)
HAVE_NETDB_H and HAVE_SYS_SOCKET_H are undef'ed in xconfig.h when they should be defined. configure is thinking they dont exist because the AC_HEADERS is failing to compile the test program. The logfile shows that the reason it is not compiling is the wrong number of arguments to btodb and dbtob macros defined in param.h. It appears that __APPLE__ is getting undefined in part of the process such that the wrong macro version is defined.
Unfortunately, this package runs its configure inline with the build step, making debugging and patching harder.
cd pkgsrc/systuils/cdrecord; bmake
Beat configure about the head and shoulders such that it correctly builds the test programs, thus registering that those two header files exist.