libtool
[Top][All Lists]
Advanced

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

Re: CentOS 4 Build Erro


From: Ralf Wildenhues
Subject: Re: CentOS 4 Build Erro
Date: Sun, 4 Jul 2010 21:10:29 +0200
User-agent: Mutt/1.5.20 (2010-04-22)

Hello Damian,

thanks for the report.

* Damian Hess wrote on Fri, Jul 02, 2010 at 04:09:16PM CEST:
> I'm trying to install libtool-2.2.8 on a CentOS 4.7 box for another
> piece of software that requires libtool, however when I run make I get
> the following error:
> 
> /bin/sh ./libtool --tag=CC   --mode=link gcc  -g -O2 -no-undefined 
> -version-info 9:2:2 -dlpreopen libltdl/dlopen.la   -o libltdl/libltdl.la 
> -rpath /usr/local/lib libltdl/loaders/libltdl_libltdl_la-preopen.lo 
> libltdl/libltdl_libltdl_la-lt__alloc.lo 
> libltdl/libltdl_libltdl_la-lt_dlloader.lo 
> libltdl/libltdl_libltdl_la-lt_error.lo libltdl/libltdl_libltdl_la-ltdl.lo 
> libltdl/libltdl_libltdl_la-slist.lo libltdl/lt__strl.lo -ldl 
> libtool: link: rm -f libltdl/.libs/libltdl.nm libltdl/.libs/libltdl.nmS 
> libltdl/.libs/libltdl.nmT
> libtool: link: (cd libltdl/.libs && gcc -g -O2 -c -fno-builtin  -fPIC -DPIC 
> "libltdlS.c")
> libltdlS.c:26: error: `lt_ptr' undeclared here (not in a function)
> libltdlS.c:26: error: initializer element is not constant
> libltdlS.c:26: error: (near initialization for 
> `lt_libltdl_LTX_preloaded_symbols[1].address')
> libltdlS.c:26: error: syntax error before numeric constant
[...]
> make[2]: *** [libltdl/libltdl.la] Error 1

Weird.  I remember this sort of error, but waay before 2.2.8, more like
1.5.x something.  Can you run the above --mode=link command manually
with RM='echo ' set in the environment beforehand, then post
libltdl/.libs/libltdlS.c?

The file is generated from the libtool script.  I think something like
this (GNU sed-specific) edit
  sed -i~ 's/\<lt_ptr\>/void */g' libtool

should probably work around the bug, unless I'm gravely mistaken.

> I'm sure there is another component that I am missing (wrong version
> of gcc or something else) but I can't find a list of requirements to
> build libtool.  Any help or direction would be appreciated.

You need a C compiler that is supported; many are, and most all releases
of GCC should be.  And the usual unix shell tools.  Any other
requirements for building from a release tarball are usually bugs.

Hope that helps.

Cheers,
Ralf



reply via email to

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