At 10:55 AM 05/14/02 -0700, Don wrote:
>I have placed snprintf.o and libsnprintf.so in /usr/local/lib.
>I have used ./configure --libdir=/usr/local/lib and setenv
>LD_LIBRARY_PATH=/usr/local/lib, and a few other attempts as well.
>Still make reports undefined symbol.
Someone PLEASE step in and correct anything I say wrong.
--libdir is telling configure where to *install* the swish-e library after
building, not where to look for libraries.
Most compilers will look in /usr/local/lib so you shouldn't need to specify
that. But you do need to tell swish to use the snprintf library.
So, you should be able to do this (with optional zlib and libxml2, if you
$ rm config.cache
$ LDFLAGS=-lsnprintf ./configure --with-zlib --with-libxml2
<me talking to myself>
If you look at src/Makefile.in you see
cflags = @CFLAGS@
ldflags = @LDFLAGS@
When configure builds the Makefile it will then set ldflags to whatever is
specified with the LDFLAGS environment variable. then later in the
Makefile the swish-e binary is built with
$(NAME): libswish-e.a swish.o
$(CC) -o $@ $(CFLAGS) $(LDFLAGS) swish.o libswish-e.a $(LIBS)
chmod 755 $@
Me thinks that the perl module won't build in this situation without adding
-lsnprintf to perl/Makefile.PL and LD_RUN_PATH, if libsnprintf isn't in the
normal search path.
</me talking to myself>
>Any more ideas?
>[mailto:firstname.lastname@example.org]On Behalf Of Bill Moseley
>Sent: Monday, May 13, 2002 6:14 PM
>To: Multiple recipients of list
>Subject: [SWISH-E] Re: make error - undefined symbol vsnprint
>At 01:51 PM 05/13/02 -0700, Don wrote:
>>I am using;
>>SunOS 5.5.1 Generic_103640-37 sun4u sparc SUNW,Ultra-Enterprise
>I thought 5.6 was old? ;)
>>Undefined first referenced
>> symbol in file
>Looks like you need to install a library that includes snprintf. I'm not
>sure if there's an official way to do that with Sun, of if you can just
>grab one and build it. On sunos 5.6 I see the function is available.
>This came up a few days ago where adding -ldb added vsnprintf function.
>The swish distribution contain the code which is uses when building for
>VMS. Swish's configure script needs to check for that function and build
>the library if needed, I suppose. Any autoconf experts around?
Received on Tue May 14 18:34:34 2002