Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Errori sintattici nell ebuild sys-libs/libcap-1.10-r11
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
rete27
Tux's lil' helper
Tux's lil' helper


Joined: 26 Feb 2007
Posts: 86

PostPosted: Mon Feb 25, 2008 8:54 pm    Post subject: Errori sintattici nell ebuild sys-libs/libcap-1.10-r11 Reply with quote

Sbaglio con un output del genere
Code:

libcap_wrap.c:2956: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
libcap_wrap.c:2970: warning: traditional C rejects string constant concatenation
libcap_wrap.c:2976: warning: traditional C rejects string constant concatenation
libcap_wrap.c:2979: warning: traditional C rejects string constant concatenation
libcap_wrap.c:2993: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
libcap_wrap.c:3004: warning: traditional C rejects string constant concatenation
libcap_wrap.c:3015: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
libcap_wrap.c:3029: warning: traditional C rejects string constant concatenation
libcap_wrap.c:3035: warning: traditional C rejects string constant concatenation
libcap_wrap.c:3038: warning: traditional C rejects string constant concatenation
libcap_wrap.c:3052: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
libcap_wrap.c:3063: warning: traditional C rejects string constant concatenation
libcap_wrap.c:3074: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
libcap_wrap.c:3087: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
libcap_wrap.c:3097: warning: traditional C rejects string constant concatenation
libcap_wrap.c:3109: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
libcap_wrap.c:3116: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
libcap_wrap.c:3127: warning: traditional C rejects string constant concatenation
libcap_wrap.c:3138: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
libcap_wrap.c:3148: warning: traditional C rejects string constant concatenation
libcap_wrap.c:3158: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
libcap_wrap.c:3171: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
libcap_wrap.c:3194: warning: traditional C rejects string constant concatenation
libcap_wrap.c:3199: warning: traditional C rejects string constant concatenation
libcap_wrap.c:3204: warning: traditional C rejects string constant concatenation
ETC ETC
libcap_wrap.c:4075: warning: implicit declaration of function 'SWIG_Python_SetConstant'
libcap_wrap.c:4075: warning: nested extern declaration of 'SWIG_Python_SetConstant'
libcap_wrap.c:4075: warning: implicit declaration of function 'SWIG_From_int'
libcap_wrap.c:4075: warning: nested extern declaration of 'SWIG_From_int'
make[1]: *** [libcap_wrap.o] Error 1


indica uno o più errori nel codice dell ebuild ?
_________________
Al mondo ci sono 10 tipi di persone quelle che conoscono il sistema binario e quelle che non lo conoscono...
Back to top
View user's profile Send private message
comio
Advocate
Advocate


Joined: 03 Jul 2003
Posts: 2191
Location: Taranto

PostPosted: Mon Feb 25, 2008 10:19 pm    Post subject: Re: Errori sintattici nell ebuild sys-libs/libcap-1.10-r11 Reply with quote

L'ebuild non ha errori... magari c'è qualche problema della compilazione...

luigi

rete27 wrote:
Sbaglio con un output del genere
Code:

libcap_wrap.c:2956: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
libcap_wrap.c:2970: warning: traditional C rejects string constant concatenation
libcap_wrap.c:2976: warning: traditional C rejects string constant concatenation
libcap_wrap.c:2979: warning: traditional C rejects string constant concatenation
libcap_wrap.c:2993: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
libcap_wrap.c:3004: warning: traditional C rejects string constant concatenation
libcap_wrap.c:3015: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
libcap_wrap.c:3029: warning: traditional C rejects string constant concatenation
libcap_wrap.c:3035: warning: traditional C rejects string constant concatenation
libcap_wrap.c:3038: warning: traditional C rejects string constant concatenation
libcap_wrap.c:3052: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
libcap_wrap.c:3063: warning: traditional C rejects string constant concatenation
libcap_wrap.c:3074: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
libcap_wrap.c:3087: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
libcap_wrap.c:3097: warning: traditional C rejects string constant concatenation
libcap_wrap.c:3109: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
libcap_wrap.c:3116: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
libcap_wrap.c:3127: warning: traditional C rejects string constant concatenation
libcap_wrap.c:3138: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
libcap_wrap.c:3148: warning: traditional C rejects string constant concatenation
libcap_wrap.c:3158: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
libcap_wrap.c:3171: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
libcap_wrap.c:3194: warning: traditional C rejects string constant concatenation
libcap_wrap.c:3199: warning: traditional C rejects string constant concatenation
libcap_wrap.c:3204: warning: traditional C rejects string constant concatenation
ETC ETC
libcap_wrap.c:4075: warning: implicit declaration of function 'SWIG_Python_SetConstant'
libcap_wrap.c:4075: warning: nested extern declaration of 'SWIG_Python_SetConstant'
libcap_wrap.c:4075: warning: implicit declaration of function 'SWIG_From_int'
libcap_wrap.c:4075: warning: nested extern declaration of 'SWIG_From_int'
make[1]: *** [libcap_wrap.o] Error 1


