LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices

Reply
 
Search this Thread
Old 12-10-2004, 10:54 AM   #1
drowbot
Member
 
Registered: Dec 2004
Location: Tulsa, OK, USA
Distribution: SUSE, ArchLinux, Gentoo, LFS, Slackware, Fedora
Posts: 100

Rep: Reputation: 15
GIMP Compile Problem, LFS 6.0 & BLFS 5.1


I'm trying to compile GIMP 2.0.0 on my LFS-6.0 system. I have the required dependencies, GTK+-2.4.1 and libart_lgpl-2.3.16. I also have libmng-1.0.7 and Python-2.3.3 installed. I am using the 'package user' method for package management, as described in the BLFS hint. When I run 'make' in my GIMP build directory, I get the following errors:

paint-funcs.c:4484: error: conflicting types for 'initial_region'
paint-funcs.h:359: error: previous declaration of 'initial_region' was here
paint-funcs.c:4484: error: conflicting types for 'initial_region'
paint-funcs.h:359: error: previous declaration of 'initial_region' was here
make[3]: *** [paint-funcs.o] Error 1
make[3]: Leaving directory `/usr/src/gimp/gimp-2.0.0/app/paint-funcs'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/gimp/gimp-2.0.0/app'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/gimp/gimp-2.0.0'

Can anybody help me out? Thanks!
 
Old 12-10-2004, 01:16 PM   #2
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Gimp-2.0.0 wouldn't compile with gcc-3.4 without being patched slightly. You could open gimp-2.0.0/app/paint-funcs/paint-funcs.c in a text editor and go to line 4483 (or therabouts) and change the line
InitialMode type)
so that it reads
CombinationMode type)
Like this
Code:
--- gimp-2.0.0.orig/app/paint-funcs/paint-funcs.c	2004-03-13 11:34:45.000000000 +0000
+++ gimp-2.0.0/app/paint-funcs/paint-funcs.c	2004-07-14 16:35:51.513668718 +0100
@@ -4480,7 +4480,7 @@
 		gint		      opacity,
 		GimpLayerModeEffects  mode,
 		gboolean	     *affect,
-		InitialMode	      type)
+		CombinationMode	      type)
 {
   struct initial_regions_struct st;
Or you could take the easy way out and download whatever the current version is. I read on Slashdot that Gimp-2.2 is due for release any day

Last edited by Andrew Benton; 12-10-2004 at 01:18 PM.
 
Old 12-10-2004, 01:37 PM   #3
drowbot
Member
 
Registered: Dec 2004
Location: Tulsa, OK, USA
Distribution: SUSE, ArchLinux, Gentoo, LFS, Slackware, Fedora
Posts: 100

Original Poster
Rep: Reputation: 15
Thanks! I'll go with the hands-on approach. Thanks again!
 
  


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
BLFS using LFS Live CD? AxXium Linux From Scratch 6 07-25-2005 07:15 PM
LFS or BLFS masand Linux From Scratch 16 12-02-2004 02:31 PM
Lfs --> Blfs KptnKrill Linux From Scratch 3 10-11-2003 11:19 AM
blfs and lfs? newpenguin Linux From Scratch 7 12-04-2002 07:58 PM
Lfs & Blfs safrout Linux From Scratch 4 07-05-2002 07:27 AM


All times are GMT -5. The time now is 11:24 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration