Menu

#101 extra libraries required on SunOS

open
nobody
None
5
2013-02-19
2002-10-17
No

On SunOS, a standard compilation of ggz-config (in
ggz-client-libs) (and most likely any other GGZ
programs as well) fails. The reason is that a bunch of
symbols - including socket(), socketpair(), etc., are
undefined.

A quick "man socket" shows that extra libraries are
required to use socket functions. Adding "-lsocket
-lnsl" to LDADD solves this problem.

However, this is something that most likely needs to be
taken care of automatically by autoconf's macros.

Discussion

  • Jason Dorje Short

    workaround patch to get ggz-config to compile

     
  • Josef Spillner

    Josef Spillner - 2002-10-18

    Logged In: YES
    user_id=2207

    Use the appropriate checks from libggz.
    AC_CHECK_FUNC(socket, ...
    AC_CHECK_FUNC(gethostbyname, ...
    AC_CHECK_FUNC(inet_ntoa, ...

     
  • Jason Dorje Short

    Logged In: YES
    user_id=87649

    I tried adding AC_CHECK_FUNC(socket) as well as
    AC_CHECK_FUNC([socket ...]). Neither added the missing
    libraries to LDADD.

     
  • Josef Spillner

    Josef Spillner - 2003-03-30

    Logged In: YES
    user_id=2207

    Does this still happen?
    I only have access to Solaris boxes with a quota of 10 MB...

     

Log in to post a comment.

MongoDB Logo MongoDB