indica uno o più errori nel codice dell ebuild ?

_________________
RTFM!!!!

e

http://www.comio.it
:)
Back to top
View user's profile Send private message
Flameeyes
Retired Dev
Retired Dev


Joined: 30 Mar 2005
Posts: 187
Location: Dublin, Ireland

PostPosted: Mon Feb 25, 2008 10:26 pm    Post subject: Reply with quote

Credo ci sia qualche errore più in alto, magari posta l'ultima linea di compilazione e un po' dell'output successivo.
_________________
You want to know what I'm working on right now? Just follow my blog.
Back to top
View user's profile Send private message
rete27
Tux's lil' helper
Tux's lil' helper


Joined: 26 Feb 2007
Posts: 86

PostPosted: Tue Feb 26, 2008 7:34 am    Post subject: Re: Errori sintattici nell ebuild sys-libs/libcap-1.10-r11 Reply with quote

comio wrote:
L'ebuild non ha errori... magari c'è qualche problema della compilazione... [/code]
indica uno o più errori nel codice dell ebuild ?


Non penso che sia un errore di compilazione visto che ho fatto un mass-update
Code:
emerge -uDN world
ed è andato tutto bene tranne che per questo pacchetto.
Code:

* ERROR: sys-libs/libcap-1.10-r11 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2891:  Called die
 * The specific snippet of code:
 *       emake COPTFLAG="${CFLAGS}" LDFLAGS="${LDFLAGS}" ${myflags} || die
 *  The die message:
 *   (no error message)
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/log/portage/sys-libs:libcap-1.10-r11:20080225-193552.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-libs/libcap-1.10-r11/temp/environment'.
 *

 * Messages for package sys-libs/libcap-1.10-r11:

 *
 * ERROR: sys-libs/libcap-1.10-r11 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2891:  Called die
 * The specific snippet of code:
 *       emake COPTFLAG="${CFLAGS}" LDFLAGS="${LDFLAGS}" ${myflags} || die
 *  The die message:
 *   (no error message)
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/log/portage/sys-libs:libcap-1.10-r11:20080225-193552.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-libs/libcap-1.10-r11/temp/environment'.


cosa potrebbe essere ? quello che non mi era mai capitato è il messaggio "no error message"
_________________
Al mondo ci sono 10 tipi di persone quelle che conoscono il sistema binario e quelle che non lo conoscono...
Back to top
View user's profile Send private message
Onip
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 2912
Location: Parma (Italy)

PostPosted: Tue Feb 26, 2008 8:04 am    Post subject: Re: Errori sintattici nell ebuild sys-libs/libcap-1.10-r11 Reply with quote

rete27 wrote:
Non penso che sia un errore di compilazione visto che ho fatto un mass-update
Code:
emerge -uDN world
ed è andato tutto bene tranne che per questo pacchetto.

E invece c'è proprio qualche problema nei sorgenti di quello specifico pacchetto. con un problema nell'ebuild la compilazione non sarebbe nemmeno iniziata, il fatto che gli altri siano andati bene non significa niente.

Inoltre l'output che hai postato adesso è solamente il messaggio che emerge lascia e che dice che c'è stato un errore nella compilazione ( emake bla bla bla... ).

Flameeyes wrote:

Credo ci sia qualche errore più in alto, magari posta l'ultima linea di compilazione e un po' dell'output successivo

L'output interessante è quello prima del primo che hai postato, dove ci sono le prime righe che segnalano errori.
_________________
Linux Registered User n. 373835

Titus Lucretius Carus, De Rerum Natura - Tantum religio potuit suadere malorum
Back to top
View user's profile Send private message
rete27
Tux's lil' helper
Tux's lil' helper


Joined: 26 Feb 2007
Posts: 86

