pkgsrc-Bugs archive

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

pkg/44770: popt from pkgsrc-2010Q4 does not compile on systems without stdint.h (e.g. Solaris 2.8)



>Number:         44770
>Category:       pkg
>Synopsis:       popt from pkgsrc-2010Q4 does not compile on systems without 
>stdint.h (e.g. Solaris 2.8)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Mar 25 13:10:00 +0000 2011
>Originator:     Dr. W. Stukenbrock
>Release:        pkgsrc-2010Q4
>Organization:
Dr. Nagler & Company GmbH
>Environment:
        
        
System: NetBSD test-s0 4.0 NetBSD 4.0 (NSW-WS) #0: Tue Aug 17 17:28:09 CEST 
2010 wgstuken@test-s0:/usr/src/sys/arch/amd64/compile/NSW-WS amd64
Architecture: x86_64
Machine: amd64
>Description:
        During configure of the popt package the present of stdint.h is checked.
        But in two files stdint.h is included in any case.
        So compilation will fail if stdint.h is not available.
>How-To-Repeat:
        Try to compile popt on Solaris 2.8 where stdint.h is not available. It 
will fail.
>Fix:
        Add the HAVE_STDINT_H check around the includes as intended by 
configure.
        The following patch to poptint.h and loookup3.c will solve the problem:

===================================================================
RCS file: RCS/lookup3.c,v
retrieving revision 1.1
diff -u -r1.1 lookup3.c
--- lookup3.c   2011/03/25 13:00:16     1.1
+++ lookup3.c   2011/03/25 13:00:35
@@ -34,7 +34,9 @@
 */
 /* -------------------------------------------------------------------- */
 
+#ifdef HAVE_STDINT_H
 #include <stdint.h>
+#endif
 
 #if defined(_JLU3_SELFTEST)
 # define _JLU3_jlu32w          1
===================================================================
RCS file: RCS/poptint.h,v
retrieving revision 1.1
diff -u -r1.1 poptint.h
--- poptint.h   2011/03/25 13:00:16     1.1
+++ poptint.h   2011/03/25 13:00:30
@@ -9,7 +9,9 @@
 #ifndef H_POPTINT
 #define H_POPTINT
 
+#ifdef HAVE_STDINT_H
 #include <stdint.h>
+#endif
 
 /**
  * Wrapper to free(3), hides const compilation noise, permit NULL, return NULL.

>Unformatted:
        
        


Home | Main Index | Thread Index | Old Index