LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   LFS 6.8 installing w3m, configure says gc.h missing (https://www.linuxquestions.org/questions/linux-from-scratch-13/lfs-6-8-installing-w3m-configure-says-gc-h-missing-895660/)

bucovaina78 08-05-2011 12:41 AM

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]

gary185 08-06-2011 03:12 AM

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


All times are GMT -5. The time now is 11:56 PM.