#20 No library suffix on SUSE 10.2

open
nobody
None
5
2006-09-06
2006-09-06
No

For some reason, when I compile libdnet on SUSE 10.2
(On my alpha system and on SUSE's buildservers), the
libraries have no suffix. Here's a snippet of make install
output:

mkdir -p -- /var/tmp/libdnet-root/usr/lib
/bin/sh ../libtool --mode=install /usr/bin/install -c
libdnet.la /var/tmp/libdnet-root/usr/lib/libdnet.la
/usr/bin/install -c .libs/libdnet.1.0.1 /var/tmp/libdnet-root/usr/lib/libdnet.1.0.1
(cd /var/tmp/libdnet-root/usr/lib && rm -f libdnet.1 && ln -s
libdnet.1.0.1 libdnet.1)
(cd /var/tmp/libdnet-root/usr/lib && rm -f libdnet && ln -s
libdnet.1.0.1 libdnet)
/usr/bin/install -c .libs/libdnet.lai /var/tmp/libdnet-root/usr/lib/libdnet.la
/usr/bin/install -c .libs/libdnet.a /var/tmp/libdnet-root/usr/lib/libdnet.a

Note the lack of '.so' in any of those filenames.

The libtool version is 1.5 22.

Discussion

  • NNPoster

    NNPoster - 2006-12-02

    Logged In: YES
    user_id=671377
    Originator: NO

    I have experienced the same thing on RHEL3. This is a wide-spread bug in libtool where the ".so" extension is specified in variable "shrext" while the the variable that is actually used by the code is "shrext_cmds". The attached patch provides a workround.

    diff -ru libdnet-1.11.orig/src/Makefile.in libdnet-1.11/src/Makefile.in
    --- libdnet-1.11.orig/src/Makefile.in 2006-01-19 01:24:45.000000000 -0700
    +++ libdnet-1.11/src/Makefile.in 2006-12-01 17:35:30.000000000 -0700
    @@ -134,7 +134,7 @@
    $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
    CCLD = $(CC)
    LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ - $(AM_LDFLAGS) $(LDFLAGS) -o $@
    + $(AM_LDFLAGS) $(LDFLAGS) -shrext .so -o $@
    CFLAGS = @CFLAGS@
    DIST_SOURCES = $(libdnet_la_SOURCES)
    DIST_COMMON = Makefile.am Makefile.in arp-bsd.c arp-ioctl.c arp-none.c \ diff -ru libdnet-1.11.orig/test/dnet/Makefile.in libdnet-1.11/test/dnet/Makefile.in
    --- libdnet-1.11.orig/test/dnet/Makefile.in 2006-01-19 01:24:46.000000000 -0700
    +++ libdnet-1.11/test/dnet/Makefile.in 2006-12-01 17:35:21.000000000 -0700
    @@ -142,7 +142,7 @@
    $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
    CCLD = $(CC)
    LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ - $(AM_LDFLAGS) $(LDFLAGS) -o $@
    + $(AM_LDFLAGS) $(LDFLAGS) -shrext .so -o $@
    CFLAGS = @CFLAGS@
    DIST_SOURCES = $(dnet_SOURCES)

     
  • Nobody/Anonymous

    Logged In: NO

    Same on Debian/testing and Openwrt whiterussian buildroot. Seems to be a problem of libtool.

     

Log in to post a comment.