[Gross] compilation error: ../include/utils.h:42: error: conflicting types for 'getline'

Steve steeeeeveee at gmx.net
Tue Nov 24 15:25:50 EET 2009


-------- Original-Nachricht --------
> Datum: Mon, 23 Nov 2009 15:44:56 +0100
> Von: "Marcin Mirosław" <marcin at mejor.pl>
> An: gross at lists.utu.fi
> Betreff: [Gross] compilation error: ../include/utils.h:42: error: conflicting types for \'getline\'

> Hello
> While trying to compile gross-1.0.2 i'm getting this error:
>  i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../include
> -D_REENTRANT -I/usr/local/include -O2 -march=prescott -mtune=native
> -mfpmath=sse -pipe -fpeel-loops -fprefetch-loop-arrays -ftracer
> -freorder-blocks-and-partition -MT proto_sjsms.lo -MD -MP -MF
> .deps/proto_sjsms.Tpo -c proto_sjsms.c -o proto_sjsms.o >/dev/null 2>&1
> mv -f .deps/proto_sjsms.Tpo .deps/proto_sjsms.Plo
> /bin/sh ../libtool --tag=CC   --mode=link i686-pc-linux-gnu-gcc  -O2
> -march=prescott -mtune=native -mfpmath=sse -pipe -fpeel-loops
> -fprefetch-loop-arrays -ftracer -freorder-blocks-and-partition -module
> -avoid-version -XCClinker -static-libgcc -Wl,-O1 -L/usr/local/lib -o
> grosscheck.la -rpath /usr/lib grosscheck.lo proto_sjsms.lo  -lcares
> -lnsl -lm -lrt  -lpthread
> i686-pc-linux-gnu-gcc -shared  .libs/grosscheck.o .libs/proto_sjsms.o
> -L/usr/local/lib /usr/lib/libcares.so -lnsl -lm -lrt -lpthread
> -march=prescott -mtune=native -mfpmath=sse -static-libgcc -Wl,-O1
> -Wl,-soname -Wl,grosscheck.so -o .libs/grosscheck.so
> i686-pc-linux-gnu-ar cru .libs/grosscheck.a  grosscheck.o proto_sjsms.o
> i686-pc-linux-gnu-ranlib .libs/grosscheck.a
> creating grosscheck.la
> (cd .libs && rm -f grosscheck.la && ln -s ../grosscheck.la grosscheck.la)
> i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../include -D_REENTRANT
> -I/usr/local/include  -O2 -march=prescott -mtune=native -mfpmath=sse
> -pipe -fpeel-loops -fprefetch-loop-arrays -ftracer
> -freorder-blocks-and-partition -MT gclient.o -MD -MP -MF
> .deps/gclient.Tpo -c -o gclient.o gclient.c
> mv -f .deps/gclient.Tpo .deps/gclient.Po
> i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../include -D_REENTRANT
> -I/usr/local/include  -O2 -march=prescott -mtune=native -mfpmath=sse
> -pipe -fpeel-loops -fprefetch-loop-arrays -ftracer
> -freorder-blocks-and-partition -MT utils.o -MD -MP -MF .deps/utils.Tpo
> -c -o utils.o utils.c
> In file included from utils.c:23:
> ../include/utils.h:42: error: conflicting types for 'getline'
> /usr/include/stdio.h:651: note: previous declaration of 'getline' was here
> make[2]: *** [utils.o] Error 1
> make[2]: Leaving directory
> `/var/tmp/portage/mail-filter/gross-1.0.2/work/gross-1.0.2/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory
> `/var/tmp/portage/mail-filter/gross-1.0.2/work/gross-1.0.2'
> make: *** [all] Error 2
> 
> May i get help with fixing this issue?
>
Hallo Mirosław

This issue has been already reported (but not fixed):
http://code.google.com/p/gross/issues/detail?id=81#c0

To fix that issue in your Gentoo Linux just edit the Ebuild and add this to your src_unpack() block:
------------------------------
 # Remove getline as it is anyway not used
 # and conflicts with getline from glibc
 sed -i -e "/^int[\t ]\{1,99\}getline[\t ]*(.*/d" \
     "${S}"/include/utils.h
------------------------------


> Regards,
> Marcin Mirosław
> 
// Steve


> -- 
> xmpp (jabber): marcin at mejor.pl
> _______________________________________________
> Gross mailing list
> Gross at lists.utu.fi
> https://lists.utu.fi/mailman/listinfo/gross

-- 
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01



More information about the Gross mailing list