ports/87162: devel/libtool15 installs aclocal files in wrong place?
Brian Candler
B.Candler at pobox.com
Sun Oct 9 13:50:17 UTC 2005
>Number: 87162
>Category: ports
>Synopsis: devel/libtool15 installs aclocal files in wrong place?
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sun Oct 09 13:50:16 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: Brian Candler
>Release: FreeBSD 5.4-STABLE i386
>Organization:
>Environment:
System: FreeBSD XXXX 5.4-STABLE FreeBSD 5.4-STABLE #3: Fri May 13 10:01:59 BST 2005 root at XXXX:/usr/obj/usr/src/sys/BILLDOG i386
>Description:
devel/libtool15 installs its aclocal files under /usr/local/share/aclocal
instead of /usr/local/share/aclocal19
As a result, they can't be found when they're needed.
>How-To-Repeat:
# cd /usr/ports/devel/autoconf259
# make all install
# cd /usr/ports/devel/automake19
# make all install
# cd /usr/ports/devel/libtool15
# make all install
# pkg_info -L libtool-1.5\*
... notice:
/usr/local/share/aclocal/libtool15.m4
/usr/local/share/aclocal/ltdl15.m4
Now try to build a package which requires libtool (this example is the
'bdbobj' subdirectory of the 'courier-imap' package)
[brian at billdog bdbobj]$ libtoolize15 --force
You should add the contents of `/usr/local/share/aclocal/libtool15.m4' to `aclocal.m4'.
Putting files in AC_CONFIG_AUX_DIR, `..'.
[brian at billdog bdbobj]$ aclocal19
/usr/X11R6/share/aclocal/xmms.m4:17: warning: underquoted definition of XMMS_TEST_VERSION
run info '(automake)Extending aclocal'
or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
/usr/X11R6/share/aclocal/xmms.m4:62: warning: underquoted definition of AM_PATH_XMMS
/usr/X11R6/share/aclocal/gtk.m4:7: warning: underquoted definition of AM_PATH_GTK
[brian at billdog bdbobj]$ autoheader259
[brian at billdog bdbobj]$ autoconf259
configure.in:19: error: possibly undefined macro: AC_PROG_LIBTOOL
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
[brian at billdog bdbobj]$ automake19 --foreign --add-missing
Makefile.am:14: Libtool library used but `LIBTOOL' is undefined
Makefile.am:14:
Makefile.am:14: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
Makefile.am:14: to `configure.in' and run `aclocal' and `autoconf' again.
[brian at billdog bdbobj]$
Note the warning from configure.in:19 (the AC_PROG_LIBTOOL macro remains in
the 'configure' output, unexpanded), and that automake fails, returning with
a non-zero exit code.
>Fix:
Workaround:
# cd /usr/local/share/aclocal19
# ln -s ../aclocal/libtool15.m4 .
# ln -s ../aclocal/ltdl15.m4 .
Running the same test as above then gives:
[brian at billdog bdbobj]$ libtoolize15 --force
You should add the contents of `/usr/local/share/aclocal/libtool15.m4' to `aclocal.m4'.
Putting files in AC_CONFIG_AUX_DIR, `..'.
[brian at billdog bdbobj]$ aclocal19
/usr/X11R6/share/aclocal/xmms.m4:17: warning: underquoted definition of XMMS_TEST_VERSION
run info '(automake)Extending aclocal'
or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
/usr/X11R6/share/aclocal/xmms.m4:62: warning: underquoted definition of AM_PATH_XMMS
/usr/X11R6/share/aclocal/gtk.m4:7: warning: underquoted definition of AM_PATH_GTK
[brian at billdog bdbobj]$ autoheader259
[brian at billdog bdbobj]$ autoconf259
[brian at billdog bdbobj]$ automake19 --foreign --add-missing
[brian at billdog bdbobj]$
I don't know enough about the autoconf tools to suggest the right solution;
maybe libtool15 could install its files under /usr/local/share/aclocal19, but
then libtool15 would be tied to this particular version of automake.
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list