From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Greg Rudd Newsgroups: gmane.os.tru64.managers Subject: SUMMARY Additional: Open Ldap 2.1.22 compile woes on 5.1a Date: Tue, 26 Aug 2003 10:00:32 +1000 Organization: Univeristy of Sydney ITS Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <200308261000.32904.g.rudd@isu.usyd.edu.au> Reply-To: g.rudd@isu.usyd.edu.au NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1061856059 6929 80.91.224.253 (26 Aug 2003 00:00:59 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 26 Aug 2003 00:00:59 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Tue Aug 26 02:00:57 2003 Return-path: Original-Received: from sws1.ornl.gov ([160.91.1.101]) by deer.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 19rRGa-0004oN-00 for ; Tue, 26 Aug 2003 02:00:56 +0200 Original-Received: (qmail 10832 invoked by uid 5); 26 Aug 2003 00:00:44 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 10792 invoked by uid 49493); 26 Aug 2003 00:00:44 -0000 Original-Received: from g.rudd@isu.usyd.edu.au by sws1 by uid 49491 with qmail-scanner-1.16 (clamscan: 20030605. spamassassin: 2.55. Clear:SA:0(-5.9/5.0):. Processed in 0.872202 secs); 26 Aug 2003 00:00:44 -0000 Original-Received: from unknown (HELO emroute3.ornl.gov) (160.91.4.110) by 0 with SMTP; 26 Aug 2003 00:00:43 -0000 Original-Received: from emroute3.ornl.gov (localhost [127.0.0.1]) by emroute3.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0HK7005ZC9D4J0@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 25 Aug 2003 20:00:41 -0400 (EDT) Original-Received: from lorica.ucc.usyd.edu.au (lorica.ucc.usyd.edu.au [129.78.64.15]) by emroute3.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0HK700BE79CZ3M@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 25 Aug 2003 20:00:36 -0400 (EDT) Original-Received: from oberon.ucc.usyd.edu.au (oberon.ucc.usyd.edu.au [129.78.64.20]) by lorica.ucc.usyd.edu.au (8.12.9/8.12.9) with ESMTP id h7Q00XsB027586 for ; Tue, 26 Aug 2003 10:00:33 +1000 (EST) Original-To: tru64-unix-managers@ornl.gov User-Agent: KMail/1.4.3 X-RAVMilter-Version: 8.4.3(snapshot 20030401) (lorica) Xref: main.gmane.org gmane.os.tru64.managers:5194 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:5194 Thanks to my work college Jie Gao that pointed this out for me just after= I posted to this out onto the list. http://www.openldap.org/lists/openldap-bugs/200307/msg00038.html As it states that the problem is caused by AC_GAI_STRERROR being defined = in include/ac/socket.h if HAVE_GETADDRINFO is defined. The fix for this problem is that "#include has to be added to conftest.c via the configure process. and also changing thevarible that = is is using the value getaddrinfo varible from the header file to an int. To correct the problem. I have created the following patch that can be sa= ved out to a file and then applied to the configure file using the patch util= ity. PS I can supply this file as an attachment for those that want it. *** configure=09Sun Jun 22 03:18:19 2003 --- configure.greg=09Mon Aug 25 15:31:06 2003 *************** *** 10218,10222 **** fi ! for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 --- 10218,10278 ---- fi ! for ac_func in getaddrinfo ! do ! echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 ! echo "configure:10224: checking for $ac_func" >&5 ! if eval "test \"\${ac_cv_func_$ac_func+set}\" =3D set"; then ! echo $ac_n "(cached) $ac_c" 1>&6 ! else ! cat > conftest.$ac_ext < ! /* Override any gcc2 internal prototype to avoid an error. */ ! /* We use char because int might match the return type of a gcc2 ! builtin and then its argument prototype would still apply. */ ! #include ! int $ac_func(); ! int (*f)(); ! ! int main() { ! /* The GNU C library defines this for functions which it implements ! to always fail with ENOSYS. Some functions are actually named ! something starting with __ and the normal name is an alias. */ ! #if defined (__stub_$ac_func) || defined (__stub___$ac_func) ! choke me ! #else ! f =3D $ac_func; ! #endif ! ! ; return 0; } ! EOF ! ! if { (eval echo configure:10253: \"$ac_link\") 1>&5; (eval $ac_link) 2>= &5; } && test -s conftest${ac_exeext}; then ! eval "ac_cv_func_$ac_func=3Dyes" ! else ! echo "configure: failed program was:" >&5 ! cat conftest.$ac_ext >&5 ! rm -rf conftest* ! eval "ac_cv_func_$ac_func=3Dno" ! fi ! rm -rf conftest* ! fi ! if eval "test \"`echo '$ac_cv_func_'$ac_func`\" =3D yes"; then ! echo "$ac_t""yes" 1>&6 ! ac_tr_func=3DHAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` ! cat >> confdefs.h <&6 ! fi ! ! done ! ! for ac_func in getnameinfo gai_strerror inet_ntop do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 =3D=3D=3D=3D=3D=3D=3D Also I have been informed by Richard Jackson that if " -DHAVE_GETADDRINFO= " is added to the CPPFLAGS also works for people who dont want to edit t= he configure file. > On Fri, 22 Aug 2003, Greg Rudd wrote: > > Date: Fri, 22 Aug 2003 13:12:54 +1000 > > From: Greg Rudd > > To: tru64-unix-managers@ornl.gov > > Followup-To: poster > > Subject: Open Ldap 2.1.22 compile woes on 5.1a > > > > Hi all > > > > Has anyone come accross the following problem when trying to compile > > openldap-2.1.22 on 5.1a PK5 and has anyone found a way out > > > > Entering subdirectory libldap > > cc -pthread -arch host -I../../include -I../../include > > -I/usr/local/BerkeleyDB.4.1/include -I/usr/local/ssl/include > > -I/usr/local/ssl/include/openssl -I/usr/local/include -c dntest.c > > /bin/sh /home/sysadmin/greg/openldap-2.1.22/libtool --mode=3Dlink cc > > -static -pthread -arch host -L/usr/local/ssl/lib > > -L/usr/local/BerkeleyDB.4.1/lib -L/usr/local/lib -o dntest dntest.= o > > libldap.la > > ../../libraries/liblber/liblber.la ../../libraries/liblutil/liblutil.= a > > -lssl -lcrypto > > cc -pthread -arch host -o dntest dntest.o -L/usr/local/ssl/lib > > -L/usr/local/BerkeleyDB.4.1/lib -L/usr/local/lib ./.libs/libldap.a > > /home/sysadmin/greg/openldap-2.1.22/libraries/liblber/.libs/liblber.a > > ../../libraries/liblber/.libs/liblber.a > > ../../libraries/liblutil/liblutil.a -lssl -lcrypto > > ld: > > Unresolved: > > AC_GAI_STRERROR > > *** Exit 1 > > Stop. > > *** Exit 1 > > Stop. > > *** Exit 1 > > Stop. > > > > > > > > I was thinking that this is this some compatability issue between > > BerkleyDB and OPEN LDAP which in BerkleyDBs case uses the standard PO= SIX > > thread library and OPEN LDAP which casuses the linker to bomb out > > > > Configure options used --with-wrapers --without-threads > > Compiler used Compaq CC > > CFLAGS USED -pthread -arch host > > LDFAGS USED -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.1/lib > > -L/usr/local/lib > > CPPFLAGS USED -I/usr/local/BerkeleyDB.4.1/include > > -I/usr/local/ssl/include -I/usr/local/ssl/openssl/include > > -I/usr/local/include > > > > Note both GCC and Compaq CC were used with both giving the same resul= ts > > even when PTH thread libraries are compiled in > > > > Thanks in advance. > > > > -greg > > > > -- > > Greg Rudd > > Computer Systems Officer > > Information Technology Services > > University Of Sydney > > PH: +61 2 9351 5531 > > Fax +61 2 0351 6004 > > email: grudd@mail.usyd.edu.au > > > > ------------------------------------------------- > > /"\ ASCII Ribbon Campaign against HTML > > \ / email > > X > > / \ > > ------------------------------------------------- > > For more info on why you should not send html in email go to > > http://www.american.edu/cas/econ/htmlmail.htm -- Greg Rudd Computer Systems Officer Information Technology Services University Of Sydney PH: +61 2 9351 5531 Fax +61 2 0351 6004 email: grudd@mail.usyd.edu.au ------------------------------------------------- /"\ ASCII Ribbon Campaign against HTML \ / email X / \ ------------------------------------------------- For more info on why you should not send html in email go to http://www.american.edu/cas/econ/htmlmail.htm