Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 61914 - can not compile guile-1.4.1 possebly 'inet_aton' problem? trying to emerge gnome-network
Summary: can not compile guile-1.4.1 possebly 'inet_aton' problem? trying to emerge gn...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-27 06:06 UTC by Anders Pettersson
Modified: 2004-10-17 15:19 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anders Pettersson 2004-08-27 06:06:45 UTC
First bug so go easy on me =)
I'm trying to compile gnome-network and it neads guile-1.4.1 and this is what I get when i try to compile guile:

gcc -DHAVE_CONFIG_H -I. -I. -I. -I.. -I./.. -march=pentium4 -O1 -pipe -Wall -Wmissing-prototypes -c net_db.c -MT net_db.lo -MD -MP -MF .deps/net_db.TPlo  -fPIC -DPIC -o .libs/net_db.lo
net_db.c:85: error: conflicting types for 'inet_aton'
/usr/include/arpa/inet.h:74: error: previous declaration of 'inet_aton' was herenet_db.c:85: error: conflicting types for 'inet_aton'
/usr/include/arpa/inet.h:74: error: previous declaration of 'inet_aton' was heremake[2]: *** [net_db.lo] Error 1
make[2]: Leaving directory `/var/tmp/portage/guile-1.4.1/work/guile-1.4.1/libguile'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/var/tmp/portage/guile-1.4.1/work/guile-1.4.1/libguile'
make: *** [all-recursive] Error 1

!!! ERROR: dev-util/guile-1.4.1 failed.
!!! Function src_compile, Line 31, Exitcode 2
!!! Compilation failed

as you can see i'm using -O1 as my cflag so thts not the problem, and i emerge synced only moments before...

I olso tried to mask guile-1.4.1 in /etc/portage/package.mask but gnome-network dident like that...

Reproducible: Always
Steps to Reproduce:
1. emerge =dev-utils/guile-1.4.1

Actual Results:  
gcc -DHAVE_CONFIG_H -I. -I. -I. -I.. -I./.. -march=pentium4 -O1 -pipe -Wall
-Wmissing-prototypes -c net_db.c -MT net_db.lo -MD -MP -MF .deps/net_db.TPlo 
-fPIC -DPIC -o .libs/net_db.lo
net_db.c:85: error: conflicting types for 'inet_aton'
/usr/include/arpa/inet.h:74: error: previous declaration of 'inet_aton' was
herenet_db.c:85: error: conflicting types for 'inet_aton'
/usr/include/arpa/inet.h:74: error: previous declaration of 'inet_aton' was
heremake[2]: *** [net_db.lo] Error 1
make[2]: Leaving directory `/var/tmp/portage/guile-1.4.1/work/guile-1.4.1/libguile'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/var/tmp/portage/guile-1.4.1/work/guile-1.4.1/libguile'
make: *** [all-recursive] Error 1

!!! ERROR: dev-util/guile-1.4.1 failed.
!!! Function src_compile, Line 31, Exitcode 2
!!! Compilation failed

Expected Results:  
work?

Portage 2.0.50-r10 (gcc34-x86-2004.2, gcc-3.4.1, glibc-2.3.4.20040808-r0,
2.6.8.1-mm1)
=================================================================
System uname: 2.6.8.1-mm1 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz
Gentoo Base System version 1.5.3
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -O1 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.3/share/config:/usr/kde/3.3/env:/usr/kde/3.3/shutdown
/usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -O1 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://mirror.pudas.net/gentoo http://gentoo.oregonstate.edu
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X Xaw3d acl alsa arts avi berkdb cdr cjk crypt cups directfb dvdr encode
esd foomaticdb gdbm gif gnome gpm gtk gtk2 guile imlib java jpeg kerberos libg++
libwww mad mikmod motif mozilla mpeg mysql ncurses nls nptl oggvorbis opengl oss
pam pdflib pearl perl png python qt quicktime readline sdl slang spell sse ssl
svga tcpd truetype x86 xml2 xmms xv zlib"
Comment 1 Anders Pettersson 2004-08-27 08:55:21 UTC
According to 
http://www.gnu.org/software/guile/docs/faq/guile-faq.html#Building%20guile-1.4%20gives%20a%20previous%20declaration%20of%20inet_aton%20error%3f
the workaround is to comment out the offending code, that is libguile/net_db.c, line 85 I'm trying this now.
Comment 2 Yi Quang (RETIRED) gentoo-dev 2004-09-08 23:37:53 UTC
I'm assuming this is another gcc-3.4 issue, patches are welcome. 
Comment 3 Aristotle Allen 2004-09-25 16:10:55 UTC
he solution is to modify 

gnome-network-1.0.2-r1.ebuild'

change the line :
    =dev-util/guile-1.4*

to:
    >=dev-util/guile-1.4*
Comment 4 foser (RETIRED) gentoo-dev 2004-10-09 05:15:08 UTC
@ comment 3 : thats a workaround not a solution.

it's probably best to go with comment #1
Comment 5 Alastair Tse (RETIRED) gentoo-dev 2004-10-17 15:19:26 UTC
fixed for both 1.4*, removed doa net_db.c from filesdir as well.