LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-30-2015, 11:21 AM   #1
SUSESailor
Member
 
Registered: Jul 2015
Posts: 85

Rep: Reputation: Disabled
Weird errors compiling GIMP.


I got tired of every graphical application on my computer needing a different version of libpng, so I went ahead and downloaded and compiled the newest (1.6.17) and wiped out the others. Now, I'm in the process of recompiling everything that uses libpng. I started with gdk-pixbuf, and then I did cairo, then pango, and finally I did gtk-2.0.

I'm at the point of recompiling The GIMP. Before I did the libpng upgrade, it compiled fine. Now, I get the following errors during ./configure.

Code:
configure:17628: gcc -o conftest -g -O2 -Wall -Wdeclaration-after-statement -Wmissing-prototypes -Werror=missing-prototypes -W
strict-prototypes -Wmissing-declarations -Winit-self -Wpointer-arith -Wold-style-definition -Wmissing-format-attribute -Wforma
t-security  -fno-common -fdiagnostics-show-option      conftest.c   >&5
In file included from /usr/local/include/gtk-2.0/gdk/gdkapplaunchcontext.h:31:0,
                 from /usr/local/include/gtk-2.0/gdk/gdk.h:32,
                 from /usr/local/include/gtk-2.0/gtk/gtk.h:32,
                 from conftest.c:47:
/usr/local/include/gtk-2.0/gdk/gdkscreen.h:56:3: error: expected specifier-qualifier-list before 'cairo'
/usr/local/include/gtk-2.0/gdk/gdkscreen.h:120:15: warning: type defaults to 'int' in declaration of 'cairo' [-Wimplicit-int]
/usr/local/include/gtk-2.0/gdk/gdkscreen.h:120:20: error: expected ';', ',' or ')' before '/' token
/usr/local/include/gtk-2.0/gdk/gdkscreen.h:121:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '/' token
In file included from /usr/local/include/gtk-2.0/gdk/gdk.h:33:0,
                 from /usr/local/include/gtk-2.0/gtk/gtk.h:32,
                 from conftest.c:47:
/usr/local/include/gtk-2.0/gdk/gdkcairo.h:33:6: error: expected '=', ',', ';', 'asm' or '__attribute__' before '/' token
/usr/local/include/gtk-2.0/gdk/gdkcairo.h:34:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before '/' token
/usr/local/include/gtk-2.0/gdk/gdkcairo.h:37:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before '/' token
/usr/local/include/gtk-2.0/gdk/gdkcairo.h:39:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before '/' token
/usr/local/include/gtk-2.0/gdk/gdkcairo.h:43:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before '/' token
/usr/local/include/gtk-2.0/gdk/gdkcairo.h:47:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before '/' token
/usr/local/include/gtk-2.0/gdk/gdkcairo.h:52:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before '/' token
/usr/local/include/gtk-2.0/gdk/gdkcairo.h:54:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before '/' token
In file included from /usr/local/include/gtk-2.0/gdk/gdk.h:39:0,
                 from /usr/local/include/gtk-2.0/gtk/gtk.h:32,
                 from conftest.c:47:
/usr/local/include/gtk-2.0/gdk/gdkdrawable.h:201:3: error: expected specifier-qualifier-list before 'cairo'
In file included from /usr/local/include/gtk-2.0/gdk/gdktestutils.h:28:0,
                 from /usr/local/include/gtk-2.0/gdk/gdk.h:56,
                 from /usr/local/include/gtk-2.0/gtk/gtk.h:32,
                 from conftest.c:47:
/usr/local/include/gtk-2.0/gdk/gdkwindow.h:545:6: error: expected '=', ',', ';', 'asm' or '__attribute__' before '/' token
/usr/local/include/gtk-2.0/gdk/gdkwindow.h:629:6: error: expected '=', ',', ';', 'asm' or '__attribute__' before '/' token
In file included from /usr/local/include/gtk-2.0/gtk/gtk.h:234:0,
                 from conftest.c:47:
/usr/local/include/gtk-2.0/gtk/gtkitemfactory.h:47:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
conftest.c:51:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
conftest.c: In function 'main':
conftest.c:51:1: warning: old-style function definition [-Wold-style-definition]
configure:17628: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GIMP"
| #define PACKAGE_TARNAME "gimp"
| #define PACKAGE_VERSION "2.8.2"
| #define PACKAGE_STRING "GIMP 2.8.2"
...
Now, since I just recompiled and reinstalled gdk-pixbuf and gtk-2.0 without any errors, I'm not sure why it's complaining about gdk code. I've looked this up on DuckDuckGo, but all I find are real programming solutions, and I'm not about to go into the source code and start reprogramming a program that compiled just fine on this machine only a few days ago.

BTW, this is Slackware 14.0 with source code for GIMP 2.8.2, which is the one SW 14 comes with.

Any help would be appreciated. Thank you!
 
Old 07-30-2015, 01:45 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,125

Rep: Reputation: 1260Reputation: 1260Reputation: 1260Reputation: 1260Reputation: 1260Reputation: 1260Reputation: 1260Reputation: 1260Reputation: 1260
The code that is failing, conftest, is a short program used to test your configure parameters. My guess is you need to supply some arguments to ./configure.
 
Old 07-31-2015, 01:24 PM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,622

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
Quote:
on my computer needing a different version of libpng,
this WILL!!! require YOU!!! to hack the source code of EVERY older program that uses libpng12 and 13 and 14
to upgrade the code to that of libpng16

-there is a REASON you have a libpng 14 and 16 ( and maybe 13 /12)

you DO have at lease two libpng.pc files ? /usr/lib64/pkgconf/libpng16.pc
right ?
one for 16 and one for 14
then a simlink to the SYSTEM default that IS ALSO the default header used ?
( you have libpng14 and 16 headers ALSO )


also "GIMP 2.8.2" is OLD !!!
the current is 2.8.14

2.8.2 is from - 23-Aug-2012
http://download.gimp.org/pub/gimp/v2.8/

build the CURRENT version 2.8.14

Last edited by John VV; 07-31-2015 at 01:25 PM.
 
Old 07-31-2015, 09:23 PM   #4
SUSESailor
Member
 
Registered: Jul 2015
Posts: 85

Original Poster
Rep: Reputation: Disabled
I was once again able to solve my own problem.

When I moved on to recompile Qt4 it gave me similar - but slightly different - errors. I compared them directly and noticed that they were all referring somehow to cairo. So, I recompiled cairo, but this time I used the actual SlackBuild source code from my installation CD instead of the newer version that I had downloaded from the cairo web site.

I recompiled pango, then I recompiled gtk+, and now The GIMP configures just fine.

Thanks for all the help!
 
Old 08-01-2015, 01:00 PM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,622

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
well ....
have "fun" trying to keep up to date with SECURITY updates

using known old and not supported code is never a good idea


if you want to get rid of the libpng 13,14 issues
then HACK the current software to use the current libpng16

ps
the curent gimp 2.8.14 already is using libpng 16
your OLD version 2.8.2 is NOT

Last edited by John VV; 08-01-2015 at 01:01 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiling module give weird errors... pgb205 Programming 2 04-14-2009 11:02 PM
Very weird errors compiling freetype-2.1.10 on my BLFS system athenian200 Linux - Software 1 03-13-2007 01:21 AM
few errors with gimp and wine xpcandrew Linux - Software 1 01-31-2005 02:14 PM
Various Compiling Errors (GCC compiling Openal, GUIlib, xmms-wma) gregorya Linux - Software 2 08-27-2004 05:03 AM
Weird kernel compiling errors moger Linux - General 11 02-17-2003 07:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration