From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.bugs Subject: bug#24631: Mac OS X 10.5.8: build error, undefined symbols Date: Wed, 01 Mar 2017 10:24:25 +0100 Message-ID: <87inntic3a.fsf@pobox.com> References: <20161006230708020209.79856bb1@plustv.dk> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1488360319 15203 195.159.176.226 (1 Mar 2017 09:25:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 1 Mar 2017 09:25:19 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) Cc: 24631-done@debbugs.gnu.org To: Jens Bauer Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Wed Mar 01 10:25:15 2017 Return-path: Envelope-to: guile-bugs@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 1cj0VS-00032U-95 for guile-bugs@m.gmane.org; Wed, 01 Mar 2017 10:25:10 +0100 Original-Received: from localhost ([::1]:39263 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cj0VW-0006mM-RX for guile-bugs@m.gmane.org; Wed, 01 Mar 2017 04:25:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52835) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cj0VN-0006l0-Ds for bug-guile@gnu.org; Wed, 01 Mar 2017 04:25:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cj0VK-0000Py-AN for bug-guile@gnu.org; Wed, 01 Mar 2017 04:25:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34579) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cj0VK-0000Pm-6r for bug-guile@gnu.org; Wed, 01 Mar 2017 04:25:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cj0VJ-0008AB-WD for bug-guile@gnu.org; Wed, 01 Mar 2017 04:25:02 -0500 Resent-From: Andy Wingo Original-Sender: "Debbugs-submit" Resent-To: bug-guile@gnu.org Resent-Date: Wed, 01 Mar 2017 09:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 24631 X-GNU-PR-Package: guile X-GNU-PR-Keywords: Mail-Followup-To: 24631@debbugs.gnu.org, wingo@pobox.com, jens-guile-bug@plustv.dk Original-Received: via spool by 24631-done@debbugs.gnu.org id=D24631.148836027631337 (code D ref 24631); Wed, 01 Mar 2017 09:25:01 +0000 Original-Received: (at 24631-done) by debbugs.gnu.org; 1 Mar 2017 09:24:36 +0000 Original-Received: from localhost ([127.0.0.1]:32776 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cj0Ut-00089N-S6 for submit@debbugs.gnu.org; Wed, 01 Mar 2017 04:24:36 -0500 Original-Received: from pb-sasl1.pobox.com ([64.147.108.66]:52831 helo=sasl.smtp.pobox.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cj0Us-00089G-S8 for 24631-done@debbugs.gnu.org; Wed, 01 Mar 2017 04:24:35 -0500 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by pb-sasl1.pobox.com (Postfix) with ESMTP id A108C48FB1; Wed, 1 Mar 2017 04:24:33 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=sasl; bh=t8HjTiIiPXIJWViUM4xAitHFkCY=; b=VkR91z edGmw7TcyrWBWbPPFOF53P0ppCpOyGhyq3myz72QihRkhycUWbFU1JwaFGaHpVXi DUmGylXQj495JVhz+ar29jwrnd1ylo5xaelRQgj5NVHpRnyZa6v3EQXeUWCjKzL5 WYXyV/1REWr0xVnBeKCEPhO1IZ6mDPI+Sk2LM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; q=dns; s=sasl; b=vdx4L4WbwO2OArXZipu64HP5FeBzX4Gz 20jnmBZSf8nTGCrBMimeY5oSzEO5jImDWQeGMCdmYQibHDH313ZSZMdc2BwrCx4F E3zp+OW5XV+k9JUkrZ2m9w4zuD/+cKocf6Ge06Dtku+DxEyuhctWymqGBC1Rfnot mLWR9wNadv0= Original-Received: from pb-sasl1.nyi.icgroup.com (unknown [127.0.0.1]) by pb-sasl1.pobox.com (Postfix) with ESMTP id 9B15D48FAF; Wed, 1 Mar 2017 04:24:33 -0500 (EST) Original-Received: from clucks (unknown [109.190.228.233]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pb-sasl1.pobox.com (Postfix) with ESMTPSA id 771D748FAE; Wed, 1 Mar 2017 04:24:32 -0500 (EST) In-Reply-To: <20161006230708020209.79856bb1@plustv.dk> (Jens Bauer's message of "Thu, 6 Oct 2016 23:07:08 +0200") X-Pobox-Relay-ID: E1071042-FE60-11E6-9B47-B667064AB293-02397024!pb-sasl1.pobox.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: "bug-guile" Xref: news.gmane.org gmane.lisp.guile.bugs:8608 Archived-At: Hi, On Thu 06 Oct 2016 23:07, Jens Bauer writes: > I'm trying to build autogen on Mac OS X 10.5.8. > Building all dependencies goes alright until I'm building guile. > I've built all libraries as static libraries and placed them in /opt, mostly because I don't want gmp to be shared. > > Here's my build-recipe. "dlxb" means "download, extract and build", the arguments are passed to configure from package's own build directory: > --8<-----8<-----8<----- > dlxb gmp-5.1.3.tar.bz2 --disable-shared --prefix=/opt > dlxb libunistring-0.9.6.tar.gz --disable-shared --prefix=/opt > dlxb libffi-3.2.1.tar.gz --disable-shared --prefix=/opt > > dlxb libatomic_ops-7.4.4.tar.gz --disable-shared --prefix=/opt > dlxb gc-7.6.0.tar.gz --disable-shared --prefix=/opt > > dlxb guile-2.0.12.tar.gz --disable-shared --with-libgmp-prefix=/opt --with-libunistring-prefix=/opt --prefix=/opt > -->8----->8----->8----- > > Here's the last lines of the output: > --8<-----8<-----8<----- > ranlib: file: .libs/libguile-2.0.a(unistd.o) has no symbols > ranlib: file: .libs/libguile-2.0.a(wctype-h.o) has no symbols > CCLD guile > Undefined symbols: > "_CFRelease", referenced from: > _libunistring_gl_locale_name_default in libunistring.a(localename.o) > "_CFLocaleCopyCurrent", referenced from: > _libunistring_gl_locale_name_default in libunistring.a(localename.o) > "_CFLocaleGetIdentifier", referenced from: > _libunistring_gl_locale_name_default in libunistring.a(localename.o) > "_CFStringGetCString", referenced from: > _libunistring_gl_locale_name_default in libunistring.a(localename.o) > ld: symbol(s) not found > collect2: ld returned 1 exit status In general, when you build statically, AFAIU you may have to add additional libs when linking final programs. Guile itself doesn't use CoreFoundation, but if unistring does and doesn't propagate that dependency somehow -- something that is usually handled by libtool, but I dunno I guess it's not working here -- then in that case you may have to add additional LDFLAGS when building your final static binary. I think this is not really a Guile bug so I am going to close it. Please follow up if you feel like this bug should have some other resolution. Andy