Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 103483 - media-libs/jpeg-6b-r5 configure fails (error: static: invalid feature name)
Summary: media-libs/jpeg-6b-r5 configure fails (error: static: invalid feature name)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Graphics Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-23 11:31 UTC by Johannes Dahl
Modified: 2006-07-05 16:17 UTC (History)
3 users (show)

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


Attachments
output of 'emerge info' (emerge_info,13 bytes, text/plain)
2005-08-23 11:33 UTC, Johannes Dahl
Details
output of 'emerge info' (emerge_info,1.58 KB, text/plain)
2005-08-23 11:39 UTC, Johannes Dahl
Details
output of 'emerge jpeg' (emerge_jpeg,1.21 KB, text/plain)
2005-08-24 12:18 UTC, Johannes Dahl
Details
output of 'emerge jpeg' (emerge_jpeg,1.25 KB, text/plain)
2005-08-24 17:52 UTC, Johannes Dahl
Details
Output of emerge media-libs/jpeg (jpeg,1.30 KB, text/plain)
2005-08-25 01:40 UTC, Markus Arro
Details
07_all_jpeg-LANG.patch (07_all_jpeg-LANG.patch,1.66 KB, patch)
2005-09-07 18:57 UTC, SpanKY
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Johannes Dahl 2005-08-23 11:31:21 UTC
Anytime I "emerge jpeg" (media-libs/jpeg-6b-r5), it quits, saying "configure: error: static: invalid feature name"

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Actual Results:  
jpeg fails to configure, compile and install

Expected Results:  
jpeg should configure, compile and install

I will add the output of 'emerge info' as an attatchment.
Comment 1 Johannes Dahl 2005-08-23 11:33:23 UTC
Created attachment 66670 [details]
output of 'emerge info'
Comment 2 Johannes Dahl 2005-08-23 11:39:59 UTC
Created attachment 66671 [details]
output of 'emerge info'
Comment 3 Karol Wojtaszek (RETIRED) gentoo-dev 2005-08-24 08:22:42 UTC
Could you show me all output from that emerge, because i can't reproduce it.
Comment 4 Karol Wojtaszek (RETIRED) gentoo-dev 2005-08-24 08:31:03 UTC
and attach config.log from /var/tmp/portage/jpeg-6b-r5/work
Comment 5 Johannes Dahl 2005-08-24 12:18:25 UTC
Created attachment 66783 [details]
output of 'emerge jpeg'
Comment 6 Johannes Dahl 2005-08-24 12:20:57 UTC
(In reply to comment #4)
> and attach config.log from /var/tmp/portage/jpeg-6b-r5/work

Sorry, it doesn't exist.
Comment 7 scott 2005-08-24 16:24:07 UTC
(In reply to comment #6)
> (In reply to comment #4)
> > and attach config.log from /var/tmp/portage/jpeg-6b-r5/work
> 
> Sorry, it doesn't exist.

Could you try the merge again and re-post the screen-scrape of the error
message?   The current one is funky...  the lines appear out of order.

Also, after this merge fails, could you check for the presence of that
config.log file?
Comment 8 Johannes Dahl 2005-08-24 17:52:58 UTC
Created attachment 66829 [details]
output of 'emerge jpeg'
Comment 9 Johannes Dahl 2005-08-24 18:00:03 UTC
config.log is not present neither during nor after the emerge process -- I just
checked.
Comment 10 Markus Arro 2005-08-25 01:40:58 UTC
Created attachment 66842 [details]
Output of emerge media-libs/jpeg
Comment 11 Markus Arro 2005-08-25 01:56:35 UTC
Comment on attachment 66842 [details]
Output of emerge media-libs/jpeg

Calculating dependencies ...done!
>>> emerge (1 of 1) media-libs/jpeg-6b-r5 to /
>>> md5 files   ;) jpeg-6b-r5.ebuild
>>> md5 files   ;) jpeg-6b-r4.ebuild
>>> md5 files   ;) files/jpeg-6b-freebsd.patch
>>> md5 files   ;) files/jpeg-6b-gentoo.patch
>>> md5 files   ;) files/digest-jpeg-6b-r4
>>> md5 files   ;) files/digest-jpeg-6b-r5
>>> md5 src_uri ;) jpegsrc.v6b.tar.gz
>>> Unpacking source...
>>> Unpacking jpegsrc.v6b.tar.gz to /var/tmp/portage/jpeg-6b-r5/work
 * Applying jpeg-6b-freebsd.patch ...
 * Applying uClibc/libtool patches ...
 * Fixing ${S}/ltconfig ...
 * Applying jpeg-6b-gentoo.patch ...
>>> Source unpacked.
 * econf: updating jpeg-6b/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating jpeg-6b/config.sub with /usr/share/gnuconfig/config.sub
./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man
--infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc
--localstatedir=/var/lib --build=i686-pc-linux-gnu --enable-shared
--enable-static
configure: error: static: invalid feature name
Comment 12 Markus Arro 2005-08-25 01:58:21 UTC
Comment on attachment 66842 [details]
Output of emerge media-libs/jpeg

I also have encountered this. Here is my output of emerge jpeg.

The problem ocurred already in jpeg-6b-r4. 

Also, if I run the configure script in
/var/tmp/portage/jpeg-6b-r5/work/jpeg-6b/ with the same options, except
"--enable-static", the configure script completes fine.
Comment 13 SpanKY gentoo-dev 2005-09-05 23:16:27 UTC
what does this show on your systems ?  what version of sed do you guys have ?

ac_option="--enable-static"
ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
ac_sed=`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`
if test -n "$ac_sed"; then
  echo "configure: error: $ac_feature: invalid feature name ($ac_sed)"
else
  echo "configure: $ac_feature: feature name is ok"
fi
Comment 14 Johannes Dahl 2005-09-07 03:18:38 UTC
configure: error: static: invalid feature name (tt)

GNU Sed version 4.1.4
Comment 15 SpanKY gentoo-dev 2005-09-07 05:40:15 UTC
do you use a different LANG or something ?  if you export LC_ALL=C before
running that test code i posted, does it work ?
Comment 16 Johannes Dahl 2005-09-07 09:42:06 UTC
Ok, when I set LC_ALL to C, I can emerge jpeg (well, at least it doesn't stop
with the configure error). Thanks, but could anyone explain this weird behavior?
Comment 17 SpanKY gentoo-dev 2005-09-07 10:10:39 UTC
you never said what langauge you normally have your system set to use

not all languages have an alphabet which starts with a and ends with z
Comment 18 SpanKY gentoo-dev 2005-09-07 18:57:57 UTC
Created attachment 67881 [details, diff]
07_all_jpeg-LANG.patch

try this patch please
Comment 19 Johannes Dahl 2005-09-08 05:57:22 UTC
When I patched /var/tmp/portage/jpeg-6b-r5/work/jpeg-6b/configure and ran it
with the same options 'emerge jpeg' provides, it configured properly, so I guess
the patch works. Was that what I was supposed to do :)?

You're right about the system language; I never said what it is (it's Estonian
(et_EE.utf8)) and it doesn't end with z (it ends with 
Comment 20 Johannes Dahl 2005-09-08 05:57:22 UTC
When I patched /var/tmp/portage/jpeg-6b-r5/work/jpeg-6b/configure and ran it
with the same options 'emerge jpeg' provides, it configured properly, so I guess
the patch works. Was that what I was supposed to do :)?

You're right about the system language; I never said what it is (it's Estonian
(et_EE.utf8)) and it doesn't end with z (it ends with ΓΌ).
Comment 21 SpanKY gentoo-dev 2005-09-08 16:57:18 UTC
added patch to current ebuild
Comment 22 Enrico 'nekrad' Weigelt 2006-07-05 06:21:33 UTC
This patch isn't really a fix, just a ugly workaround, since it changes an auto-created file. Its works only in the special case, that this ebuild doesn't recreate ./configure. Maybe its okay for gentoo, but not for the upstream. 
(and the badness: this patch is used by other packages, ie gpm, too).

Could anyone explain what this patch actually does, exactly ?

It moves some lines (but I didn't track where they're exactly, yet), which seem to come from some from somewhere in the deep of autoconf. So if there's a bug, we should fix it there.
Comment 23 SpanKY gentoo-dev 2006-07-05 16:17:43 UTC
if you read more into autotools you'd know that is the correct fix

there is no fix for everyone else because if you simply regenerate configure with a newer version of autoconf, the fix i posted will be part of it ... that's all i did, rip code out of newer autoconf's that does not exist in older autoconf's because autoconf-2.13 is broken now and forever