Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 283248 - [java-overlay] dev-java/icedtea6 fails to use media-libs/jpeg-7
Summary: [java-overlay] dev-java/icedtea6 fails to use media-libs/jpeg-7
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
: 284582 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-08-30 15:03 UTC by Florian Scandella
Modified: 2009-10-13 15:59 UTC (History)
4 users (show)

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


Attachments
icedtea6 ebuild (icedtea6-1.5.2.ebuild,7.52 KB, text/plain)
2009-09-11 15:06 UTC, Florian Scandella
Details
small java program to test image loading (JpgTest.java,557 bytes, text/plain)
2009-10-11 19:25 UTC, Florian Scandella
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Scandella 2009-08-30 15:03:25 UTC
icedtea6 trys to dlopen libjpeg.so.62, but cannot find it and crashes, recompile does not help. icedtea6 should depend on =jpeg-6 until this is fixed.

Reproducible: Always

Steps to Reproduce:
1.display jpeg in java app
2.run with icedtea6
3.




strace (crashing part)

[pid 24308] open("/usr/lib64/icedtea6/jre/lib/amd64/server/libjpeg.so.62", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid 24308] open("/usr/lib64/icedtea6/jre/lib/amd64/libjpeg.so.62", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid 24308] open("/usr/lib64/icedtea6/jre/lib/amd64/libjpeg.so.62", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid 24308] open("/etc/ld.so.cache", O_RDONLY) = 10
[pid 24308] fstat(10, {st_mode=S_IFREG|0644, st_size=176230, ...}) = 0
[pid 24308] mmap(NULL, 176230, PROT_READ, MAP_PRIVATE, 10, 0) = 0x7fb98e674000
[pid 24308] close(10)                   = 0
[pid 24308] open("/lib64/libjpeg.so.62", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid 24308] open("/usr/lib64/libjpeg.so.62", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid 24308] munmap(0x7fb98e674000, 176230) = 0
[pid 24308] --- SIGSEGV (Segmentation fault) @ 0 (0) ---
Comment 1 Florian Scandella 2009-08-30 15:17:58 UTC
if compiled with jpeg-7, it wants to open libjpeg.so.62, but expects it to be jpeg-7

this happens when i copy a old jpeg-6 in the libpath:

sun.awt.image.ImageFormatException: Wrong JPEG library version: library is 62, caller expects 70
	at sun.awt.image.JPEGImageDecoder.readImage(Native Method)
	at sun.awt.image.JPEGImageDecoder.produceImage(JPEGImageDecoder.java:136)
	at sun.awt.image.InputStreamImageSource.doFetch(InputStreamImageSource.java:264)
	at sun.awt.image.ImageFetcher.fetchloop(ImageFetcher.java:189)
	at sun.awt.image.ImageFetcher.run(ImageFetcher.java:153)

createing a symlink works (libjpeg.so.62 -> libjpeg.so.7) if icedtea6 is compiled with jpeg-7
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2009-09-10 10:05:13 UTC
Symlinking is all wrong. If icedtea6 is a binary only package it should be using media-libs/jpeg-compat.

|| ( media-libs/jpeg-compat <media-libs/jpeg-7 )

If it's a source based package then it should be fixed and recompiled against jpeg-7 or someone should contact the person who created the binary package to do so.
Comment 3 Florian Scandella 2009-09-10 23:58:55 UTC
yes, i know symlinking is wrong, but it's the only solution i have for now. and yes i'm talking about dev-java/icedtea6 from java overlay (source build, not binary dist, i'm on amd64)
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2009-09-11 10:24:15 UTC
*** Bug 284582 has been marked as a duplicate of this bug. ***
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2009-09-11 10:31:51 UTC
(In reply to comment #3)
> yes, i know symlinking is wrong, but it's the only solution i have for now. and
> yes i'm talking about dev-java/icedtea6 from java overlay (source build, not
> binary dist, i'm on amd64)

Then it's most likely using bundled and possibly internal jpeg headers and then tries to use system library causing the conflict.

Can you post a link to the source tree?
Comment 6 Florian Scandella 2009-09-11 15:06:53 UTC
Created attachment 203792 [details]
icedtea6 ebuild
Comment 7 Florian Scandella 2009-09-11 15:07:11 UTC
overlay: svn+http://overlays.gentoo.org/svn/proj/java/java-overlay/
package: dev-java/icedtea6-1.5.2

ebuild attached
Comment 8 Samuli Suominen (RETIRED) gentoo-dev 2009-09-13 13:45:48 UTC
icedtea6-bin ebuild's in tree fixed
Comment 9 Florian Scandella 2009-09-23 00:18:00 UTC
didn't try the bin package, but icedtea6-1.6.1 has the same behavior.
Comment 10 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2009-10-11 18:44:43 UTC
Got the testcase, please?
Comment 11 Florian Scandella 2009-10-11 19:25:09 UTC
Created attachment 206803 [details]
small java program to test image loading
Comment 12 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2009-10-11 19:53:50 UTC
Thanks, reproduced and hopefully found the source of problem.
Building patched version...
Comment 13 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2009-10-11 21:47:22 UTC
icedtea6-1.6.1-r1 in java-overlay is fixed, icedtea6-bin will follow
Comment 14 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2009-10-12 19:22:03 UTC
icedtea6-1.6.1 fixed
Comment 15 Florian Scandella 2009-10-12 22:07:27 UTC
hmm ... i don't see icedtea6-1.6.1-r1 or changes in icedtea6-1.6.1 in java-overlay (revision 7933)
Comment 16 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2009-10-12 22:16:02 UTC
Forgot to commit, sorry. Try now.
Comment 17 Karl Hakimian 2009-10-12 22:17:21 UTC
And here I thought it was just me. Thanks. It shows up now.
Comment 18 Florian Scandella 2009-10-13 15:59:47 UTC
it's working now, thx