Subject: pkg/31117: audio/nas nas-1.7bnb1 Solaris 10 gcc
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Gilles Dauphin <dauphin@enst.fr>
List: pkgsrc-bugs
Date: 09/01/2005 16:19:01
>Number:         31117
>Category:       pkg
>Synopsis:       audio/nas nas-1.7bnb1 Solaris 10 gcc
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Sep 01 16:19:00 +0000 2005
>Originator:     Gilles Dauphin
>Release:        SunOS 5.10 i86pc
>Organization:
ENST 
>Environment:


System: SunOS bi.enst.fr 5.10 Generic i86pc


>Description:


nas won't compile with gcc
nas wont't install nasd.conf.4



>How-To-Repeat:


bmake
bmake install


>Fix:


I fix 2 files

::::::::::::::
--- lib/audio/Imakefile.orig    Sat Jun  4 22:08:54 2005
+++ lib/audio/Imakefile Thu Sep  1 15:48:25 2005
@@ -25,6 +25,10 @@
 
 #include "../../config/NetAudio.tmpl"
 
+#define ProjectThreadsDefines -DXTHREADS -threads
+#define ThreadsCompileFlags -threads
+#define ThreadsCplusplusCompileFlags -threads
+
 #include <Threads.tmpl>
 

But i don't know how to squared it for Solaris/gcc

::::::::::::::
--- server/Imakefile.orig       Sat Jun  4 06:40:58 2005
+++ server/Imakefile    Thu Sep  1 17:24:42 2005
@@ -213,14 +213,19 @@
        $(RM) $(ALL)
 
  ETCDIR = NasConfigSearchPath
+ EGDIR = ${PREFIX}/share/examples/nas
 
 InstallManPage(nasd,$(MANDIR))
 #ifdef InstallGenManPage
 InstallGenManPage(nasd.conf,$(FILEMANDIR),$(FILEMANSUFFIX))
 #else
+#ifdef InstallNamedTarget
+InstallNamedTarget(install.man,nasd.conf.man,$(INSTMANFLAGS),$(FILEMANDIR),nasd.conf.$(FILEMANSUFFIX))
+#else
 InstallManPage(nasd.conf,$(FILEMANDIR))
 #endif
-InstallNonExecFile(nasd.conf.eg,$(ETCDIR))
+#endif
+InstallNonExecFile(nasd.conf.eg,$(EGDIR))
 
 #else /* CanBuildAuServer */