From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: primus Newsgroups: gmane.lisp.guile.bugs Subject: Re: [1.9.12][OpenBSD] run time failure ... Date: Fri, 10 Sep 2010 16:44:56 +0100 Message-ID: <20100910154456.GH18170@x.lence.net> References: <20100908192137.GH8535@x.lence.net> <20100908221255.GL8535@x.lence.net> <20100910134726.GF18170@x.lence.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1284133523 13437 80.91.229.12 (10 Sep 2010 15:45:23 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 10 Sep 2010 15:45:23 +0000 (UTC) To: bug-guile@gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Fri Sep 10 17:45:18 2010 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Ou5mw-0001W3-01 for guile-bugs@m.gmane.org; Fri, 10 Sep 2010 17:45:18 +0200 Original-Received: from localhost ([127.0.0.1]:36371 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ou5mv-0003eF-BR for guile-bugs@m.gmane.org; Fri, 10 Sep 2010 11:45:17 -0400 Original-Received: from [140.186.70.92] (port=49085 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ou5mi-0003aI-QQ for bug-guile@gnu.org; Fri, 10 Sep 2010 11:45:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ou5mg-0004NI-9G for bug-guile@gnu.org; Fri, 10 Sep 2010 11:45:03 -0400 Original-Received: from mail-bw0-f41.google.com ([209.85.214.41]:43379) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ou5mf-0004Mx-Vp for bug-guile@gnu.org; Fri, 10 Sep 2010 11:45:02 -0400 Original-Received: by bwz6 with SMTP id 6so2893052bwz.0 for ; Fri, 10 Sep 2010 08:45:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=Yis3i1ErDzX68M497PiObZbCXqoD33yHWOXYE2WYJdI=; b=ArMdl3A56jNjTTEYwqVGHXS/qxU0Btn4gvR4uY+W0+0jUQKJVnA/Or/t6mr9RRobvp /GZJR9J1c+GQpy/1i2KqWLqxVDBIryo626boSmEkAipuaXGfQsSwd2urC1Wx034VcAsY T4hRFUrsP1lRpFLEUYNmMmXdfnOuJuQluKiAE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=pVLYE4AOX6t9lmlx6yF1l4DUrzmTY9cw9qP6vjE8bgiu2IozVJTon3ieuvCHYeEm08 /AZIj1apF8AVX7Si4SXkOpC1x+a2+D4VmmBHZ7xVnQsYg8kMHQXsZr3roU1RVdkncbB6 lnRCIRujsqobG7fV+NH/hhcOLqwUe2lCFdzuI= Original-Received: by 10.204.50.204 with SMTP id a12mr667515bkg.117.1284133500068; Fri, 10 Sep 2010 08:45:00 -0700 (PDT) Original-Received: from x.lence.net (lence.net [93.97.42.123]) by mx.google.com with ESMTPS id s34sm2104640bkk.1.2010.09.10.08.44.58 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 10 Sep 2010 08:44:58 -0700 (PDT) Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:4789 Archived-At: On Fri, Sep 10, 2010 at 04:35:27PM +0200, Andy Wingo wrote: > > > > Nowhere do I specify that it should be a > > static-only build. > > It's statically linking libguile to guile. You sure you didn't pass > --disable-shared on the configure line? Surely libtool can make shared > libraries on openbsd? Fri Sep 10 16:25:23 BST 2010 configure was run as: env CFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib" ./configure 2>&1 | tee # grep -A1 -i shared config.log configure:9187: checking for shared library run path origin configure:9200: result: done configure:24931: checking whether the gcc -std=gnu99 linker (/usr/bin/ld) supports shared libraries configure:25917: result: yes configure:25977: gcc -std=gnu99 -shared -fPIC -DPIC -o conftest conftest.o -v 2\>\&1 \| /usr/bin/grep -lc \>/dev/null 2\>\&1 configure:25980: $? = 1 configure:27494: checking if libtool supports shared libraries configure:27496: result: yes configure:27499: checking whether to build shared libraries configure:27520: result: yes sharedstatedir='${prefix}/com' sitedir='${datarootdir}/guile/site/2.0' > > > # ldd ./libguile/guile > > ./libguile/guile: > > Start End Type Open Ref GrpRef Name > > 1c000000 3c042000 exe 1 0 0 ./libguile/guile > [...] > > Here guile should probably be a libtool helper script, and > libguile/.libs/lt-guile should link to libguile-2.0.so. # pwd /usr/obj/micro/guile-1.9.12 # find . -name "*.so*" -print # find . -name "*lt-guile*" -print # >From logfile *.l6g: posix.c:1844:5: warning: "HAVE_CUSERID" is not defined CC net_db.lo CC socket.lo CC regex-posix.lo CCLD libguile-2.0.la *** Warning: linker path does not have real file for library -lm. *** I have the capability to make that library automatically link in when *** you link to this library. But I can only do this if you have a *** shared version of the library, which you do not appear to have *** because I did check the linker path looking for a file starting *** with libm and none of the candidates passed a file format test *** using a regex pattern. Last file checked: /usr/local/lib/libiconv.so.4.0 *** The inter-library dependencies that have been dropped here will be *** automatically added whenever a program is linked with this library *** or is declared to -dlopen it. *** Since this library must not contain undefined symbols, *** because either the platform does not support them or *** it was explicitly requested with -no-undefined, *** libtool will only create a static version of it. CC guile-guile.o CCLD guile /usr/local/lib/libgmp.so.8.0: warning: vsprintf() is often misused, please use vsnprintf() ./.libs/libguile-2.0.a(posix.o)(.text+0x253f): In function `scm_tmpnam': /usr/obj/micro/guile-1.9.12/libguile/posix.c:1317: warning: tmpnam() possibly used unsafely; consider using mkstemp() ./.libs/libguile-2.0.a(libguile_2.0_la-load.o)(.text+0x9df): In function `stringbuf_cat': /usr/obj/micro/guile-1.9.12/libguile/load.c:378: warning: strcpy() is almost always misused, please use strlcpy() ./.libs/libguile-2.0.a(libguile_2.0_la-bytevectors.o)(.text+0x1982): In function `scm_utf32_to_string': /usr/obj/micro/guile-1.9.12/libguile/bytevectors.c:1888: warning: strcat() is almost always misused, please use strlcat() ./.libs/libguile-2.0.a(libguile_2.0_la-srfi-14.o)(.text+0x463): In function `scm_sys_char_set_dump': /usr/obj/micro/guile-1.9.12/libguile/srfi-14.c:2047: warning: sprintf() is often misused, please use snprintf() GEN c-tokenize.o GEN guile_filter_doc_snarfage 2nd paragraph: *** libtool will only create a static version of it. What 'it' is being referred to? The above message appears to be generated by: ./build-aux/ltmain.sh Reading through that now. -- -primus "If I had more time, I would have written you a shorter letter" - Pascal "It isn't what you make, it's what you don't lose!"