Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 102423 - sun-jdk-1.4.2.08-r1 does not compile with glibc older than 2.3.5
Summary: sun-jdk-1.4.2.08-r1 does not compile with glibc older than 2.3.5
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
: 108283 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-08-13 13:25 UTC by Flammie Pirinen (RETIRED)
Modified: 2005-12-16 06:51 UTC (History)
2 users (show)

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


Attachments
Proposed fix to sun-jdk-1.4.2.08-r1.ebuild (sun-jdk-1.4.2.08-r1-fix.ebuild,6.61 KB, text/plain)
2005-09-01 13:24 UTC, Alexander J Lee
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Flammie Pirinen (RETIRED) gentoo-dev 2005-08-13 13:25:16 UTC
Compiling sun-jdk-1.4.0.08-r1 with older glibc dies with:
javaws-waitid.c: In function `waitid':
javaws-waitid.c:28: error: `WEXITED' undeclared (first use in this function)
javaws-waitid.c:28: error: (Each undeclared identifier is reported only once
javaws-waitid.c:28: error: for each function it appears in.)

WEXITED is declared in bits/waitflags.h (declared in sys/wait.h) of glibc 2.3.5,
but is missing from 2.3.4 versions.

I wouldn't normally report bugs that pertain to old versions of packages but
seeing old glibc's still exist in the tree I thought you might want to know.
Comment 1 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2005-08-13 13:28:58 UTC
I'm confused. We don't have sun-jdk-1.4.0.08-r1 in our tree, and it most
certainly has never been compiled from source code.

Can you please provide more information on about which package you are compiling?
Comment 2 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2005-08-13 13:32:38 UTC
Ah, you're referring to 1.4.2.08-r1, of course, which indeed contains a tiny
program which is compiled during merge time.

I guess we should just add >=sys-libs/glibc-2.3.5 on this, unless somebody sees
any reason not to? This package is x86-only, and 2.3.5 is stable on x86.
Comment 3 Flammie Pirinen (RETIRED) gentoo-dev 2005-08-20 14:32:56 UTC
Ah, 1.4.2.08 of course, my mistake, sorry. I fixed the description summary to
reflect this.

Yes, that would probably be reasonable resolution for x86, if you ask me? I was
going to suggest something similar as well, but I didn't remember if there was
anything special to remember wrt. depending on glibc. 

The same fix will probably be needed to add to 1.4.2.07 and 1.4.2.09 as well.
Comment 4 Alexander J Lee 2005-09-01 13:24:44 UTC
Created attachment 67435 [details]
Proposed fix to sun-jdk-1.4.2.08-r1.ebuild

(In reply to comment #2)

Emerging an update to glibc actually solved the problem for me. 

It is reasonable to add the ">=sys-libs/glibc-2.3.5" dependency restriction on
the ebuild, given the cryptic error message users would get instead (very hard
to find out what went wrong, without prior knowledge of glibc). The goal of
">=sys-libs/glibc-2.3.5" is to shield end users from that kind of bugs and it
comes at a very low cost (just upgrading glibc).

I definitely support the inclusion of ">=sys-libs/glibc-2.3.5" on the ebuild.

I've sent a proposed correction to the file, but the devs might review the file
name, it doesn't follow standards.
Comment 5 Thomas Matthijs (RETIRED) gentoo-dev 2005-09-10 08:28:33 UTC
I feel odd adding a dep on  >=sys-libs/glibc-2.3.5 
since the thing we compile is too get around a bug in javaws when using the 
newer glibc

but if we don't and you update glibc, javaws will be broken
so probably still the best solution? (ie will always work)
Comment 6 Thomas Matthijs (RETIRED) gentoo-dev 2005-09-30 08:32:59 UTC
added the dep 
so it will 'always' work
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2005-10-06 08:56:47 UTC
*** Bug 108283 has been marked as a duplicate of this bug. ***
Comment 8 sf 2005-12-16 06:51:21 UTC
This issue is solved upstream for 1.4.2.10. I just filed bug #115772 for this.