PostPosted: Tue Feb 26, 2008 8:21 am    Post subject: Reply with quote

Code:
>>> Emerging (1 of 1) sys-libs/libcap-1.10-r11 to /
 * Trying to resume merge
 * libcap-1.10.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                                                                 [ ok ]
 * libcap_1.10-14.diff.gz RMD160 SHA1 SHA256 size ;-) ...                                                                                              [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                                   [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                                  [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                                 [ ok ]
 * checking libcap-1.10.tar.bz2 ;-) ...                                                                                                                [ ok ]
 * checking libcap_1.10-14.diff.gz ;-) ...                                                                                                             [ ok ]
 * Active CFLAGS = -march=athlon-xp -O2 -pipe -fomit-frame-pointer
 * Active CXXFLAGS = -march=athlon-xp -O2 -pipe -fomit-frame-pointer
 * Active LDFLAGS = -Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -Wl,--hash-style=gnu -s
 * Active FEATURES = buildpkg candy distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox
>>> Checking libcap-1.10.tar.bz2's mtime...
>>> Checking libcap_1.10-14.diff.gz's mtime...
>>> WORKDIR is up-to-date, keeping...
>>> Compiling source in /var/tmp/portage/sys-libs/libcap-1.10-r11/work/libcap-1.10 ...
/usr/share/portage-bashrc-ng//perpackage.module: line 71: ${-I/usr/include/python2.4} : bad substitution
make -C /var/tmp/portage/sys-libs/libcap-1.10-r11/work/libcap-1.10/libcap CC='gcc' CFLAGS='-Dlinux -D_POSIX_SOURCE -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wtraditional -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -pedantic -g  -march=athlon-xp -O2 -pipe -fomit-frame-pointer -I/var/tmp/portage/sys-libs/libcap-1.10-r11/work/libcap-1.10/libcap/include' LD='ld' LIBS='-L/var/tmp/portage/sys-libs/libcap-1.10-r11/work/libcap-1.10/libcap -lcap' LDFLAGS='-Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -Wl,--hash-style=gnu -s' VERSION='1' MINOR='10' LIBDIR='/lib' INCDIR='/usr/include' SBINDIR='/sbin' MANDIR='/usr/share/man' all
make[1]: Entering directory `/var/tmp/portage/sys-libs/libcap-1.10-r11/work/libcap-1.10/libcap'
make[1]: warning: jobserver unavailable: using -j1.  Add `+' to parent make rule.
gcc -Dlinux -D_POSIX_SOURCE -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wtraditional -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -pedantic -g  -march=athlon-xp -O2 -pipe -fomit-frame-pointer -I/var/tmp/portage/sys-libs/libcap-1.10-r11/work/libcap-1.10/libcap/include -fPIC -c libcap_wrap.c -o libcap_wrap.o
libcap_wrap.c:48:3: warning: suggest not using #elif in traditional C
libcap_wrap.c:112:20: error: Python.h: No such file or directory
libcap_wrap.c: In function 'SWIG_TypeNameComp':
libcap_wrap.c:340: warning: traditional C rejects ISO C style function definitions


poi da qui gli errori che ho postato la prima volta...
_________________
Al mondo ci sono 10 tipi di persone quelle che conoscono il sistema binario e quelle che non lo conoscono...
Back to top
View user's profile Send private message
Onip
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 2912
Location: Parma (Italy)

PostPosted: Tue Feb 26, 2008 9:17 am    Post subject: Reply with quote

rete27 wrote:
Code:

/usr/share/portage-bashrc-ng//perpackage.module: line 71: ${-I/usr/include/python2.4} : bad substitution
...
libcap_wrap.c:112:20: error: Python.h: No such file or directory



Questi due direi che sono significativi.
Che versione di python hai installata?
Hai provato a compilarlo disattivando perpackage (o direttamente bashrc) ?
_________________
Linux Registered User n. 373835

Titus Lucretius Carus, De Rerum Natura - Tantum religio potuit suadere malorum
Back to top
View user's profile Send private message
.:chrome:.
Advocate
Advocate


Joined: 19 Feb 2005
Posts: 4588
Location: Brescia, Italy

PostPosted: Wed Feb 27, 2008 9:13 am    Post subject: Reply with quote

trovato l'inghippo.
era installato ancora il vecchio portage-bashrc-ng. dovrà sostituirlo con bashrcng
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) 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