logo       


Re: Solaris 8 issues: msg#00150

Subject: Re: Solaris 8 issues
Warren Young wrote:
I'll ask, and you can pipe up on the thread as necessary.

Jeff, please apply the attached patch. It's based on Russ's answer on that thread.
Index: configure.in
===================================================================
--- configure.in        (revision 1079)
+++ configure.in        (working copy)
@@ -70,6 +70,7 @@
 # Checks for libraries and local system features
 AC_CHECK_HEADERS(zlib.h, AC_CHECK_LIB(z, gzread, [],
                [ AC_MSG_ERROR([zlib is required]) ]))
+LIB_SOCKET_NSL
 MYSQL_API_LOCATION
 MYSQL_SHUTDOWN_ARG
 AC_CHECK_LIB(intl, main)
Index: config/socket_nsl.m4
===================================================================
--- config/socket_nsl.m4        (revision 0)
+++ config/socket_nsl.m4        (revision 0)
@@ -0,0 +1,22 @@
+dnl @synopsis LIB_SOCKET_NSL
+dnl 
+dnl This macro figures out what libraries are required on this platform
+dnl to link sockets programs.
+dnl
+dnl The common cases are not to need any extra libraries, or to need
+dnl -lsocket and -lnsl.  We need to avoid linking with libnsl unless
+dnl we need it, though, since on some OSes where it isn't necessary it
+dnl will totally break networking.  Unisys also includes gethostbyname()
+dnl in libsocket but needs libnsl for socket().
+dnl
+dnl @version 1.3, 2005/08/30
+dnl @author Russ Allbery <rra@xxxxxxxxxxxx> and Warren Young 
<warren@xxxxxxxxxxx>
+
+AC_DEFUN([LIB_SOCKET_NSL],
+[
+       AC_SEARCH_LIBS([gethostbyname], [nsl])
+       AC_SEARCH_LIBS([socket], [socket], , [
+               AC_CHECK_LIB([nsl], [socket], LIBS="$LIBS -lsocket -lnsl", ,
+               -lsocket)])
+])
+

-- 
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe:    
http://lists.mysql.com/plusplus?unsub=gcdmc-plusplus@xxxxxxxxxxx
Ruby Jobs
Java Jobs
Jobs in California
more...
what
job title, keywords
where
city, state, zip
jobs by job search
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
encryption.gpg....    ietf.rfc822/199...    freebsd.devel.i...    lang.haskell.li...    mail.squirrelma...    web.zope.plone....    yellowdog.gener...    text.xml.xalan....    recreation.phot...    kde.devel.educa...    hardware.bus.ca...    printing.ghosts...    voip.peering/20...    assembly/2006-0...    org.user-groups...    culture.interne...    network.i2p/200...    boot-loaders.ya...    xfree86.render/...    qnx.openqnx.dev...    jakarta.velocit...    user-groups.pal...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe