[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gEDA-user: Guile Installation failure and geda



M. Scott Moberly wrote:

> I'm having a problem compiling Guile. Here's the final text of the 
> compilation:
> 
> Making all in ice-9
> make[1]: Entering directory `/home/smoberly/geda/guile-1.4/ice-9'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/home/smoberly/geda/guile-1.4/ice-9'
> Making all in qt
> make[1]: Entering directory `/home/smoberly/geda/guile-1.4/qt'
> Making all in md
> make[2]: Entering directory `/home/smoberly/geda/guile-1.4/qt/md'
> make[2]: Nothing to be done for `all'.
> make[2]: Leaving directory `/home/smoberly/geda/guile-1.4/qt/md'
> Making all in time
> make[2]: Entering directory `/home/smoberly/geda/guile-1.4/qt/time'
> make[2]: Nothing to be done for `all'.
> make[2]: Leaving directory `/home/smoberly/geda/guile-1.4/qt/time'
> make[2]: Entering directory `/home/smoberly/geda/guile-1.4/qt'
> make[2]: Nothing to be done for `all-am'.
> make[2]: Leaving directory `/home/smoberly/geda/guile-1.4/qt'
> make[1]: Leaving directory `/home/smoberly/geda/guile-1.4/qt'
> Making all in libltdl
> make[1]: Entering directory `/home/smoberly/geda/guile-1.4/libltdl'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/home/smoberly/geda/guile-1.4/libltdl'
> Making all in libguile
> make[1]: Entering directory `/home/smoberly/geda/guile-1.4/libguile'
> /bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I.. -I./.. 
> -I../libltdl    -g -O2 -Wall -Wmissing-prototypes -c net_db.c
> rm -f .libs/net_db.lo
> gcc -DHAVE_CONFIG_H -I.. -I./.. -I../libltdl -g -O2 -Wall 
> -Wmissing-prototypes -c net_db.c  -fPIC -DPIC -o .libs/net_db.lo
> net_db.c:85: conflicting types for `inet_aton'
> /usr/include/arpa/inet.h:74: previous declaration of `inet_aton'
> make[1]: *** [net_db.lo] Error 1
> make[1]: Leaving directory `/home/smoberly/geda/guile-1.4/libguile'
> make: *** [all-recursive] Error 1
> The compilation is having a problem with a declaration in a header 
> file of a previous Guile installation. I'm compiling from 
> /home/smoberly/geda/guile-1.4.
> 
> I've used the following configure command before running make:
> 
> ../configure --prefix=/home/smoberly/geda
> 
> ../configure works ok. I just can't seem to get past this point. Any 
> help appreciated.
> 
> Scott
> 
> PS: Should this posting be on the development list rather than the 
> user list?
> 
> 
> 
I found the answer on google groups (whether its the elegant answer is 
another matter):

I had to comment out the "inet_aton" declaration in the net_db.c and 
inet_aton.c files in the libguile directory. Once that was done, guile 
compiled successfully. I'm writing so some other guy doesn't have to 
spend a couple hours finding out what how to make it work.

Scott