Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 66278 - evolution-2.0.1 fails to compile with USE=-ipv6
Summary: evolution-2.0.1 fails to compile with USE=-ipv6
Status: RESOLVED DUPLICATE of bug 66024
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-03 21:00 UTC by Alexandre Rostovtsev (RETIRED)
Modified: 2005-07-17 13:06 UTC (History)
0 users

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 Alexandre Rostovtsev (RETIRED) gentoo-dev 2004-10-03 21:00:24 UTC
I am getting a compile error in camel/camel-service.c ; the function in question looks like this : 

struct addrinfo *
camel_getaddrinfo(const char *name, const char *service, const struct addrinfo *hints, CamelException *ex)
{ 
(....)
#ifndef ENABLE_IPv6
(....)
hints->ai_family = AF_INET;
#endif

The compiler sees hints (a const parameter) being assigned to, and barfs. This error occurs for me with both with hardened gcc-3.4.2-r1 and unhardened gcc-3.3.4

Reproducible: Always
Steps to Reproduce:
1. USE="crypt -debug doc -ipv6 -kerberos ldap mozilla nntp pda spell ssl" emerge =evolution-2.0.1

Actual Results:  
 gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I./.. -I../intl -I../e-util
-DCAMEL_LIBEXECDIR=\"/usr/libexec/evolution/2.0/camel\"
-DCAMEL_PROVIDERDIR=\"/usr/lib/evolution/2.0/camel-providers\"
-DG_LOG_DOMAIN=\"camel\" -pthread -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gal-2.2
-I/usr/include/gtk-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/libxml2
-I/usr/include/libglade-2.0 -I/usr/include/libgnomeprint-2.2
-I/usr/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/include/atk-1.0
-I/usr/include/pango-1.0 -I/usr/include/freetype2
-I/usr/include/freetype2/config -I/usr/include/libart-2.0
-I/usr/lib/mozilla/include/nspr -I/usr/lib/mozilla/include/nss -march=athlon-xp
-O2 -pipe -frename-registers -fomit-frame-pointer -Wall -Wmissing-prototypes
-Wno-sign-compare -c camel-service.c -MT camel-service.lo -MD -MP -MF
.deps/camel-service.TPlo  -fPIC -DPIC -o .libs/camel-service.o
camel-service.c: In function `camel_getaddrinfo':
camel-service.c:897: warning: assignment from incompatible pointer type
camel-service.c:900: error: assignment of read-only member `ai_family'
make[3]: *** [camel-service.lo] Error 1


Expected Results:  
successful emerge

System uname: 2.6.8-gentoo i686 AMD Athlon(tm) XP 2500+
CFLAGS="-march=athlon-xp -O2 -pipe -frename-registers -fomit-frame-pointer "
gcc-3.4.2-r1
glibc-2.3.3.20040420-r1
Comment 1 Joe McCann (RETIRED) gentoo-dev 2004-10-03 22:30:23 UTC
try without -frename-registers -fomit-frame-pointer 
Comment 2 Alexandre Rostovtsev (RETIRED) gentoo-dev 2004-10-03 23:22:11 UTC
My apologies, turns out this was fixed in #66024. This is what I get for not syncing more than once a day...

*** This bug has been marked as a duplicate of 66024 ***