From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Jens Bauer Newsgroups: gmane.lisp.guile.bugs Subject: bug#24631: Mac OS X 10.5.8: build error, undefined symbols Date: Thu, 6 Oct 2016 23:07:08 +0200 Message-ID: <20161006230708020209.79856bb1@plustv.dk> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1475789788 20459 195.159.176.226 (6 Oct 2016 21:36:28 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 6 Oct 2016 21:36:28 +0000 (UTC) To: 24631@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Thu Oct 06 23:36:24 2016 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 1bsGKt-0003pU-6I for guile-bugs@m.gmane.org; Thu, 06 Oct 2016 23:36:15 +0200 Original-Received: from localhost ([::1]:59511 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsGKr-0003Ul-MV for guile-bugs@m.gmane.org; Thu, 06 Oct 2016 17:36:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59133) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsGKj-0003UP-7b for bug-guile@gnu.org; Thu, 06 Oct 2016 17:36:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bsGKg-00009L-J9 for bug-guile@gnu.org; Thu, 06 Oct 2016 17:36:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40783) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsGKg-00009G-GX for bug-guile@gnu.org; Thu, 06 Oct 2016 17:36:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bsGKg-0005zS-DC for bug-guile@gnu.org; Thu, 06 Oct 2016 17:36:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jens Bauer Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Thu, 06 Oct 2016 21:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 24631 X-GNU-PR-Package: guile X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-guile@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.147578975522997 (code B ref -1); Thu, 06 Oct 2016 21:36:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 6 Oct 2016 21:35:55 +0000 Original-Received: from localhost ([127.0.0.1]:46971 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bsGKZ-0005yl-9Y for submit@debbugs.gnu.org; Thu, 06 Oct 2016 17:35:55 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:56186) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bsFt4-0005Ic-Ok for submit@debbugs.gnu.org; Thu, 06 Oct 2016 17:07:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bsFsv-0000B4-5n for submit@debbugs.gnu.org; Thu, 06 Oct 2016 17:07:25 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:53742) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsFsv-0000Af-2Z for submit@debbugs.gnu.org; Thu, 06 Oct 2016 17:07:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47106) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsFss-0006wr-Pb for bug-guile@gnu.org; Thu, 06 Oct 2016 17:07:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bsFsn-00005w-Ki for bug-guile@gnu.org; Thu, 06 Oct 2016 17:07:17 -0400 Original-Received: from multitrading.dk ([92.246.25.51]:58263 helo=mail.multitrading.dk) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsFsn-0008W9-8D for bug-guile@gnu.org; Thu, 06 Oct 2016 17:07:13 -0400 Original-Received: (qmail 48131 invoked from network); 6 Oct 2016 21:07:10 -0000 Original-Received: from 80-62-116-58-mobile.dk.customer.tdc.net (HELO ?192.168.1.101?) (jb@multitrading.dk@80.62.116.58) by audiovideo.dk with ESMTPA; 6 Oct 2016 21:07:10 -0000 X-Mailer: GyazMail version 1.5.17 X-detected-operating-system: by eggs.gnu.org: Mac OS X 10.x X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Thu, 06 Oct 2016 17:35:54 -0400 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:8415 Archived-At: 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 make[3]: *** [guile] Error 1 make[2]: *** [all] Error 2 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 Failed (guile) -->8----->8----->8----- -As you see, it's a linker error, and it means that the CoreFoundation framework is not linked. The error might be related to libunistring referencing the mentioned symbols. I've searched the net and come across only very few similar problems. This is probably the closest match: When I look at the Makefile in the build directory, I see lines including the CoreFoundation framework: Makefile:INTLLIBS = -lintl -Wl,-framework -Wl,CoreFoundation Makefile:INTL_MACOSX_LIBS = -Wl,-framework -Wl,CoreFoundation Makefile:LIBINTL = -lintl -Wl,-framework -Wl,CoreFoundation Makefile:LTLIBINTL = -lintl -Wl,-framework -Wl,CoreFoundation -And in other Makefiles as well, a whole bunch in total. Here's some relevant output from uname: uname -m: Power Macintosh uname -p: powerpc uname -r: 9.8.0 uname -s: Darwin -Yes, I'm on a PowerMac, a PowerPC based one; not an Intel based Mac. ;) The error might show up on Intel based Macs too, though. Love Jens