Patches item #301184, was opened at 2005-02-13 17:54 You can respond by visiting: http://alioth.debian.org/tracker/?func=detail&atid=410472&aid=301184&group_id=30628
Category: several Group: unreviewed Status: Open Resolution: None Priority: 5 Submitted By: Barry deFreese (bddebian-guest) Assigned to: Nobody (None) Summary: FTBFS - nas-1.7 Initial Comment: Author: Barry deFreese <[EMAIL PROTECTED]> Source: nas Status: ugly but builds Categories: posix Strip-Level: -p1 OK, I was able to build nas-1.7. Unfortunately I copied a soundcard.h directly from Debian GNU/Linux which allowed me to build. However, most likely, the ioctls are incorrect. diff -urp nas-1.7.old/lib/audio/Alibnet.h nas-1.7/lib/audio/Alibnet.h --- nas-1.7.old/lib/audio/Alibnet.h 2005-02-07 08:44:18.000000000 -0500 +++ nas-1.7/lib/audio/Alibnet.h 2005-02-07 08:42:21.000000000 -0500 @@ -43,6 +43,10 @@ without express or implied warranty. * Xlibnet.h - Xlib networking include files for UNIX Systems. */ +#ifndef NOFILES_MAX +# define NOFILES_MAX 255 +#endif + #ifndef _NCD_ALIBNET_H_ #define _NCD_ALIBNET_H_ diff -urp nas-1.7.old/server/Imakefile nas-1.7/server/Imakefile --- nas-1.7.old/server/Imakefile 2005-02-07 08:44:41.000000000 -0500 +++ nas-1.7/server/Imakefile 2005-02-07 08:42:37.000000000 -0500 @@ -91,7 +91,7 @@ RCMANDIR = $(MANDIR) #define BuildSGIServer #endif -#if defined(HPArchitecture) && !defined(LinuxArchitecture) && !defined(GNUArchitecture) +#if defined(HPArchitecture) && !defined(LinuxArchitecture) && !defined(GNUArchitecture) && !defined(GNUMachArchitecture) #define CanBuildAuServer YES ALL1 = nasd RCMANDIR = $(MANDIR) @@ -99,10 +99,10 @@ RCMANDIR = $(MANDIR) #endif -#if defined(i386SVR4Architecture) || defined(__FreeBSD__) || defined(FreeBSDArchitecture) || defined(LinuxArchitecture) || defined(GNUArchitecture) || defined(i386BsdArchitecture) || defined(USLArchitecture) || defined(cygwinArchitecture) +#if defined(i386SVR4Architecture) || defined(__FreeBSD__) || defined(FreeBSDArchitecture) || defined(LinuxArchitecture) || defined(GNUArchitecture) || defined(i386BsdArchitecture) || defined(USLArchitecture) || defined(cygwinArchitecture) || defined(GNUMachArchitecture) # define CanBuildAuServer YES -# if defined(LinuxArchitecture) || defined(GNUArchitecture) +# if defined(LinuxArchitecture) || defined(GNUArchitecture) || defined(GNUMachArchitecture) RCMANDIR = $(FILEMANDIR) RCMANSUFFIX = 5nas # else ---------------------------------------------------------------------- Comment By: Christopher Bodenstein (physicman-guest) Date: 2005-05-09 15:40 Message: Logged In: YES user_id=11528 I was able to get a package without having to import a soundcard.h directly from Linux with the following patch. Note that I had to comment two lines in debian/rules because some binaries weren't built and thus the strip failed. diff -Narup nas-1.7.orig/lib/audio/Alibnet.h nas-1.7/lib/audio/Alibnet.h --- nas-1.7.orig/lib/audio/Alibnet.h 2003-12-23 02:01:36.000000000 +0100 +++ nas-1.7/lib/audio/Alibnet.h 2005-04-13 01:02:25.000000000 +0200 @@ -135,11 +135,15 @@ without express or implied warranty. #ifdef NOFILE #define OPEN_MAX NOFILE #else +#if defined(_POSIX_OPEN_MAX) && !defined(SCO) +#define OPEN_MAX _POSIX_OPEN_MAX +#else #define OPEN_MAX NOFILES_MAX #endif #endif #endif #endif +#endif #if OPEN_MAX > 256 #undef OPEN_MAX diff -Narup nas-1.7.orig/server/Imakefile nas-1.7/server/Imakefile --- nas-1.7.orig/server/Imakefile 2005-05-09 14:43:54.000000000 +0200 +++ nas-1.7/server/Imakefile 2005-04-13 01:19:39.000000000 +0200 @@ -91,7 +91,7 @@ RCMANDIR = $(MANDIR) #define BuildSGIServer #endif -#if defined(HPArchitecture) && !defined(LinuxArchitecture) && !defined(GNUArchitecture) +#if defined(HPArchitecture) && !defined(LinuxArchitecture) && !defined(GNUArchitecture) && !defined(GNUMachArchitecture) #define CanBuildAuServer YES ALL1 = nasd RCMANDIR = $(MANDIR) @@ -99,10 +99,10 @@ RCMANDIR = $(MANDIR) #endif -#if defined(i386SVR4Architecture) || defined(__FreeBSD__) || defined(FreeBSDArchitecture) || defined(LinuxArchitecture) || defined(GNUArchitecture) || define d(i386BsdArchitecture) || defined(USLArchitecture) || defined(cygwinArchitecture) +#if defined(i386SVR4Architecture) || defined(__FreeBSD__) || defined(FreeBSDArchitecture) || defined(LinuxArchitecture) || defined(GNUArchitecture) || define d(i386BsdArchitecture) || defined(USLArchitecture) || defined(cygwinArchitecture) || defined(GNUMachArchitecture) # define CanBuildAuServer YES -# if defined(LinuxArchitecture) || defined(GNUArchitecture) +# if defined(LinuxArchitecture) || defined(GNUArchitecture) || defined(GNUMachArchitecture) RCMANDIR = $(FILEMANDIR) RCMANSUFFIX = 5nas # else @@ -116,7 +116,9 @@ ALL1 = nasd.exe ALL1 = nasd # endif +#if !defined(GNUMachArchitecture) # define BuildVoxServer +# endif #endif ALL = $(ALL1) --- nas-1.7.orig/debian/rules 2005-05-09 14:20:39.000000000 +0200 +++ nas-1.7/debian/rules 2005-05-09 15:05:40.000000000 +0200 @@ -104,12 +104,12 @@ binary-arch: checkroot build chmod 644 debian/nas/usr/share/doc/nas/examples/nasd.conf.eg chmod 755 debian/nas/etc/nas chmod 755 debian/nas/etc/default - file debian/nas/usr/bin/* | grep executable | grep -v 'script text executable' | cut -d':' -f1 | xargs strip --strip-unneeded --remove-section=.commen t --remove-section=.note + #file debian/nas/usr/bin/* | grep executable | grep -v 'script text executable' | cut -d':' -f1 | xargs strip --strip-unneeded --remove-section=.comme nt --remove-section=.note # install nas-bin (top=`pwd`; cd clients/audio && $(MAKE) install $(instdirs) DESTDIR=$$top/debian/nas-bin) (top=`pwd`; cd clients/audio && $(MAKE) install.man $(instdirs) DESTDIR=$$top/debian/nas-bin) - file debian/nas-bin/usr/bin/* | grep executable | grep -v 'script text executable' | cut -d':' -f1 | xargs strip --strip-unneeded --remove-section=.co mment --remove-section=.note + #file debian/nas-bin/usr/bin/* | grep executable | grep -v 'script text executable' | cut -d':' -f1 | xargs strip --strip-unneeded --remove-section=.c omment --remove-section=.note # install libaudio-dev (top=`pwd`; cd doc/man/lib && $(MAKE) install.man $(instdirs) MANSUFFIX=3nas DESTDIR=$$top/debian/libaudio-dev) ---------------------------------------------------------------------- You can respond by visiting: http://alioth.debian.org/tracker/?func=detail&atid=410472&aid=301184&group_id=30628 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]