Menu

#70 Solaris: gethost*_r not correctly found

closed-fixed
other (166)
5
2002-03-03
2002-01-09
No

Hi,

using CVS version - how do I know? from today anyway - , configure.in 1.26, the newly used g*_r() functions aren't found correctly. Reason: the "Solaris specific" section is below them, yet compiling with them relies on the flag "lnsl".

Yet if you move the Solaris section upwards, it still won't work, because you're putting these flags in SOCKET_LIB instead of adding them to LDFLAGS or LIBS, so that they are used in the further builds during ./configure.

I'm attaching a patch for configure.in which moves the "-lnsl" sections up, and uses LIBS="$LIBS ..." instead of SOCKET_LIB="...". (Same for OS/2.)

There must be other fine configure.in templates for globally recognizing whether -lnsl et.al. are needed? I could think of something like an AC_CHECK_LIB(nsl, gethostbyaddr) in the fail case of AC_CHECK_FUNC(gethostbyaddr,,)... I'm no autoconf expert though. ;-)

Thanks for listening! I love this tool, so I won't stop nagging until it builds out of the box everywhere. :)

Regards,
Moritz

Discussion

  • Thomas Steudten

    Thomas Steudten - 2002-01-09
    • assigned_to: nobody --> steudten
     
  • Andreas Oesterhelt

    • labels: --> other
    • assigned_to: steudten --> oes
    • status: open --> open-fixed
     
  • Andreas Oesterhelt

    Logged In: YES
    user_id=78811

    Ooops, seems we overlooked that someone
    already solved Bug ID 509906. Thanks
    anyway, Moritz!

     
  • Andreas Oesterhelt

    • status: open-fixed --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB