Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 173464 - media-libs/flac-1.2.1-r3: autoconf fails due to missing AM_ICONV on uclibc
Summary: media-libs/flac-1.2.1-r3: autoconf fails due to missing AM_ICONV on uclibc
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-05 13:55 UTC by Natanael Copa
Modified: 2009-07-23 08:23 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
flac-1.2.1-r2.ebuild.patch (flac-1.2.1-r2.ebuild.patch,801 bytes, patch)
2008-02-21 15:00 UTC, Natanael Copa
Details | Diff
lib-prefix.m4 (lib-prefix.m4,6.53 KB, text/plain)
2008-06-17 09:13 UTC, Natanael Copa
Details
lib-link.m4 (lib-link.m4,29.04 KB, text/plain)
2008-06-17 09:14 UTC, Natanael Copa
Details
lib-ld.m4 (lib-ld.m4,3.34 KB, text/plain)
2008-06-17 09:14 UTC, Natanael Copa
Details
codeset.m4 (codeset.m4,758 bytes, text/plain)
2008-06-17 09:15 UTC, Natanael Copa
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Natanael Copa 2007-04-05 13:55:38 UTC
cat /var/tmp/portage/media-libs/flac-1.1.2-r8/temp/autoconf-25344.out
***** autoconf *****

configure.in:180: error: possibly undefined macro: AM_ICONV
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.in:181: error: possibly undefined macro: AM_LANGINFO_CODESET
Comment 1 SpanKY gentoo-dev 2007-04-07 10:50:39 UTC
no way around it i dont think ... either you bundled the gettext m4 garbage with flac so that those macros are included or you emerge gettext on your machine to get the appropriate .m4 files, or you dont run autotools at all for flac ...
Comment 2 Francisco José Cañizares Santofimia 2007-07-16 09:43:46 UTC
Same problem here compiling flac 1.1.4
Comment 3 Francisco José Cañizares Santofimia 2007-07-16 09:44:13 UTC
Same problem here compiling flac 1.1.4
Comment 4 Francisco José Cañizares Santofimia 2007-07-16 20:49:42 UTC
Recompiling gettext solved the issue for me.
Comment 5 SpanKY gentoo-dev 2007-09-15 01:05:30 UTC
this isnt an embedded specific issue ... same problem should occur on a USE=-nls system that has gettext uninstalled

a better question is how come upstream hasnt merged our patches yet to the build system
Comment 6 Natanael Copa 2008-02-21 15:00:21 UTC
Created attachment 144215 [details, diff]
flac-1.2.1-r2.ebuild.patch

I suggest this as a walkaround the need for gettext. Instead of patching configure.in, just add the CFLAGS to emake to enforce them. this works on uclibc.
Comment 7 Samuli Suominen (RETIRED) gentoo-dev 2008-02-21 17:11:01 UTC
added a fix (I hope) to already existing flac-1.2.1-r2.. 
Comment 8 Natanael Copa 2008-03-17 13:03:48 UTC
Still don't work. When I made the original patch I actually tried to include the AM_ICONV stuff as in tree now. I never got it working, gave up and went for the quick and dirty emake CFLAGS="$CFLAGS".

 * Running aclocal -I ../m4 -I m4 ...                                     [ ok ]
 * Running autoconf ...                                                   [ !! ]

 * Failed Running autoconf !
 * 
 * Include in your bugreport the contents of:
 * 
 *   /var/tmp/portage/media-libs/flac-1.2.1-r2/temp/autoconf-7879.out

...

 # cat /var/tmp/portage/media-libs/flac-1.2.1-r2/temp/autoconf-7879.out
***** autoconf *****

configure.in:259: warning: AC_LIB_PREPARE_PREFIX is m4_require'd but not m4_defun'd
../m4/iconv.m4:9: AM_ICONV_LINKFLAGS_BODY is expanded from...
../m4/iconv.m4:20: AM_ICONV_LINK is expanded from...
../m4/iconv.m4:154: AM_ICONV is expanded from...
configure.in:259: the top level
configure.in:259: warning: AC_LIB_RPATH is m4_require'd but not m4_defun'd
configure:22723: error: possibly undefined macro: AC_LIB_PREPARE_PREFIX
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure:22724: error: possibly undefined macro: AC_LIB_RPATH
configure:22729: error: possibly undefined macro: AC_LIB_LINKFLAGS_BODY
configure:22737: error: possibly undefined macro: AC_LIB_APPENDTOVAR
Comment 9 Natanael Copa 2008-06-17 09:12:22 UTC
this is still an issue
Comment 10 Natanael Copa 2008-06-17 09:13:43 UTC
Created attachment 157223 [details]
lib-prefix.m4

copy this file to m4 dir
Comment 11 Natanael Copa 2008-06-17 09:14:08 UTC
Created attachment 157225 [details]
lib-link.m4
Comment 12 Natanael Copa 2008-06-17 09:14:33 UTC
Created attachment 157227 [details]
lib-ld.m4
Comment 13 Natanael Copa 2008-06-17 09:15:04 UTC
Created attachment 157231 [details]
codeset.m4
Comment 14 Natanael Copa 2008-06-17 09:17:27 UTC
put all the .m4 fiels in $FILESDIR and this patch fixes the issue.

Long time solution would probably to split the gettext package or create an gettext-m4 package that only includes the .m4 files from gettext.

--- flac-1.2.1-r3.ebuild.orig	2008-06-17 09:15:30 +0000
+++ flac-1.2.1-r3.ebuild	2008-06-17 09:06:48 +0000
@@ -33,6 +33,7 @@
 src_unpack() {
 	base_src_unpack
 	cd "${S}"
+	cp "${FILESDIR}"/*.m4 m4
 	AT_M4DIR="m4" eautoreconf
 }
 
Comment 15 Samuli Suominen (RETIRED) gentoo-dev 2009-07-23 08:23:47 UTC
thanks, finally did that