LinuxQuestions.org
Review your favorite Linux distribution.
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 08-05-2011, 12:41 AM   #1
bucovaina78
Member
 
Registered: Oct 2004
Location: Belgium / Antwerp
Distribution: Debian,Ubuntu,Finnix,LFS
Posts: 267

Rep: Reputation: 31
LFS 6.8 installing w3m, configure says gc.h missing


So I've got a fresh install of LFS 6.8.

I want to install w3m now so I tried to install it using

Code:
./configure --prefix=/usr \
            --libexecdir=/usr/lib \
            --sysconfdir=/etc &&
make
That says gc.h missing

So I googled around a bit and I have found a link to download gc-7.1 I installed it with

Code:
./configure --prefix=/usr \
(I have no idea whether to use more switches or not so just went with this one.

Now the configure command of w3m runs fine but when i do make I get the following:


Code:
gcc  -I. -I. -g -O2 -I./libwc  -DHAVE_CONFIG_H -DAUXBIN_DIR=\"/usr/lib/w3m\" -DCGIBIN_DIR=\"/usr/lib/w3m/cgi-bin\" -DHELP_DIR=\"/usr/share/w3m\" -DETC_DIR=\"/etc\" -DCONF_DIR=\"/etc/w3m\" -DRC_DIR=\"~/.w3m\" -DLOCALEDIR=\"/usr/share/locale\"   -c -o main.o main.c
In file included from html.h:10:0,
                 from fm.h:39,
                 from main.c:3:
istream.h:23:8: fout: redefinition of ‘struct file_handle’
/usr/include/bits/fcntl.h:239:8: note: originally defined here
main.c: In functie ‘getChar’:
main.c:2264:5: let op: passing argument 1 of ‘wtf_parse1’ from incompatible pointer type [enabled by default]
./libwc/wtf.h:71:19: note: expected ‘wc_uchar **’ but argument is of type ‘char **’
make: *** [main.o] Fout 1
I'm guessing there's something wrong on the compatibility level with gc-7.1 since the last version I can find dates from somewhere in 2008! Other than that I have no clue.


[EDIT]
I did some more testing. I read the blfs manual how to install w3m and saw you needed gc6.8 so I uninstalled 7.1 and did it how the book told to. Still the same error
[/EDIT]

Last edited by bucovaina78; 08-05-2011 at 12:54 AM. Reason: did some more testintg
 
Old 08-06-2011, 03:12 AM   #2
gary185
Member
 
Registered: Jul 2011
Posts: 113

Rep: Reputation: Disabled
i don't think this is garbage collector troubles
i think the include /usr/include/bits/fcntl.h is libc ?? not sure
it might just be the compiler version is enforcing somthing new so it could be a gcc thing
to get it to work
you will have to rename the w3m local structure file_handle
to something like io_file_handle
the variable name file_handle has already been taken
not such an easy task
i see a patch in the fedora stream that does it but not sure if it's the version of w3m you are working on
you might just be able to do a git on the fedora w3m code
try something like
git clone git://pkgs.fedoraproject.org/w3m
that should build better
or just try later versions of w3m
 
  


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
[SOLVED] LFS 6.7 : $LFS/sources and $LFS/tools folders missing prakashsince92 Linux From Scratch 5 12-09-2010 02:26 PM
installing w3m and gc7.1 mineshvarmas Linux - Software 0 03-25-2009 01:18 AM
Problem compiling w3m: Missing gc.h ixhabbaba Linux - Software 4 10-09-2007 01:11 PM
help installing ANYTHING... configure doesn't work bc I am missing lots of packages Avatar Linux - Software 30 12-08-2003 09:43 PM
LFS 5.0 stuck @ gettext-0.12.1 - missing aclocal-1.7 quantumechanix Linux From Scratch 1 11-26-2003 11:23 AM


All times are GMT -5. The time now is 04:45 PM.

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