From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alex Vong Newsgroups: gmane.lisp.guile.user Subject: Re: Problem when compile guile-2.2.4 on CentOS 6.10/6.8 Date: Wed, 05 Sep 2018 20:53:57 +0800 Message-ID: <87sh2o85qy.fsf@gmail.com> References: <87d0tt9h3z.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Trace: blaine.gmane.org 1536151960 10600 195.159.176.226 (5 Sep 2018 12:52:40 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 5 Sep 2018 12:52:40 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) Cc: guile-user@gnu.org To: An Liu Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Wed Sep 05 14:52:35 2018 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fxXIN-0002Vs-LM for guile-user@m.gmane.org; Wed, 05 Sep 2018 14:52:31 +0200 Original-Received: from localhost ([::1]:55791 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fxXKU-0007k8-4Y for guile-user@m.gmane.org; Wed, 05 Sep 2018 08:54:42 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59431) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fxXK8-0007js-7o for guile-user@gnu.org; Wed, 05 Sep 2018 08:54:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fxXK3-0006VI-Ig for guile-user@gnu.org; Wed, 05 Sep 2018 08:54:20 -0400 Original-Received: from mail-pl1-x631.google.com ([2607:f8b0:4864:20::631]:44535) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fxXK3-0006SZ-8o for guile-user@gnu.org; Wed, 05 Sep 2018 08:54:15 -0400 Original-Received: by mail-pl1-x631.google.com with SMTP id ba4-v6so3258860plb.11 for ; Wed, 05 Sep 2018 05:54:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version; bh=Ny3/LKfH/2+b9m7W3uzFh1h5lN/XHbLjU6sS31H3GpA=; b=J19+Ycu57UF+s/4NlVCCOSaF9MCIIh1e6y4rSQ3B9HO/GFzyHjjvdhxoVg/v5UnRtN n3uXCSgbdqLwPTHYXhJ1TJhHcaPnxbkBaap3MNrphmpl+IQM+r39hEpg4IT7trQDEE5K zZ2pgUHx0sGtJUHYznkxxSEZAx8B0KQCMOeUHpG2RR0Txz9hDh3DKOSjeBNfmDqsqDby kFCA15aWddoVconM20grOnCDarzJmZws9c77TkIhMkfHxhU55n3dR3KsAiW8jXaWF/xe 2CzwuNjOpaPYeR5Mf7BPG72ES6XSxR1A6SEPdjdkaz3c0AUs/mCjWTAebGExHwxLO6Lx EmqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:cc:subject:in-reply-to:references :user-agent:date:message-id:mime-version; bh=Ny3/LKfH/2+b9m7W3uzFh1h5lN/XHbLjU6sS31H3GpA=; b=ow9T9y4pf0bmvXiItaLwOjEppPiJ4/kbezQaYTEP9AUaJbqFpQq74Eqh72JgBe4jq1 l+QeGqCtnw97VOxbIv5E+JSZtJHS91Mq2YpCOwYVWZJNP7RnbZQLIGvT1n3KdAF/xbGD W/BNMTZf1Oh6W6JNjtR2uJ9GdDvE2RNQ4KbKAEjjTrdDz65JbrV1mMrY1MPEEUyfLGea z4HZPxgvbkR2EEOA3PlgVS39QwJ0mr1fbbRY/YHllAYlYWXxwbhp6XvIfccd6jIi9AEE iV34LKn2q0LbMenr97FqYppsEbZ+6PbSbKgwjNicLeIk5WH9MP2mQCS0rLlL8uQvChne 2wpA== X-Gm-Message-State: APzg51DTuW+QllIMTHNF8p1Z5CphGMf8a+DEi2XfEW/zJGqsRJZPZegw 1EzyfE+iD5jYnQTYa377iss= X-Google-Smtp-Source: ANB0VdZOBSApuo/SgJKXUNg0G6tVCrufM2sPk5pDVry1GK7GtnHFrQCBicQXgmEpiKf7va/MCl/gDQ== X-Received: by 2002:a17:902:20c6:: with SMTP id v6-v6mr18708035plg.228.1536152054340; Wed, 05 Sep 2018 05:54:14 -0700 (PDT) Original-Received: from debian (n218250002021.netvigator.com. [218.250.2.21]) by smtp.gmail.com with ESMTPSA id d19-v6sm3609662pgi.50.2018.09.05.05.54.12 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 05 Sep 2018 05:54:13 -0700 (PDT) In-Reply-To: (An Liu's message of "Wed, 5 Sep 2018 01:28:04 -0600") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::631 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.org gmane.lisp.guile.user:14859 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable An Liu writes: > Hi=EF=BC=8Clist > > Finally got it work=EF=BC=8Ccheers=EF=BC=81 > Cheers! Maybe there's a better way than commenting out all the checks. There's usually a way to specify custom location for the configure script to find libltdl. But I am not running centos, so I can't check. > On Wed, Sep 5, 2018 at 00:17 An Liu wrote: > > Hi, > > I would like to make some update > 1. I compile-installed gcc-4.9.4 on CentOS , then it can run configure > without complain socklen_t not defined problem i metioned above > 2. the system build chain such as autoconf/automake/m4/libtools are > too old, autogen.sh would failed, so i need to update these (you > might not need these from tarball, but in case you get source code > from repos, i had both tarball and source code cloned of repos, but i > do edit configure.ac to disable libltdl check) > 3. pkg-config is too old, i compile-installed one, you need to pay > attention to *pc files, easiest way is to create symbol link to > third-party's install location > 4. bdw-gc is too old (system provides 7.0, but we need 7.2) > 5. new problem is libltdl not found, i was quite sure both system > (libtool-ltdl-2.2.6-15.5.el6.x86_64 package is installed) and i have > compile-installed version under /opt/libtools ( 2.4.6) > neither > #./configure --prefix=3D/opt/guile > nor > # ./configure --prefix=3D/opt/guile --with-libltdl-prefix=3D/opt/libtools > would pass the check > I need to disable this check in configure.ac, comments all following lin= es > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D > #dnl Check for libltdl. > #AC_LIB_HAVE_LINKFLAGS([ltdl], [], [#include ], > # [lt_dlopenext ("foo");]) > #if test "x$HAVE_LIBLTDL" !=3D "xyes"; then > # AC_MSG_ERROR([GNU libltdl (Libtool) not found, see README.]) > #fi > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D > after autoreconf, we can successfully create configure file for now, > and ./configure would provides Makefile correctly > then manually add LTLIBLTDL libguile/Makefile as a work around (see > '+' line below ) > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > LTALLOCA =3D > LTLIBGMP =3D -lgmp > + LTLIBLTDL=3D -L/opt/libtools/lib -lltdl > LTLIBICONV =3D > LTLIBINTL =3D > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > > It's now proceeding ice-9 files, hoping it would not failed me. :) > > FYI > > AN > > On Tue, Sep 4, 2018 at 9:07 PM An Liu wrote: > > > > Hi, Alex > > Thank you for the hint > > > > attached is the config.log after run ./configure --prefix=3D/opt/guile= -2.2.4 > > > > It seems the version of gcc is too old to use --std=3Dc11 > > # gcc -v > > Using built-in specs. > > Target: x86_64-redhat-linux > > Configured with: ../configure --prefix=3D/usr --mandir=3D/usr/share/man > > --infodir=3D/usr/share/info > > --with-bugurl=3Dhttp://bugzilla.redhat.com/bugzilla --enable-bootstrap > > --enable-shared --enable-threads=3Dposix --enable-checking=3Drelease > > --with-system-zlib --enable-__cxa_atexit > > --disable-libunwind-exceptions --enable-gnu-unique-object > > --enable-languages=3Dc,c++,objc,obj-c++,java,fortran,ada > > --enable-java-awt=3Dgtk --disable-dssi > > --with-java-home=3D/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre > > --enable-libgcj-multifile --enable-java-maintainer-mode > > --with-ecj-jar=3D/usr/share/java/eclipse-ecj.jar > > --disable-libjava-multilib --with-ppl --with-cloog --with-tune=3Dgener= ic > > --with-arch_32=3Di686 --build=3Dx86_64-redhat-linux > > Thread model: posix > > gcc version 4.4.7 20120313 (Red Hat 4.4.7-23) (GCC) > > > > > > > > > > i would like to test a higher version gcc , and get back if i have an= y updates > > > > > > On Tue, Sep 4, 2018 at 1:51 PM Alex Vong wrot= e: > > > > > > Hello An, > > > > > > Can you also upload the 'config.log' file? As it may contain some hi= nts > > > on why it is failing. > > > > > > Cheers, > > > Alex > > > > > > An Liu writes: > > > > > > > Hi, List > > > > > > > > I'm trying to compile guile-2.2.4 on CentOS 6.10, but failed > > > > > > > > - why guile-2.2.4? > > > > I want to try artanis which requires guile-2.2+, and yum repos only > > > > have guile-1.8, so i decide to compile install myself > > > > > > > > - CentOS release > > > > # cat /etc/centos-release > > > > CentOS release 6.10 (Final) > > > > # uname -a > > > > Linux test 2.6.32-754.3.5.el6.x86_64 #1 SMP Tue Aug 14 20:46:41 UTC > > > > 2018 x86_64 x86_64 x86_64 GNU/Linux > > > > > > > > - guile release > > > > # curl -O https://ftp.gnu.org/gnu/guile/guile-2.2.4.tar.xz > > > > > > > > - configure error > > > > # ./configure --prefix=3D/opt/guile-2.2.4 > > > > ... > > > > checking whether sigpending is declared without a macro... no > > > > checking whether sigprocmask is declared without a macro... no > > > > checking for socklen_t... no > > > > checking for socklen_t equivalent... configure: error: Cannot find= a > > > > type to use in place of socklen_t > > > > > > > > > > > > it stops at socklen_t, as config_log attached > > > > > > > > I've no idea of this as /usr/include/sys/socket.h exists there and > > > > socklen_t should have be defined. > > > > > > > > I've google for this error but hardly got any solutions. > > > > Any suggestion on this? I don't think trying to modify the > > > > "sys/socket.h" is a good idea. > > > > > > > > or is there guile-2.2+ rpm release for centos 6 > > > > > > > > BTW, how long would it take for me to build guile from source code= (i7 > > > > 6500Ux4, with 8GB RAM, laptop) , the manual of artanis says it wou= ld > > > > take quite a long time even seem like halt. > > > > > > > > Thank you in advance. > > > > > > > > -- > > Liu An > > --=20 > Liu An --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYIAB0WIQSof2ZdXkE0FM5aU4XzrkvbI+zaGwUCW4/R5QAKCRDzrkvbI+za G7PhAP9NxxqsyjZxskaNYea101AMLgCHnTmamjeGtbjP1UKwrQD/TtDghBNDzF2c CbX8v65CP2TaSJ2GuHqkdbcXw0+9pwY= =6Og4 -----END PGP SIGNATURE----- --=-=-=--