Opened 12 years ago

Closed 11 years ago

#979 closed defect (fixed)

configure fails to set HAVE_SOCKLEN_T

Reported by: 6cxgln94k7@… Owned by: diego@…
Priority: normal Component: build system
Version: HEAD Severity: normal
Keywords: Cc:
Blocked By: Blocking:
Reproduced by developer: Analyzed by developer:

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 Changed 12 years ago by 6cxgln94k7@…

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.

comment:2 Changed 11 years ago by diego@…

  • op_sys changed from Linux to All
  • rep_platform changed from PC (x86) to All
  • Resolution set to fixed
  • Status changed from new to closed

I just committed socklen_t detection to configure.

Note: See TracTickets for help on using tickets.