Opened 16 years ago
Closed 16 years ago
#979 closed defect (fixed)
configure fails to set HAVE_SOCKLEN_T
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | normal | Component: | build system |
Version: | HEAD | Severity: | normal |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Reproduced by developer: | no | Analyzed by developer: | no |
Description
Building on SuSE 10.2 failed with conflicting types for socklen_t in os_support.h. It appears that HAVE_SOCKLEN_T is not getting set in config.h, even though socklen_t is defined in <unistd.h>. This gives the following error:
In file included from os_support.c:26:
os_support.h:32: error: conflicting types for 'socklen_t'
/usr/include/unistd.h:243: error: previous declaration of 'socklen_t' was here
After hard-coding "#define HAVE_SOCKLEN_T", the build is successful.
version info:
glibc-devel-2.5-25 (32 bit)
mplayer svn revision 22583
I am sending this from a throwaway email address. I don't need a reply but if you want to contact me then please mail A.M.Iwi at the domain rl.ac.uk
Change History (2)
comment:1 by , 16 years ago
comment:2 by , 16 years ago
op_sys: | Linux → All |
---|---|
rep_platform: | PC (x86) → All |
Resolution: | → fixed |
Status: | new → closed |
I just committed socklen_t detection to configure.
P.S. I'm not sure if it's expecting the glibc headers to have defined HAVE_SOCKLEN_T, but "grep -r HAVE_SOCKLEN_T /usr/include/" doesn't find anything.