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

Bug#656947: __size_t issue affecting soundcard.h remains



Hi,

I think something is still wrong with soundcard.h or the __size_t
definition, because the GNU C++ compiler does not seem to like it:

$ g++-4.6 /usr/include/sys/soundcard.h
In file included from /usr/include/machine/_types.h:8:0,
                 from /usr/include/sys/_types.h:33,
                 from /usr/include/machine-i386/endian.h:37,
                 from /usr/include/machine/endian.h:8,
                 from /usr/include/sys/soundcard.h:110:
/usr/include/machine-i386/_types.h:94:9: error: declaration does not
declare anything [-fpermissive]

/usr/include/machine-i386/_types.h:94:
typedef	__uint32_t	__size_t;		/* sizeof() */

$ g++ /usr/include/sys/soundcard.h -E | grep segsz -C 2
typedef __int32_t __ptrdiff_t;
typedef __int32_t __register_t;
typedef __int32_t __segsz_t;
typedef __uint32_t ;
typedef __int32_t __ssize_t;


I've observed this bug causing configure to fail during an attempted
build of hamfax;  its conftest is attached.

Regards,
-- 
Steven Chamberlain
steven@pyro.eu.org
/* confdefs.h */
#define PACKAGE_NAME "hamfax"
#define PACKAGE_TARNAME "hamfax"
#define PACKAGE_VERSION "0.8.1"
#define PACKAGE_STRING "hamfax 0.8.1"
#define PACKAGE_BUGREPORT "cschmitt@users.sourceforge.net"
#define PACKAGE_URL ""
#define PACKAGE "hamfax"
#define VERSION "0.8.1"
#define USE_FILE 1
#define STDC_HEADERS 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_SYS_STAT_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRING_H 1
#define HAVE_MEMORY_H 1
#define HAVE_STRINGS_H 1
#define HAVE_INTTYPES_H 1
#define HAVE_STDINT_H 1
#define HAVE_UNISTD_H 1
/* end confdefs.h.  */
#include <stdio.h>
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#ifdef HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
#ifdef STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
#else
# ifdef HAVE_STDLIB_H
#  include <stdlib.h>
# endif
#endif
#ifdef HAVE_STRING_H
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
#  include <memory.h>
# endif
# include <string.h>
#endif
#ifdef HAVE_STRINGS_H
# include <strings.h>
#endif
#ifdef HAVE_INTTYPES_H
# include <inttypes.h>
#endif
#ifdef HAVE_STDINT_H
# include <stdint.h>
#endif
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#include <sys/soundcard.h>
/* g++ -E  conftest.cpp */

Reply to: