Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Failing to emerge webkit-gtk
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
GregWills
n00b
n00b


Joined: 27 Sep 2021
Posts: 8

PostPosted: Mon Sep 27, 2021 2:21 pm    Post subject: Failing to emerge webkit-gtk Reply with quote

I am getting a compile error when trying to build webkit-gtk. I've seen that people run out of memory building this package, I've confirmed that that is not the issue.

Emerge info : https://pastebin.com/jcXyW4Lh

Use info: https://pastebin.com/DfiXviG0

Final part of build log: https://pastebin.com/y1R1bt9v
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30544
Location: here

PostPosted: Mon Sep 27, 2021 2:29 pm    Post subject: Reply with quote

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
View user's profile Send private message
GregWills
n00b
n00b


Joined: 27 Sep 2021
Posts: 8

PostPosted: Mon Sep 27, 2021 4:03 pm    Post subject: Reply with quote

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
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30544
Location: here

PostPosted: Mon Sep 27, 2021 4:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21029

PostPosted: Mon Sep 27, 2021 4:35 pm    Post subject: Reply with quote

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
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30544
Location: here

PostPosted: Mon Sep 27, 2021 4:43 pm    Post subject: Reply with quote

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
View user's profile Send private message
GregWills
n00b
n00b


Joined: 27 Sep 2021
Posts: 8

PostPosted: Mon Sep 27, 2021 11:08 pm    Post subject: Reply with quote

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
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30544
Location: here

PostPosted: Tue Sep 28, 2021 5:02 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum