Subject: Re: libtool "--tag" error
To: Greywolf <greywolf@starwolf.com>
From: Ruibiao Qiu <ruibiao@arl.wustl.edu>
List: current-users
Date: 03/05/2001 15:02:01
On Mon, 5 Mar 2001, Greywolf wrote:

>What's your config.log say?

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:571: checking for a BSD compatible install
configure:624: checking whether build environment is sane
configure:681: checking whether make sets ${MAKE}
configure:727: checking for working aclocal
configure:740: checking for working autoconf
configure:753: checking for working automake
configure:766: checking for working autoheader
configure:779: checking for working makeinfo
configure:822: checking for gcc
configure:935: checking whether the C compiler (gcc -O2 ) works
configure:951: gcc -o conftest -O2   conftest.c  1>&5
configure:977: checking whether the C compiler (gcc -O2 ) is a cross-compiler
configure:982: checking whether we are using GNU C
configure:991: gcc -E conftest.c
configure:1010: checking whether gcc accepts -g
configure:1048: checking host system type
configure:1069: checking build system type
configure:1098: checking for ld used by GCC
configure:1166: checking if the linker (/usr/bin/ld) is GNU ld
GNU ld version 2.9.1 (with BFD 2.9.1)
configure:1184: checking for BSD-compatible nm
configure:1223: checking whether ln -s works
configure:1250: checking for mawk
configure:1250: checking for gawk
configure:1250: checking for nawk
configure:1282: checking for Cygwin environment
configure:1298: gcc -c -O2  conftest.c 1>&5
configure: In function `main':
configure:1294: `__CYGWIN32__' undeclared (first use in this function)
configure:1294: (Each undeclared identifier is reported only once
configure:1294: for each function it appears in.)
configure: failed program was:
#line 1287 "configure"
#include "confdefs.h"

int main() {

#ifndef __CYGWIN__
#define __CYGWIN__ __CYGWIN32__
#endif
return __CYGWIN__;
; return 0; }
configure:1315: checking for mingw32 environment
configure:1327: gcc -c -O2  conftest.c 1>&5
configure: In function `main':
configure:1323: `__MINGW32__' undeclared (first use in this function)
configure:1323: (Each undeclared identifier is reported only once
configure:1323: for each function it appears in.)
configure: failed program was:
#line 1320 "configure"
#include "confdefs.h"

int main() {
return __MINGW32__;
; return 0; }
configure:1413: checking for /usr/bin/ld option to reload object files
configure:1425: checking how to recognise dependant libraries
configure:1580: checking for object suffix
configure:1586: gcc -c -O2  conftest.c 1>&5
configure:1606: checking for executable suffix
configure:1616: gcc -o conftest -O2   conftest.c  1>&5
configure:1782: checking for ranlib
configure:1849: checking for strip
configure:2036: checking for c++
configure:2068: checking whether the C++ compiler (c++ -O2 ) works
configure:2084: c++ -o conftest -O2   conftest.C  1>&5
configure:2110: checking whether the C++ compiler (c++ -O2 ) is a
cross-compiler
configure:2115: checking whether we are using GNU C++
configure:2124: c++ -E conftest.C
configure:2143: checking whether c++ accepts -g
configure:2188: checking for gcj
ltconfig:676:checking for gcc option to produce PIC
ltconfig:685:checking that gcc PIC flag  -fPIC -DPIC works.
ltconfig:747: checking if gcc static flag -static works
ltconfig:793: checking if gcc supports -c -o file.o
ltconfig:794: gcc -c -O2 -o out/conftest2.o  conftest.c 1>&5
ltconfig:847: checking if gcc supports -fno-rtti -fno-exceptions
ltconfig:848: gcc -c -O2 -fno-rtti -fno-exceptions -c conftest.c  conftest.c
1>&5
ltconfig:1350: checking if global_symbol_pipe works
ltconfig:1351: gcc -c -O2  conftest.c 1>&5
ltconfig:1354: eval "/usr/bin/nm -B conftest.o | sed -n -e 's/^.*[
]\([ABCDGISTW]\)[       ]
[       ]*\(\)\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2\3 \3/p' > conftest.nm"
ltconfig:1406: gcc -o conftest -O2 -fno-builtin -fno-rtti -fno-exceptions
conftest.c conftstm.o
 1>&5
