[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [1.9.12][OpenBSD] run time failure ...
From: |
primus |
Subject: |
Re: [1.9.12][OpenBSD] run time failure ... |
Date: |
Fri, 10 Sep 2010 16:44:56 +0100 |
User-agent: |
Mutt/1.5.17 (2007-11-01) |
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 <logfile>
# 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!"
- [1.9.12][OpenBSD] run time failure ..., primus, 2010/09/08
- Re: [1.9.12][OpenBSD] run time failure ..., Ludovic Courtès, 2010/09/10
- Re: [1.9.12][OpenBSD] run time failure ..., Andy Wingo, 2010/09/12
- Re: [1.9.12][OpenBSD] run time failure ..., Ludovic Courtès, 2010/09/12
- Re: [1.9.12][OpenBSD] run time failure ..., Andy Wingo, 2010/09/12
- Re: [1.9.12][OpenBSD] run time failure ..., Ludovic Courtès, 2010/09/12
- Re: [1.9.12][OpenBSD] run time failure ..., Andy Wingo, 2010/09/12
Re: [1.9.12][OpenBSD] CFLAGS="-g -O0" run time failure ..., primus, 2010/09/08