#7 Type declaration fix for socklen_t on 64bit machines

closed-accepted
Pat Thoyts
None
5
2006-03-03
2005-07-26
kazuro furukawa
No

At several locations in udp_tcl.c, socklen variables
are declared as int instead of socklen_t. These are
wrong since socklen_t is 64bit long on 64bit machines.

The patch file "udp_tcl.c.patch" fixes the problem.
I've tested the patched version runs well on both 64bit
tru64unix and 32bit linux.

On the operating system Tru64unix, it is recommended to
use a command like

env CC="cc -std1 -D_XOPEN_SOURCE=500 -D_OSF_SOURCE"
./configure

to configure. I didn't prepare a modification for
configure.in, but if possible, please provide the
equivalent CFLAGS in configure.

Cheers.

Kazuro Furukawa
kazuro.furukawa at kek.jp

Discussion

  • Type declaration fix for socklen_t on 64bit machines

     
    Attachments
  • Logged In: NO

    Any idea when this patch will be applied to the core?
    thanks.

     
  • Pat Thoyts
    Pat Thoyts
    2006-03-03

    • assigned_to: nobody --> patthoyts
     
  • Pat Thoyts
    Pat Thoyts
    2006-03-03

    • status: open --> closed-accepted
     
  • Pat Thoyts
    Pat Thoyts
    2006-03-03

    Logged In: YES
    user_id=202636

    Applied the socklen_t patch.
    For the CFLAGS stuff this should be redirected to Jeff Hobbs
    who manages the tcl.m4 file that is part of the TEA
    configuration system. tcludp just gets flags as determined
    by TEA and if these flags should be used on Tru64 then TEA
    should be doing this for us.
    In the meantime you can always configure and then do
    make CFLAGS="-std1 -D_XOPEN_SOURCE=500 -D_OSF_SOURCE" clean all