Problems building 1.2.0 on HP-UX 10.20, Tru64 UNIX 4.0D

Albert Chin china at foo.com
Fri May 12 15:47:29 PDT 2006


config.h contains the following for HP-UX 10.20:
  /*
   * Do we have the (v)snprintf() functions?
   */

  /* #undef HAVE_SNPRINTF */
  /* #undef HAVE_VSNPRINTF */

Ditto for Tru64 UNIX 4.0D.

However, while CUPS can deal with the lack of snprintf(), it doesn't
link in libcups.a for man/mantohtml.c and scheduler/testdirsvc.c
which contain snprintf(). Patch to fix below.

-- 
albert chin

-- snip snip
--- man/Makefile.orig	2006-05-12 17:43:13.941096000 -0500
+++ man/Makefile	2006-05-12 17:43:34.669926000 -0500
@@ -178,8 +178,8 @@
 		./mantohtml `basename $$file .$(MAN8EXT)`.man >../doc/help/man-`basename $$file .$(MAN8EXT)`.html; \
 	done
 
-mantohtml:	mantohtml.o
-	$(CC) $(LDFLAGS) -o $@ mantohtml.o
+mantohtml:	mantohtml.o ../../cups/libcups.a
+	$(CC) $(LDFLAGS) -o $@ mantohtml.o ../cups/libcups.a
 
 
 #
--- scheduler/Makefile.orig	2006-05-12 17:43:14.036467000 -0500
+++ scheduler/Makefile	2006-05-12 17:43:55.660772000 -0500
@@ -242,9 +242,10 @@
 # Make the test program, "testdirsvc".
 #
 
-testdirsvc:	testdirsvc.o
+testdirsvc:	testdirsvc.o ../cups/libcups.a
 	echo Linking $@...
-	$(CC) $(LDFLAGS) -o testdirsvc testdirsvc.o $(COMMONLIBS) $(NETLIBS)
+	$(CC) $(LDFLAGS) -o testdirsvc testdirsvc.o ../cups/libcups.a \
+		$(COMMONLIBS) $(NETLIBS)
 
 
 #




More information about the cups mailing list