pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/44453: print/cups does not compile under Oracle Solaris



>Number:         44453
>Category:       pkg
>Synopsis:       print/cups does not compile under Oracle Solaris
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jan 24 12:50:00 +0000 2011
>Originator:     Uwe Klaus
>Release:        
>Organization:
>Environment:
SunOS sun5 5.10 Generic_144488-07 sun4u sparc SUNW,SPARC-Enterprise

>Description:
Use statvfs() rather than statfs() on Solaris

>How-To-Repeat:
cd /usr/pkgsrc/print/cups
bmake

libtool: compile:  cc -xarch=generic -w -KPIC -xO2 -I.. -D_CUPS_SOURCE 
-I/tmp/pkgsrc/print/cups/work.l52/.buildlink/include/krb5 
-I/tmp/pkgsrc/print/cups/work.l52/.buildlink/include -DPNG_NO_ASSEMBLER_CODE 
-DLDAP_DEPRECATED -I/tmp/pkgsrc/print/cups/work.l52/.buildlink/include/db4 -xO3 
-xtarget=ultra -Xa -xc99=all -DOPENSSL_DISABLE_OLD_DES_SUPPORT 
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -c printers.c  
-KPIC -DPIC -o .libs/printers.o
"printers.c", line 496: prototype mismatch: 2 args passed, 4 expected
cc: acomp failed for printers.c

>Fix:
modify patch/patch-au 


--- scheduler/printers.c.orig   2010-09-22 18:35:07.000000000 +0000
+++ scheduler/printers.c
@@ -81,6 +81,9 @@
 #  include <sys/vfs.h>
 #endif /* HAVE_SYS_VFS_H */
 
+#if defined(HAVE_STATVFS) && ( defined(__NetBSD__) || defined(__sun) )
+#undef HAVE_STATFS
+#endif
  
 /*
  * Local functions...



Home | Main Index | Thread Index | Old Index