Issue 341 in webp: Wrong JPEG library version: library is 90, caller expects 80

576 views
Skip to first unread message

bb.be… via monorail

unread,
Apr 14, 2017, 5:37:03 AM4/14/17
to webp-d...@webmproject.org
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 341 by bb.be...@gmail.com: Wrong JPEG library version: library is 90, caller expects 80
https://bugs.chromium.org/p/webp/issues/detail?id=341

What steps will reproduce the problem?
1. /usr/local/bin/cwebp -q 90 aaaaa.jpg -o aaaaa.webp

What is the expected output? What do you see instead?
webp built.
Wrong JPEG library version: library is 90, caller expects 80
Error! Could not process file aaaaa.jpg
Error! Cannot read input picture file 'aaaaa.jpg'

What version of the product are you using? On what operating system?
The last version on Mac OS Sierra

Please provide any additional information below.


--
You received this message because:
1. The project was configured to send all issue notifications to this address

You may adjust your notification preferences at:
https://bugs.chromium.org/hosting/settings

vrab… via monorail

unread,
Apr 14, 2017, 5:53:05 AM4/14/17
to webp-d...@webmproject.org

Comment #1 on issue 341 by vra...@google.com: Wrong JPEG library version: library is 90, caller expects 80
https://bugs.chromium.org/p/webp/issues/detail?id=341#c1

How did you build cwebp? CMake, autotools, homebrew ?

bb.be… via monorail

unread,
Apr 14, 2017, 5:55:47 AM4/14/17
to webp-d...@webmproject.org

Comment #2 on issue 341 by bb.be...@gmail.com: Wrong JPEG library version: library is 90, caller expects 80
https://bugs.chromium.org/p/webp/issues/detail?id=341#c2

Hi,
I followed this:
https://developers.google.com/speed/webp/docs/compiling#building

(pre installed imagemagick)

jz… via monorail

unread,
Apr 14, 2017, 9:35:19 PM4/14/17
to webp-d...@webmproject.org

Comment #3 on issue 341 by jz...@google.com: Wrong JPEG library version: library is 90, caller expects 80
https://bugs.chromium.org/p/webp/issues/detail?id=341#c3

It sounds like the headers/lib you built against don't match the library you're running against.
What's the output of otool -l /usr/local/bin/cwebp? It should show the libjpeg dylib that's being used at runtime.

bb.be… via monorail

unread,
Apr 19, 2017, 7:58:27 AM4/19/17
to webp-d...@webmproject.org

Comment #4 on issue 341 by bb.be...@gmail.com: Wrong JPEG library version: library is 90, caller expects 80
https://bugs.chromium.org/p/webp/issues/detail?id=341#c4

Hi,
otool -l /usr/local/bin/cwebp output.

Attachments:
Screen Shot 2017-04-19 at 13.57.35.png 318 KB

bb.be… via monorail

unread,
Apr 19, 2017, 8:01:29 AM4/19/17
to webp-d...@webmproject.org

Comment #5 on issue 341 by bb.be...@gmail.com: Wrong JPEG library version: library is 90, caller expects 80
https://bugs.chromium.org/p/webp/issues/detail?id=341#c5

Hi,
this is the output:

Load command 12
cmd LC_LOAD_DYLIB
cmdsize 56
name /usr/local/lib/libwebp.6.dylib (offset 24)
time stamp 2 Thu Jan 1 01:00:02 1970
current version 7.2.0
compatibility version 7.0.0
Load command 13
cmd LC_LOAD_DYLIB
cmdsize 56
name /usr/lib/libSystem.B.dylib (offset 24)
time stamp 2 Thu Jan 1 01:00:02 1970
current version 1238.51.1
compatibility version 1.0.0
Load command 14
cmd LC_LOAD_DYLIB
cmdsize 56
name /opt/local/lib/libjpeg.9.dylib (offset 24)
time stamp 2 Thu Jan 1 01:00:02 1970
current version 12.0.0
compatibility version 12.0.0
Load command 15
cmd LC_LOAD_DYLIB
cmdsize 64
name /opt/local/lib/libpng16.16.dylib (offset 24)
time stamp 2 Thu Jan 1 01:00:02 1970
current version 46.0.0
compatibility version 46.0.0
Load command 16
cmd LC_LOAD_DYLIB
cmdsize 56
name /opt/local/lib/libtiff.5.dylib (offset 24)
time stamp 2 Thu Jan 1 01:00:02 1970
current version 8.5.0
compatibility version 8.0.0
Load command 17
cmd LC_FUNCTION_STARTS
cmdsize 16
dataoff 43456
datasize 72
Load command 18
cmd LC_DATA_IN_CODE
cmdsize 16
dataoff 43528
datasize 0

how can I modify the library to be uploaded?



Attachments:
Screen Shot 2017-04-19 at 13.57.35.png 609 KB

jz… via monorail

unread,
Apr 20, 2017, 2:45:12 AM4/20/17
to webp-d...@webmproject.org

Comment #6 on issue 341 by jz...@google.com: Wrong JPEG library version: library is 90, caller expects 80
https://bugs.chromium.org/p/webp/issues/detail?id=341#c6

This matches the failure output: libjpeg.9.dylib is being used at runtime, but at build time the jpeg headers used were referencing an older version.
Do you know what headers libwebp was built against? /opt/local/include should have the matching headers to libjpeg.9.dylib.
If you don't add /opt/local/include to the search path (you can do C_INCLUDE_PATH=/opt/local/include or CFLAGS=-I/opt/local/include) configure may find others elsewhere if you have them installed.

bb.be… via monorail

unread,
Apr 20, 2017, 3:57:28 AM4/20/17
to webp-d...@webmproject.org

Comment #7 on issue 341 by bb.be...@gmail.com: Wrong JPEG library version: library is 90, caller expects 80
https://bugs.chromium.org/p/webp/issues/detail?id=341#c7

Please,
can you list the steps to the right configuration?
In the past I have never encountered these problems.

Tnx.

jz… via monorail

unread,
Apr 21, 2017, 12:11:00 AM4/21/17
to webp-d...@webmproject.org

Comment #8 on issue 341 by jz...@google.com: Wrong JPEG library version: library is 90, caller expects 80
https://bugs.chromium.org/p/webp/issues/detail?id=341#c8

If you want to target the headers and lib in /opt/local the following configure should work:

configure CFLAGS='-I/opt/local/include' LDFLAGS='-L/opt/local/lib'

bb.be… via monorail

unread,
Apr 21, 2017, 3:32:35 AM4/21/17
to webp-d...@webmproject.org

Comment #9 on issue 341 by bb.be...@gmail.com: Wrong JPEG library version: library is 90, caller expects 80
https://bugs.chromium.org/p/webp/issues/detail?id=341#c9

Ok, but in which file?

Or concat to cwebp command?

jz… via monorail

unread,
Apr 21, 2017, 4:38:33 AM4/21/17
to webp-d...@webmproject.org

Comment #10 on issue 341 by jz...@google.com: Wrong JPEG library version: library is 90, caller expects 80
https://bugs.chromium.org/p/webp/issues/detail?id=341#c10

The command I was referencing was to the configure script to rebuild the library. The precompiled (static) binaries [1] might work for you as well.

[1] https://developers.google.com/speed/webp/docs/precompiled

jz… via monorail

unread,
Aug 15, 2017, 11:46:23 PM8/15/17
to webp-d...@webmproject.org
Updates:
Status: Invalid

Comment #11 on issue 341 by jz...@google.com: Wrong JPEG library version: library is 90, caller expects 80
https://bugs.chromium.org/p/webp/issues/detail?id=341#c11

Closing this for lack of activity. If there's still an issue feel free to reopen the bug.
Reply all
Reply to author
Forward
0 new messages