ltconfig:1510: checking for dlopen in -ldl
ltconfig:1549: checking for dlopen
ltconfig:1790: checking for dlfcn.h
ltconfig:1829: checking whether a program can dlopen itself
ltconfig:1883: gcc -o conftest -O2 -fno-builtin -fno-rtti -fno-exceptions
-DHAVE_DLFCN_H  -Wl,--
export-dynamic conftest.c   1>&5
ltconfig:1902: checking whether a statically linked program can dlopen itself
ltconfig:1956: gcc -o conftest -O2 -fno-builtin -fno-rtti -fno-exceptions
-DHAVE_DLFCN_H  -Wl,--
export-dynamic -static conftest.c   1>&5
ltconfig: failed program was:
#line 1910 "ltconfig"

#if HAVE_DLFCN_H
#include <dlfcn.h>
#endif

#include <stdio.h>

#ifdef RTLD_GLOBAL
# define LTDL_GLOBAL    RTLD_GLOBAL
#else
# ifdef DL_GLOBAL
#  define LTDL_GLOBAL   DL_GLOBAL
# else
#  define LTDL_GLOBAL   0
# endif
#endif

/* We may have to define LTDL_LAZY_OR_NOW in the command line if we
   find out it does not work in some platform. */
#ifndef LTDL_LAZY_OR_NOW
# ifdef RTLD_LAZY
#  define LTDL_LAZY_OR_NOW      RTLD_LAZY
# else
#  ifdef DL_LAZY
#   define LTDL_LAZY_OR_NOW     DL_LAZY
#  else
#   ifdef RTLD_NOW
#    define LTDL_LAZY_OR_NOW    RTLD_NOW
#   else
#    ifdef DL_NOW
#     define LTDL_LAZY_OR_NOW   DL_NOW
#    else
#     define LTDL_LAZY_OR_NOW   0
#    endif
#   endif
#  endif
# endif
#endif

fnord() { int i=42;}
main() { void *self, *ptr1, *ptr2;
self=dlopen(0,LTDL_GLOBAL|LTDL_LAZY_OR_NOW);
    if(self) { ptr1=dlsym(self,"fnord"); ptr2=dlsym(self,"_fnord");
    if(ptr1 || ptr2) { dlclose(self); exit(0); } } exit(1); }

ltconfig:676:checking for c++ option to produce PIC
ltconfig:685:checking that c++ PIC flag  -fPIC -DPIC works.
ltconfig:747: checking if c++ static flag -static works
ltconfig:793: checking if c++ supports -c -o file.o
ltconfig:794: c++ -c -O2 -o out/conftest2.o  conftest.c 1>&5
ltconfig:847: checking if c++ supports -fno-rtti -fno-exceptions
ltconfig:848: c++ -c -O2 -fno-rtti -fno-exceptions -c conftest.c  conftest.c
1>&5
ltconfig:1350: checking if global_symbol_pipe works
ltconfig:1351: c++ -c -O2  conftest.c 1>&5
ltconfig:1354: eval "/usr/bin/nm -B conftest.o | sed -n -e 's/^.*[
]\([ABCDGISTW]\)[       ]
[       ]*\(\)\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2\3 \3/p' > conftest.nm"
ltconfig:1406: c++ -o conftest -O2 -fno-builtin -fno-rtti -fno-exceptions
conftest.c conftstm.o
 1>&5
ltconfig:1790: checking for dlfcn.h
ltconfig:1829: checking whether a program can dlopen itself
ltconfig:1902: checking whether a statically linked program can dlopen itself
c++ -E conftest.cc
ltconfig:676:checking for c++ option to produce PIC
ltconfig:685:checking that c++ PIC flag -fPIC -DPIC works.
ltconfig:695: c++ -c -O2 -fPIC -DPIC -DPIC  conftest.cc 1>&5
ltconfig:747: checking if c++ static flag -static works
ltconfig:756: c++ -o conftest -O2   -static conftest.cc  1>&5
ltconfig:793: checking if c++ supports -c -o file.o
ltconfig:794: c++ -c -O2 -o out/conftest2.o  conftest.cc 1>&5
ltconfig:847: checking if c++ supports -fno-rtti -fno-exceptions
ltconfig:848: c++ -c -O2 -fno-rtti -fno-exceptions -c conftest.cc  conftest.cc
1>&5
ltconfig:1350: checking if global_symbol_pipe works
ltconfig:1351: c++ -c -O2  conftest.cc 1>&5
ltconfig:1354: eval "/usr/bin/nm -B conftest.o | sed -n -e 's/^.*[
]\([ABCDGISTW]\)[       ]
[       ]*\(\)\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2\3 \3/p' > conftest.nm"
ltconfig:1406: c++ -o conftest -O2 -fno-builtin -fno-rtti -fno-exceptions
conftest.cc conftstm.
o 1>&5
ltconfig:1790: checking for dlfcn.h
ltconfig:1829: checking whether a program can dlopen itself
ltconfig:1902: checking whether a statically linked program can dlopen itself

            Ruibiao