bug-libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

creating a C++ shared library with libtool using Solaris CC fails


From: Bruno Haible
Subject: creating a C++ shared library with libtool using Solaris CC fails
Date: Fri, 23 May 2003 15:12:26 +0200 (CEST)

Hi,

On Solaris 7, with "cc" and "CC" but not gcc or g++ in the PATH, libtool
simply omits the mail link command that is needed to create a shared
library:

  /bin/bash ./libtool --mode=link CC -O  -g    -o libasprintf.la -rpath 
/usr/local/lib  lib-asprintf.lo autosprintf.lo  

results in the following commands to be run:

  (cd .libs && rm -f libasprintf.so.0 && ln -s libasprintf.so.0.0.0 
libasprintf.so.0)
  (cd .libs && rm -f libasprintf.so && ln -s libasprintf.so.0.0.0 
libasprintf.so)
  ar cru .libs/libasprintf.a  lib-asprintf.o autosprintf.o
  ranlib .libs/libasprintf.a
  creating libasprintf.la
  (cd .libs && rm -f libasprintf.la && ln -s ../libasprintf.la libasprintf.la)

but no .libs/libasprintf.so.0.0.0 is created.

How to reproduce:

  - Fetch gettext-0.12.tar.gz or gettext-0.12.1.tar.gz from
    ftp://ftp.gnu.org/pub/gnu/gettext
  - Unpack it
  - cd gettext-runtime/libasprintf
  - ./configure
  - make

This is a regression in libtool-1.5 versus libtool-1.4.3.

Bruno


Appended: The configure log.

checking for a BSD-compatible install... /usr/local/ibin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... cc -O
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... no
checking whether cc -O accepts -g... yes
checking for cc -O option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of cc -O... none
checking whether we are using the GNU C++ compiler... no
checking whether CC -O accepts -g... yes
checking dependency style of CC -O... none
checking for a BSD-compatible install... /usr/local/ibin/install -c
checking build system type... sparc-sun-solaris2.7
checking host system type... sparc-sun-solaris2.7
checking for a sed that does not truncate output... /usr/local/bin/gsed
checking for egrep... grep -E
checking for non-GNU ld... /usr/ccs/bin/ld
checking if the linker (/usr/ccs/bin/ld) is GNU ld... no
checking for /usr/ccs/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/ccs/bin/nm -p
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... cc -O -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... no
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking how to run the C++ preprocessor... CC -O -E
checking for g77... no
checking for f77... f77
checking whether we are using the GNU Fortran 77 compiler... no
checking whether f77 accepts -g... yes
checking the maximum length of command line arguments... 262144
checking command to parse /usr/ccs/bin/nm -p output from cc -O object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if cc -O static flag  works... yes
checking for cc -O option to produce PIC... -KPIC
checking if cc -O PIC flag -KPIC works... yes
checking if cc -O supports -c -o file.o... yes
checking whether the cc -O linker (/usr/ccs/bin/ld) supports shared 
libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... no
checking dynamic linker characteristics... solaris2.7 ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking whether the CC -O linker (/usr/ccs/bin/ld) supports shared 
libraries... yes
checking for CC -O option to produce PIC... 
checking if CC -O supports -c -o file.o... yes
checking whether the CC -O linker (/usr/ccs/bin/ld) supports shared 
libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... no
checking dynamic linker characteristics... solaris2.7 ld.so
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for f77 option to produce PIC... -KPIC
checking if f77 PIC flag -KPIC works... no
checking if f77 supports -c -o file.o... no
checking whether the f77 linker (/usr/ccs/bin/ld) supports shared libraries... 
yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... no
checking dynamic linker characteristics... solaris2.7 ld.so
checking for an ANSI C-conforming const... yes
checking for signed... yes
checking for size_t... yes
checking for long long... yes
checking for long double... yes
checking for wchar_t... yes
checking for wint_t... yes
checking for ptrdiff_t... yes
checking for inttypes.h... yes
checking for stdint.h... no
checking for intmax_t... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for snprintf... yes
checking for vasprintf... no
checking for dvips... /usr/local/ibin/dvips
checking for texi2pdf... /tmp/gettext-0.12.1/config/missing texi2pdf
checking for perl... /usr/local/bin/perl
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: executing depfiles commands




reply via email to

[Prev in Thread] Current Thread [Next in Thread]