View previous topic :: View next topic |
Author |
Message |
GregWills n00b

Joined: 27 Sep 2021 Posts: 8
|
|
Back to top |
|
 |
fedeliallalinea Administrator


Joined: 08 Mar 2003 Posts: 30544 Location: here
|
Posted: Mon Sep 27, 2021 2:29 pm Post subject: |
|
|
Welcome to gentoo forums!
Code: | /png/PNGImageDecoder.cpp.o):PNGImageDecoder.cpp:function WebCore::decodingFailed(png_struct_def*, char const*): error: undefined reference to 'png_set_longjmp_fn'
lib/libWebCoreGTK.a(lib/../Source/WebCore/CMakeFiles/WebCore.dir/platform/image-decoders/png/PNGImageDecoder.cpp.o):PNGImageDecoder.cpp:function WebCore::PNGImageDecoder::headerAvailable(): error: undefined reference to 'png_process_data_pause'
lib/libWebCoreGTK.a(lib/../Source/WebCore/CMakeFiles/WebCore.dir/platform/image-decoders/png/PNGImageDecoder.cpp.o):PNGImageDecoder.cpp:function WebCore::PNGImageDecoder::headerAvailable(): error: undefined reference to 'png_set_longjmp_fn'
lib/libWebCoreGTK.a(lib/../Source/WebCore/CMakeFiles/WebCore.dir/platform/image-decoders/png/PNGImageDecoder.cpp.o):PNGImageDecoder.cpp:function WebCore::PNGImageDecoder::initFrameBuffer(unsigned long): error: undefined reference to 'png_set_longjmp_fn'
lib/libWebCoreGTK.a(lib/../Source/WebCore/CMakeFiles/WebCore.dir/platform/image-decoders/png/PNGImageDecoder.cpp.o):PNGImageDecoder.cpp:function WebCore::PNGImageDecoder::initFrameBuffer(unsigned long): error: undefined reference to 'png_set_longjmp_fn' |
Try to rebuild media-libs/libpng package. _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
 |
GregWills n00b

Joined: 27 Sep 2021 Posts: 8
|
Posted: Mon Sep 27, 2021 4:03 pm Post subject: |
|
|
Thanks for the reply!
I have rebuilt libpng and ran revdep-rebuild, I still have the same error
Code: | lib/libWebCoreGTK.a(lib/../Source/WebCore/CMakeFiles/WebCore.dir/platform/image-decoders/png/PNGImageDecoder.cpp.o):PNGImageDecoder.cpp:function WebCore::decodingFailed(png_struct_def*, char const*): error: undefined reference to 'png_set_longjmp_fn'
lib/libWebCoreGTK.a(lib/../Source/WebCore/CMakeFiles/WebCore.dir/platform/image-decoders/png/PNGImageDecoder.cpp.o):PNGImageDecoder.cpp:function WebCore::PNGImageDecoder::headerAvailable(): error: undefined reference to 'png_process_data_pause'
lib/libWebCoreGTK.a(lib/../Source/WebCore/CMakeFiles/WebCore.dir/platform/image-decoders/png/PNGImageDecoder.cpp.o):PNGImageDecoder.cpp:function WebCore::PNGImageDecoder::headerAvailable(): error: undefined reference to 'png_set_longjmp_fn'
lib/libWebCoreGTK.a(lib/../Source/WebCore/CMakeFiles/WebCore.dir/platform/image-decoders/png/PNGImageDecoder.cpp.o):PNGImageDecoder.cpp:function WebCore::PNGImageDecoder::initFrameBuffer(unsigned long): error: undefined reference to 'png_set_longjmp_fn'
lib/libWebCoreGTK.a(lib/../Source/WebCore/CMakeFiles/WebCore.dir/platform/image-decoders/png/PNGImageDecoder.cpp.o):PNGImageDecoder.cpp:function WebCore::PNGImageDecoder::initFrameBuffer(unsigned long): error: undefined reference to 'png_set_longjmp_fn'
|
|
|
Back to top |
|
 |
fedeliallalinea Administrator


Joined: 08 Mar 2003 Posts: 30544 Location: here
|
Posted: Mon Sep 27, 2021 4:22 pm Post subject: |
|
|
It looks like you have a libpng.so in /usr/local/lib and probably this cause the error. _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
 |
Hu Moderator

Joined: 06 Mar 2007 Posts: 21029
|
Posted: Mon Sep 27, 2021 4:35 pm Post subject: |
|
|
As fedeliallalinea says, the build system is using /usr/local/lib/libpng.so to try to provide libpng.so. This file was installed outside of Portage and will not be rebuilt/upgraded by re-emerging the libpng package. This is probably not what you want. Since Portage will not touch that file, rebuilding the Gentoo package libpng won't help you. Removing the offending library from /usr/local/lib probably will. However, where there is one locally managed file, there are usually more. I suggest posting the output of find /usr/local/include /usr/local/lib* -type f -ls for review. In most cases, the correct output is to find no files (excepting ones named .keep, which exist to force the directory to be present; those are harmless). |
|
Back to top |
|
 |
fedeliallalinea Administrator


Joined: 08 Mar 2003 Posts: 30544 Location: here
|
Posted: Mon Sep 27, 2021 4:43 pm Post subject: |
|
|
In addition to what Hu said remember that /usr/local takes precedence over what is installed in /usr.
That is why it is not recommended to install a package manually if is present in official tree. _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
 |
GregWills n00b

Joined: 27 Sep 2021 Posts: 8
|
Posted: Mon Sep 27, 2021 11:08 pm Post subject: |
|
|
I did have some older versions of the library for a different application in there, I removed them and it works! Now everything makes senses thank you! |
|
Back to top |
|
 |
fedeliallalinea Administrator


Joined: 08 Mar 2003 Posts: 30544 Location: here
|
Posted: Tue Sep 28, 2021 5:02 am Post subject: |
|
|
If you need an older libpng version on runtime exists media-libs/libpng-compat in tree. _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
 |
|