----- Forwarded message from Matt Zimmerman <[EMAIL PROTECTED]> -----
Date: Sun, 19 Aug 2001 19:53:31 -0400 From: Matt Zimmerman <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Cc: debian-devel@lists.debian.org Subject: Need help diagnosing #108663 (glibc, hppa, g++ and _BSD_SOURCE) This is definitely not pchar's bug, but I don't know where to reassign it. On i386, glibc 2.2.4-1: mizar:[/tmp] gcc -c udphdrtest.c mizar:[/tmp] g++ -c udphdrtest.c mizar:[/tmp] On hppa, glibc 2.2.3-9: [EMAIL PROTECTED]:~$ gcc -c udphdrtest.c [EMAIL PROTECTED]:~$ g++ -c udphdrtest.c udphdrtest.c: In function `void f()': udphdrtest.c:6: `struct udphdr' has no member named `uh_sport' [EMAIL PROTECTED]:~$ udphdrtest.c is attached. It looks like _BSD_SOURCE isn't working properly on hppa, at least not in 2.2.3-9. I don't know whether this is something that has since been fixed in glibc, or if it's still broken in 2.2.4-1, or if it's g++'s fault. Here are the default preprocessor symbols on paer: [EMAIL PROTECTED]:~$ cpp -dM /dev/null #define __USER_LABEL_PREFIX__ #define __SIZE_TYPE__ unsigned int #define __PTRDIFF_TYPE__ int #define __HAVE_BUILTIN_SETJMP__ 1 #define __hppa__ 1 #define __ELF__ 1 #define __WCHAR_TYPE__ long int #define __NO_INLINE__ 1 #define __WINT_TYPE__ unsigned int #define __unix 1 #define unix 1 #define __REGISTER_PREFIX__ #define __linux 1 #define _PA_RISC1_1 1 #define __linux__ 1 #define __VERSION__ "3.0.1 20010801 (Debian prerelease)" #define __STDC_HOSTED__ 1 #define linux 1 #define __unix__ 1 #define __STDC__ 1 and on mizar: mizar:[~] cpp -dM /dev/null #define __linux__ 1 #define linux 1 #define __i386__ 1 #define __i386 1 #define i386 1 #define __unix 1 #define __unix__ 1 #define __linux 1 #define __ELF__ 1 #define unix 1 -- - mdz ----- End forwarded message ----- -- - mdz