Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Curl failes to compile
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
hexx
n00b
n00b


Joined: 14 Apr 2006
Posts: 12
Location: Poland

PostPosted: Fri Apr 14, 2006 9:06 am    Post subject: Curl failes to compile Reply with quote

Hi,
While upgrading my system the package curl (from 7.13.1 to 7.15.1-r1) fails to compile with these errors :cry: :

make[1]: Leaving directory `/tmp/portage/portage/curl-7.15.1-r1/work/curl-7.15.1/lib'
Making all in src
make[1]: Entering directory `/tmp/portage/portage/curl-7.15.1-r1/work/curl-7.15.1/src'
make all-am
make[2]: Entering directory `/tmp/portage/portage/curl-7.15.1-r1/work/curl-7.15.1/src'
if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I../src -I../include -I../src -I../lib -I/usr/include/openssl -I/usr/include -O2 -pipe -mtune=athlon-xp -march=athlon-xp -fomit-frame-pointer -MT main.o -MD -MP -MF ".deps/main.Tpo" -c -o main.o main.c; \
then mv -f ".deps/main.Tpo" ".deps/main.Po"; else rm -f ".deps/main.Tpo"; exit 1; fi
In file included from main.c:99:
/usr/include/sys/poll.h:30: error: syntax error before "int16_t"
/usr/include/sys/poll.h:36: error: syntax error before "events"
/usr/include/sys/poll.h:37: error: syntax error before "revents"
/usr/include/sys/poll.h:48: error: syntax error before "nfds_t"
In file included from ../lib/setup.h:112,
from ../lib/strtoofft.h:31,
from ../lib/curlx.h:41,
from main.c:109:
/usr/include/assert.h:69: error: syntax error before "__line"
/usr/include/assert.h:74: error: syntax error before "__line"
In file included from ../lib/strtoofft.h:31,
from ../lib/curlx.h:41,
from main.c:109:
../lib/setup.h:243: error: conflicting types for 'fileno'
setup.h:86: error: previous declaration of 'fileno' was here
../lib/setup.h:243: error: conflicting types for 'fileno'
setup.h:86: error: previous declaration of 'fileno' was here
main.c:250: error: 'trace' redeclared as different kind of symbol
/usr/include/ncurses.h:1204: error: previous declaration of 'trace' was here
main.c:250: error: 'trace' redeclared as different kind of symbol
/usr/include/ncurses.h:1204: error: previous declaration of 'trace' was here
main.c:278: warning: no semicolon at end of struct or union
main.c:278: error: syntax error before "porttouse"
main.c:363: error: syntax error before '}' token
main.c: In function `warnf':
main.c:370: error: dereferencing pointer to incomplete type
main.c:383: error: dereferencing pointer to incomplete type
main.c:392: error: dereferencing pointer to incomplete type
main.c:393: error: dereferencing pointer to incomplete type
main.c:398: error: dereferencing pointer to incomplete type
main.c: In function `clean_getout':
main.c:691: error: dereferencing pointer to incomplete type
main.c: In function `new_getout':
main.c:711: error: dereferencing pointer to incomplete type
main.c:720: error: dereferencing pointer to incomplete type
main.c:723: error: dereferencing pointer to incomplete type
main.c: At top level:
main.c:814: error: 'list_engines' redeclared as different kind of symbol
main.c:301: error: previous declaration of 'list_engines' was here
main.c: In function `formparse':
main.c:1003: error: syntax error before "i"
main.c:1006: error: `count' undeclared (first use in this function)
main.c:1006: error: (Each undeclared identifier is reported only once
main.c:1006: error: for each function it appears in.)
main.c:1017: error: `i' undeclared (first use in this function)
main.c: In function `getparameter':
main.c:1270: error: syntax error before "j"
main.c:1412: error: `j' undeclared (first use in this function)
main.c:1481: error: dereferencing pointer to incomplete type
[a lot of lines like this]
main.c:2216: error: dereferencing pointer to incomplete type
main.c:2231: error: syntax error before "i"
main.c:2251: error: `i' undeclared (first use in this function)
main.c:2270: error: dereferencing pointer to incomplete type
[a lot of lines like this]
main.c:2335: error: dereferencing pointer to incomplete type
main.c: In function `my_fwrite':
main.c:2614: error: dereferencing pointer to incomplete type
[a lot of lines like this]
main.c:2670: error: dereferencing pointer to incomplete type
main.c: In function `my_fread':
main.c:2712: error: dereferencing pointer to incomplete type
[a lot of lines like this]
main.c:2761: error: dereferencing pointer to incomplete type
main.c: In function `progressbarinit':
main.c:2852: error: dereferencing pointer to incomplete type
main.c:2853: error: dereferencing pointer to incomplete type
main.c:2879: error: dereferencing pointer to incomplete type
main.c: At top level:
main.c:2884: error: two or more data types in declaration of `ptr'
main.c: In function `dump':
main.c:2890: error: syntax error before "width"
main.c:2894: error: `width' undeclared (first use in this function)
main.c:2919: warning: comparison is always true due to limited range of data type
main.c: At top level:
main.c:2934: error: two or more data types in declaration of `data'
main.c: In function `my_trace':
main.c:2938: error: dereferencing pointer to incomplete type
[a lot of lines like this]
main.c:3042: error: dereferencing pointer to incomplete type
main.c: In function `free_config_fields':
main.c:3048: error: dereferencing pointer to incomplete type
[a lot of lines like this]
main.c:3049: error: dereferencing pointer to incomplete type
main.c:3101: error: dereferencing pointer to incomplete type
main.c: In function `operate':
main.c:3235: error: dereferencing pointer to incomplete type
[a lot of lines like this]
main.c:3445: error: dereferencing pointer to incomplete type
main.c:3445: warning: passing arg 3 of `glob_url' from incompatible pointer type
main.c:3464: error: dereferencing pointer to incomplete type
main.c:3468: error: dereferencing pointer to incomplete type
main.c:3469: error: dereferencing pointer to incomplete type
main.c:3469: error: dereferencing pointer to incomplete type
main.c:3469: warning: passing arg 3 of `glob_url' from incompatible pointer type
main.c:3544: error: dereferencing pointer to incomplete type
[a lot of lines like this]
main.c:4226: error: dereferencing pointer to incomplete type
main.c: In function `checkfds':
main.c:4245: warning: passing arg 1 of `pipe' from incompatible pointer type
main.c: In function `main':
main.c:4257: error: storage size of 'config' isn't known
main.c:4258: error: invalid application of `sizeof' to incomplete type `Configurable'
main.c:4255: warning: return type of 'main' is not `int'
make[2]: *** [main.o] Error 1
make[2]: Leaving directory `/tmp/portage/portage/curl-7.15.1-r1/work/curl-7.15.1/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/tmp/portage/portage/curl-7.15.1-r1/work/curl-7.15.1/src'
make: *** [all-recursive] Error 1

