Ticket #18287 (closed defect: fixed)
lesstif: possibly undefined macro: LT_HAVE_FREETYPE
| Reported by: | ryandesign@… | Owned by: | jeremyhu@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 1.7.0 |
| Keywords: | libtool | Cc: | lomion@…, george@…, jeremyhu@… |
| Port: | lesstif |
Description
As of r43746 I cannot upgrade lesstif; it says:
glibtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `.'.
glibtoolize: copying file `./ltmain.sh'
glibtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.in and
glibtoolize: rerunning glibtoolize, to keep the correct libtool macros in-tree.
glibtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
configure:20107: error: possibly undefined macro: LT_HAVE_FREETYPE
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure:20274: error: possibly undefined macro: LT_HAVE_XRENDER
autoreconf: autoconf failed with exit status: 1
This is on a MacBook Pro with Mac OS X 10.5.6, Xcode 3.1.2, MacPorts 1.7.0.
Attachments
Change History
comment:2 Changed 4 years ago by jeremyhu@…
- Status changed from new to assigned
- Cc jeremyhu@… added
- Keywords libtool added
This seems to be related to a libtool bug:
http://bugs.gentoo.org/220599
Similarly fixed in openmotif by renaming the LT_* variables: http://bugs.motifzone.net/show_bug.cgi?id=1429 http://openmotif.cvs.sourceforge.net/openmotif/openmotif/ac_find_xft.m4?r1=1.5&r2=1.6
comment:4 Changed 4 years ago by ryandesign@…
Apparently single quotes are problematic in Tcl:
DEBUG: Executing org.macports.patch (lesstif)
DEBUG: Executing proc-post-org.macports.patch-patch-0
DEBUG: sed: 1: "'s:LT_HAVE_FREETYPE:FIN ...": invalid command code '
while executing
"exec /usr/bin/sed 's:LT_HAVE_FREETYPE:FINDXFT_HAVE_FREETYPE:g' < /mp/var/macports/build/_Users_rschmidt_macports_dports_x11_lesstif/work/lesstif-0.95...."
("eval" body line 1)
invoked from within
"eval exec $cmdline"
Error: reinplace: sed: 1: "'s:LT_HAVE_FREETYPE:FIN ...": invalid command code '
Error: Target org.macports.patch returned: reinplace sed(1) failed
Warning: the following items did not execute (for lesstif): org.macports.activate org.macports.patch org.macports.configure org.macports.build org.macports.destroot org.macports.install
Error: Status 1 encountered during processing.
Double quotes work fine though: I can install lesstif with either libtool 1.5.26 or 2.2.6a. Thanks.
Index: Portfile
===================================================================
--- Portfile (revision 46107)
+++ Portfile (working copy)
@@ -37,6 +37,8 @@
post-patch {
system "touch ${worksrcpath}/test/{NEWS,README,AUTHORS,ChangeLog,COPYING}"
+ reinplace "s:LT_HAVE_FREETYPE:FINDXFT_HAVE_FREETYPE:g" ${worksrcpath}/acinclude.m4
+ reinplace "s:LT_HAVE_XRENDER:FINDXFT_HAVE_XRENDER:g" ${worksrcpath}/acinclude.m4
}
use_autoreconf yes
Note: See
TracTickets for help on using
tickets.

