Bruce Dubbs wrote:
> I've been looking at nas and it doesn't compile properly on my system as we 
> have 
> defined Xorg.  It is looking for libXp (-lXp) in 30 different Makefiles but we
> we have removed libXp.

This is because imake thinks that libXaw needs libXp. So, while the 
XPLIB= workaround works, the proper solution should be related to 
xorg-cf-files. Debian has this patch, and it fixes more than just NAS, 
but all apps that use imake and link to libXaw:

--- xorg-cf-files/linux.cf.orig
+++ xorg-cf-files/linux.cf
@@ -1153,6 +1153,16 @@
  #define TtClientLibs $(TTLIB) $(XTOOLLIB) $(XLIB)
  #define TtClientDepLibs $(DEPTTLIB) $(DEPXTOOLLIB) $(DEPXLIB)

+#ifndef ExtraXawClientLibs
+# define ExtraXawClientLibs /**/
+#endif
+#ifndef ExtraXawClientDepLibs
+# define ExtraXawClientDepLibs /**/
+#endif
+#ifndef ExtraXawReqs
+# define ExtraXawReqs /**/
+#endif
+
  #if HaveLib64
  # ifndef LibDirName
  #  define LibDirName           lib64


OTOH, NAS is an ancient OSS-only sound server that requires special 
support from applications (i.e., no LD_PRELOAD wrapper). No such 
applications are in the book, except those that also support other sound 
servers. Esound and PulseAudio provide network-transparent sound 
playback, support ALSA, and come with LD_PRELOAD wrappers for OSS 
applications. PulseAudio even has a plugin for ALSA.

Moreover, this application won't survive the addition of the x86-64 
architecture to the book. Namely, it builds with warnings "Conversion of 
pointer to integer of different size" that mean instant segfault at runtime.

So I don't understand why this package would be used nowadays by a sane 
person and why it is still in the book. If it is only there as an 
optional dependency of Qt3, then it should be removed from the book and 
marked as an unwanted Qt3 dependency instead. And, if nothing else in 
the book requires imake/xmkmf (Google search suggests that it is indeed 
the case), I'd drop it, too, together with xorg-cf-files.

P.S. Debian has other patches to xorg-cf-files, and they should be 
investigated, too. See the debian/patches subdirectory in 
http://ftp.debian.org/debian/pool/main/x/xutils-dev/xutils-dev_7.4+4.tar.gz

-- 
Alexander E. Patrakov
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to