!!! ERROR: net-misc/curl-7.15.1-r1 failed.
!!! Function src_compile, Line 78, Exitcode 2
!!! install failed for current version
!!! If you need support, post the topmost build error, NOT this status message.

---------------------------------------------------
My system looks like this (vanilla kernel):
Portage 2.0.54 (default-linux/x86/2005.0, gcc-3.4.5, glibc-2.3.6-r3, 2.6.16.5 i686)
=================================================================
System uname: 2.6.16.5 i686 AMD Athlon(tm) XP 2800+
Gentoo Base System version 1.6.14
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python: 2.3.5-r2, 2.4.2
sys-apps/sandbox: 1.2.12
sys-devel/autoconf: 2.13, 2.59-r7
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils: 2.16.1
sys-devel/libtool: 1.5.22
virtual/os-headers: 2.6.11-r4
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -pipe -mtune=athlon-xp -march=athlon-xp -fomit-frame-pointer "
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -pipe -mtune=athlon-xp -march=athlon-xp -fomit-frame-pointer "
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="[...list here...]"
LINGUAS="pl"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/tmp/portage"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
USE="3dnow X aalib acl alsa apm arts audiofile avi bash-completion bcmath berkdb bitmap-fonts bluetooth bzip2 bzlib calendar caps cdparanoia cdr crypt cups curl dba directfb dri dvd dvdr dvdread eds emboss encode esd ethereal exif expat fam ffmpeg fftw flac foomaticdb fortran ftp gd gdbm gif glut gmp gpm gstreamer gtk gtk2 idn ieee1394 imagemagick imlib isdnlog jack java javascript jit jpeg kde kdeenablefinal lcms libcaca libg++ libwww lirc lm_sensors mad matroska mhash mikmod mime mmx mng motif mozilla mp3 mpeg mysql mysqli ncurses network nls nptl nptlonly offensive ogg oggvorbis opengl oss pam pcre pda pdflib pear perl png pppd python qt quicktime readline recode samba sdl session slang sockets spell ssl svga tcpd theora tiff truetype truetype-fonts type1-fonts udev unicode usb v4l vcd vorbis win32codecs x86 xine xml xml2 xmms xosd xv xvid zlib linguas_pl userland_GNU kernel_linux elibc_glibc"
Unset: ASFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, MAKEOPTS

Thanks for any help :wink:
Back to top
View user's profile Send private message
gentop
l33t
l33t


Joined: 29 Nov 2004
Posts: 639

PostPosted: Wed May 03, 2006 2:56 pm    Post subject: Reply with quote

Try "emerge -aN world" and then re-emerge curl. That worked for me.
And if you don't realy need curl, just remove it from your USE-variable :o

//gentop


Edit: Welcome to the gentoo forums :)
Back to top
View user's profile Send private message
hexx
n00b
n00b


Joined: 14 Apr 2006
Posts: 12
Location: Poland

PostPosted: Wed May 03, 2006 7:54 pm    Post subject: Reply with quote

thanks
will try that out :wink:
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum