LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 07-19-2004, 01:45 PM   #1
Dargason
LQ Newbie
 
Registered: Jul 2004
Location: Leuven, Belgium
Distribution: Mandrake 10, LFS 5.1.1, Debian
Posts: 29

Rep: Reputation: 15
Trouble compiling GTK+


Hey all,

I'm trying to get Mozilla running, and naturally one of the dependencies is GTK+. I installed all the other dependent packages first:

pkgconfig-0.15.0
libtiff-3.6.1
lcms-1.12
libjpeg-6b
Glib-2.4.1
ATK-1.6.1
Pango-1.4.0
which-2.16
libmng-1.0.7
libIDL-0.8.3

with no problems. Unfortunately, when I try to compile GTK+-2.4.1, I get an error: fnmatch.h: file not found. I tried downloading a more recent version -- 2.4.4 and got the same result.

Has anyone seen this before? Any ideas on how to fix this problem?

Thanks,
Mike
 
Old 07-19-2004, 03:01 PM   #2
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
It might help if you showed us the error message. Please include five or more lines from before it goes wrong and says error. Is this on LFS or Mandrake that this is happening?

Edit - on my system fnmatch.h is in /usr/include and it is a header file installed by glibc. If your LFS doesn't have /usr/include/fnmatch.h then something went wrong compiling glibc. Did you run the testsuite?

Last edited by Andrew Benton; 07-19-2004 at 03:12 PM.
 
Old 07-19-2004, 03:09 PM   #3
Dargason
LQ Newbie
 
Registered: Jul 2004
Location: Leuven, Belgium
Distribution: Mandrake 10, LFS 5.1.1, Debian
Posts: 29

Original Poster
Rep: Reputation: 15
Well that OS doesn't have any cut and paste or browser capability, but maybe I can save the output to a file, then reboot and get at it that way...
 
Old 07-19-2004, 03:14 PM   #4
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Quote:
Originally posted by Dargason
Well that OS doesn't have any cut and paste or browser capability, but maybe I can save the output to a file, then reboot and get at it that way...
If you're just doing it to get the error message, why not work in chroot from Mandrake?
 
Old 07-19-2004, 03:28 PM   #5
Dargason
LQ Newbie
 
Registered: Jul 2004
Location: Leuven, Belgium
Distribution: Mandrake 10, LFS 5.1.1, Debian
Posts: 29

Original Poster
Rep: Reputation: 15
Ok,

Here's the error:

Code:
Making all in xdgmime
make[4]: Entering directory `/sources/gtk+-2.4.4/gtk/xdgmime'
if /bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DXDG_PREFIX=_gtk_xdg    -g -O2 -Wall -MT xdgmimeglob.lo -MD -MP -MF ".deps/xdgmimeglob.Tpo" \
  -c -o xdgmimeglob.lo `test -f 'xdgmimeglob.c' || echo './'`xdgmimeglob.c; \
then mv -f ".deps/xdgmimeglob.Tpo" ".deps/xdgmimeglob.Plo"; \
else rm -f ".deps/xdgmimeglob.Tpo"; exit 1; \
fi
 gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DXDG_PREFIX=_gtk_xdg -g -O2 -Wall -MT xdgmimeglob.lo -MD -MP -MF .deps/xdgmimeglob.Tpo -c xdgmimeglob.c  -fPIC -DPIC -o .libs/xdgmimeglob.o
xdgmimeglob.c:35:21: fnmatch.h: No such file or directory
xdgmimeglob.c: In function `_gtk_xdg_hash_lookup_file_name':
xdgmimeglob.c:320: warning: implicit declaration of function `fnmatch'
make[4]: *** [xdgmimeglob.lo] Error 1
make[4]: Leaving directory `/sources/gtk+-2.4.4/gtk/xdgmime'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/sources/gtk+-2.4.4/gtk'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/sources/gtk+-2.4.4/gtk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/sources/gtk+-2.4.4'
make: *** [all] Error 2
I did find an fname.h inside a source directory for glibc-2.3.3... but I can't find one in any of the normal places. I also noticed that I have a man page for fname, but the command does not exist. Do you think there might be something messed up with my glibc installation? If so, I can't believe I've gotten this far....

Mike
 
Old 07-19-2004, 03:39 PM   #6
Dargason
LQ Newbie
 
Registered: Jul 2004
Location: Leuven, Belgium
Distribution: Mandrake 10, LFS 5.1.1, Debian
Posts: 29

Original Poster
Rep: Reputation: 15
Just saw your edit --

Yes, I ran the test suite. And I just tried to run it again, but it wants me to reconfigure and re-make before I can run the test.

Just curious, but would screw up anything if I just recompiled and re-installed glibc? Or would I have to reinstall my other packages
if I did that?
 
Old 07-19-2004, 04:07 PM   #7
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
I don't know, if it was me I'd start again from the begining. Why don't you ask on the LFS support mailing list http://linuxfromscratch.org/mailman/...fo/lfs-support If you send an email to them it will get forwarded to a lot of smart people.
 
Old 07-19-2004, 04:39 PM   #8
Dargason
LQ Newbie
 
Registered: Jul 2004
Location: Leuven, Belgium
Distribution: Mandrake 10, LFS 5.1.1, Debian
Posts: 29

Original Poster
Rep: Reputation: 15
Well, I tried just copying the fnmatch.h file from the glibc source directory into the /usr/include directory, and GTK+ compiled
fine after that. Firefox is chugging away also.

All I can figure is that somehow that file got removed somehere along the line... maybe by a "make uninstall" or something
devious like that.

As far as rebuilding, I plan on doing that -- this is all for education. After I get a basic system running and I feel a bit more
like I know what I'm doing, I plan on trying out one using the 2.6 kernel.

Thanks for your help!

Mike
 
Old 07-19-2004, 04:47 PM   #9
Dargason
LQ Newbie
 
Registered: Jul 2004
Location: Leuven, Belgium
Distribution: Mandrake 10, LFS 5.1.1, Debian
Posts: 29

Original Poster
Rep: Reputation: 15
Whee! It works!

Now I just need to figure out how to enable my scroll button...
 
Old 07-29-2004, 02:15 PM   #10
PsychosisNode
Member
 
Registered: Apr 2003
Location: Reading, Berkshire, IN-GER-LUND!!!
Distribution: Mandriva 2006
Posts: 228

Rep: Reputation: 30
GTK compilation woes

Hello, I thought I'd post here since this thread is full of GTK+ experts ;)

I'm trying to compile the latest GTK, I've compiled and installed the latest ATK, GLIB and Pango, but quite far into the make process (for GTK), I get "../../gtk/.libs/libgtk-x11-2.0.so: undefined reference to `pango_find_base_dir'" I've tried using the --includedir=/usr/include/pango-1.0/ option when running the configure script, but to no avail. I am using Mandrake 10.

Cheers!
 
  


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 gtk? @ngelot Linux - Software 1 11-14-2005 10:20 AM
after compiling GTK deepsix Linux - Software 2 04-02-2005 07:12 PM
compiling gaim/ gtk error (two versions of gtk) webazoid Linux - Software 0 07-06-2004 06:05 PM
Compiling GTK+ 2.2.1 Ju Deddo Koinu Linux - Software 4 04-29-2003 12:41 AM
Compiling GTK+ 2.0.9 Dexter750 Linux - Software 10 04-28-2003 08:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 03:47 PM.

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