Bitcoin Forum
June 18, 2024, 07:24:07 PM *
News: Voting for pizza day contest
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: BFGMiner: autogen.sh error: Libtool library used but `LIBTOOL' is undefined  (Read 1299 times)
greno (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
May 06, 2013, 06:08:14 PM
 #1

Can someone tell me what the problem might be with autogen.sh?

Code:
$ ./autogen.sh 
Getting submodules...
Running autoreconf -if...
configure.ac:28: warning: AC_COMPILE_IFELSE was called before _gl_DEFUN_ONCE([AC_USE_SYSTEM_EXTENSIONS])
m4/extensions.m4:37: _gl_DEFUN_ONCE([AC_USE_SYSTEM_EXTENSIONS]) is expanded from...
m4/extensions.m4:37: AC_USE_SYSTEM_EXTENSIONS is expanded from...
configure.ac:28: the top level
configure.ac:28: warning: AC_RUN_IFELSE was called before _gl_DEFUN_ONCE([AC_USE_SYSTEM_EXTENSIONS])
configure.ac:54: warning: AC_COMPILE_IFELSE was called before AC_GNU_SOURCE
../../lib/autoconf/specific.m4:331: AC_GNU_SOURCE is expanded from...
m4/extensions.m4:107: _gl_DEFUN_ONCE([gl_USE_SYSTEM_EXTENSIONS]) is expanded from...
m4/extensions.m4:107: gl_USE_SYSTEM_EXTENSIONS is expanded from...
m4/gnulib-comp.m4:22: gl_EARLY is expanded from...
configure.ac:54: the top level
configure.ac:54: warning: AC_RUN_IFELSE was called before AC_GNU_SOURCE
configure.ac:28: warning: AC_COMPILE_IFELSE was called before _gl_DEFUN_ONCE([AC_USE_SYSTEM_EXTENSIONS])
m4/extensions.m4:37: _gl_DEFUN_ONCE([AC_USE_SYSTEM_EXTENSIONS]) is expanded from...
m4/extensions.m4:37: AC_USE_SYSTEM_EXTENSIONS is expanded from...
configure.ac:28: the top level
configure.ac:28: warning: AC_RUN_IFELSE was called before _gl_DEFUN_ONCE([AC_USE_SYSTEM_EXTENSIONS])
configure.ac:54: warning: AC_COMPILE_IFELSE was called before AC_GNU_SOURCE
../../lib/autoconf/specific.m4:331: AC_GNU_SOURCE is expanded from...
m4/extensions.m4:107: _gl_DEFUN_ONCE([gl_USE_SYSTEM_EXTENSIONS]) is expanded from...
m4/extensions.m4:107: gl_USE_SYSTEM_EXTENSIONS is expanded from...
m4/gnulib-comp.m4:22: gl_EARLY is expanded from...
configure.ac:54: the top level
configure.ac:54: warning: AC_RUN_IFELSE was called before AC_GNU_SOURCE
Makefile.am:1: Libtool library used but `LIBTOOL' is undefined
Makefile.am:1:   The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
Makefile.am:1:   to `configure.ac' and run `aclocal' and `autoconf' again.
Makefile.am:1:   If `AC_PROG_LIBTOOL' is in `configure.ac', make sure
Makefile.am:1:   its definition is in aclocal's search path.
autoreconf: automake failed with exit status: 1

greno (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
May 06, 2013, 06:30:32 PM
 #2

Libtool is installed.
Code:
$ which libtool
/usr/bin/libtool

I tried doing this as suggested in a mailing list I found while searching:
Code:
echo /usr/share/aclocal > /usr/local/share/aclocal/dirlist

It didn't help.

greno (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
May 06, 2013, 11:23:20 PM
 #3


I notice that there are a lot of different aclocal directories under /usr/share:
Code:
$ ls -ld /usr/share/aclocal*
drwxr-xr-x 2 root root 4096 May  6 12:23 /usr/share/aclocal
drwxr-xr-x 2 root root 4096 May  6 12:29 /usr/share/aclocal-1.10
drwxr-xr-x 2 root root 4096 Dec  1  2006 /usr/share/aclocal-1.4
drwxr-xr-x 2 root root 4096 Dec  1  2006 /usr/share/aclocal-1.5
drwxr-xr-x 2 root root 4096 Dec  1  2006 /usr/share/aclocal-1.6
drwxr-xr-x 2 root root 4096 Dec  1  2006 /usr/share/aclocal-1.7

I wonder if this is somehow confusing autoreconf?

Libtool is only in aclocal:
Code:
$ find /usr/share/aclocal* -name libtool.m4
/usr/share/aclocal/libtool.m4



greno (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
May 07, 2013, 01:07:39 AM
 #4

I think that aclocal directory is good:
Code:
$ aclocal --print-ac-dir
/usr/share/aclocal

Not sure what the problem is.

I tried putting

AC_PROG_LIBTOOL into configure.ac and reran aclocal and autoconf but it didn't help.

.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!