[Pw_forum] A problem in installation (nested function ‘getchar’ declared ‘extern’)
mohsen modaresi
modaresi.mohsen at gmail.com
Sat Apr 24 20:53:18 CEST 2010
Dear Users and Developers,
I want install Q.E. on a x86_64 system, And i get this eror
make[1]: Leaving directory `/home/user/Desktop/espresso411/Modules'
( cd clib ; if test "make" = "" ; then make TLDEPS= all ; \
else make TLDEPS= all ; fi )
make[1]: Entering directory `/home/user/Desktop/espresso411/clib'
cc -O3 -D__GFORTRAN -D__FFTW3 -D__MPI -D__PARA -I../include -c stack.c
cc -O3 -D__GFORTRAN -D__FFTW3 -D__MPI -D__PARA -I../include -c c_mkdir.c
cc -O3 -D__GFORTRAN -D__FFTW3 -D__MPI -D__PARA -I../include -c cptimer.c
cc -O3 -D__GFORTRAN -D__FFTW3 -D__MPI -D__PARA -I../include -c eval_infix.c
cc -O3 -D__GFORTRAN -D__FFTW3 -D__MPI -D__PARA -I../include -c fft_stick.c
cc -O3 -D__GFORTRAN -D__FFTW3 -D__MPI -D__PARA -I../include -c indici.c
cc -O3 -D__GFORTRAN -D__FFTW3 -D__MPI -D__PARA -I../include -c memstat.c
In file included from /usr/include/stdio.h:907,
from /usr/include/malloc.h:26,
from memstat.c:24:
/usr/include/bits/stdio.h: In function ‘memstat_’:
/usr/include/bits/stdio.h:46: error: nested function ‘getchar’ declared ‘extern’
/usr/include/bits/stdio.h:45: error: static declaration of ‘getchar’
follows non-static declaration
/usr/include/stdio.h:520: note: previous declaration of ‘getchar’ was here
/usr/include/bits/stdio.h:55: error: nested function ‘fgetc_unlocked’
declared ‘extern’
/usr/include/bits/stdio.h:54: error: static declaration of
‘fgetc_unlocked’ follows non-static declaration
/usr/include/stdio.h:543: note: previous declaration of
‘fgetc_unlocked’ was here
/usr/include/bits/stdio.h:65: error: nested function ‘getc_unlocked’
declared ‘extern’
/usr/include/bits/stdio.h:64: error: static declaration of
‘getc_unlocked’ follows non-static declaration
/usr/include/stdio.h:532: note: previous declaration of ‘getc_unlocked’ was here
/usr/include/bits/stdio.h:72: error: nested function
‘getchar_unlocked’ declared ‘extern’
/usr/include/bits/stdio.h:71: error: static declaration of
‘getchar_unlocked’ follows non-static declaration
/usr/include/stdio.h:533: note: previous declaration of
‘getchar_unlocked’ was here
/usr/include/bits/stdio.h:81: error: nested function ‘putchar’ declared ‘extern’
/usr/include/bits/stdio.h:80: error: static declaration of ‘putchar’
follows non-static declaration
/usr/include/bits/stdio.h:90: error: nested function ‘fputc_unlocked’
declared ‘extern’
/usr/include/bits/stdio.h:89: error: static declaration of
‘fputc_unlocked’ follows non-static declaration
/usr/include/bits/stdio.h:100: error: nested function ‘putc_unlocked’
declared ‘extern’
/usr/include/bits/stdio.h:99: error: static declaration of
‘putc_unlocked’ follows non-static declaration
/usr/include/bits/stdio.h:107: error: nested function
‘putchar_unlocked’ declared ‘extern’
/usr/include/bits/stdio.h:106: error: static declaration of
‘putchar_unlocked’ follows non-static declaration
/usr/include/bits/stdio.h:127: error: nested function ‘feof_unlocked’
declared ‘extern’
/usr/include/bits/stdio.h:126: error: static declaration of
‘feof_unlocked’ follows non-static declaration
/usr/include/stdio.h:809: note: previous declaration of ‘feof_unlocked’ was here
/usr/include/bits/stdio.h:134: error: nested function
‘ferror_unlocked’ declared ‘extern’
/usr/include/bits/stdio.h:133: error: static declaration of
‘ferror_unlocked’ follows non-static declaration
/usr/include/stdio.h:810: note: previous declaration of
‘ferror_unlocked’ was here
In file included from /usr/include/stdio.h:910,
from /usr/include/malloc.h:26,
from memstat.c:24:
/usr/include/bits/stdio2.h:33: error: nested function ‘sprintf’
declared ‘extern’
/usr/include/bits/stdio2.h:32: error: static declaration of ‘sprintf’
follows non-static declaration
/usr/include/bits/stdio2.h:46: error: nested function ‘vsprintf’
declared ‘extern’
/usr/include/bits/stdio2.h:44: error: static declaration of ‘vsprintf’
follows non-static declaration
/usr/include/bits/stdio2.h:64: error: nested function ‘snprintf’
declared ‘extern’
/usr/include/bits/stdio2.h:62: error: static declaration of ‘snprintf’
follows non-static declaration
/usr/include/bits/stdio2.h:77: error: nested function ‘vsnprintf’
declared ‘extern’
/usr/include/bits/stdio2.h:75: error: static declaration of
‘vsnprintf’ follows non-static declaration
/usr/include/bits/stdio2.h:97: error: nested function ‘fprintf’
declared ‘extern’
/usr/include/bits/stdio2.h:96: error: static declaration of ‘fprintf’
follows non-static declaration
/usr/include/bits/stdio2.h:104: error: nested function ‘printf’
declared ‘extern’
/usr/include/bits/stdio2.h:103: error: static declaration of ‘printf’
follows non-static declaration
/usr/include/bits/stdio2.h:116: error: nested function ‘vprintf’
declared ‘extern’
/usr/include/bits/stdio2.h:115: error: static declaration of ‘vprintf’
follows non-static declaration
/usr/include/bits/stdio2.h:127: error: nested function ‘vfprintf’
declared ‘extern’
/usr/include/bits/stdio2.h:125: error: static declaration of
‘vfprintf’ follows non-static declaration
/usr/include/bits/stdio2.h:227: error: nested function ‘gets’ declared ‘extern’
/usr/include/bits/stdio2.h:226: error: static declaration of ‘gets’
follows non-static declaration
/usr/include/stdio.h:612: note: previous declaration of ‘gets’ was here
/usr/include/bits/stdio2.h:246: error: nested function ‘fgets’ declared ‘extern’
/usr/include/bits/stdio2.h:245: error: static declaration of ‘fgets’
follows non-static declaration
/usr/include/stdio.h:604: note: previous declaration of ‘fgets’ was here
/usr/include/bits/stdio2.h:276: error: nested function ‘fread’ declared ‘extern’
/usr/include/bits/stdio2.h:274: error: static declaration of ‘fread’
follows non-static declaration
/usr/include/stdio.h:682: note: previous declaration of ‘fread’ was here
/usr/include/bits/stdio2.h:337: error: nested function
‘fread_unlocked’ declared ‘extern’
/usr/include/bits/stdio2.h:335: error: static declaration of
‘fread_unlocked’ follows non-static declaration
/usr/include/stdio.h:710: note: previous declaration of
‘fread_unlocked’ was here
make[1]: *** [memstat.o] Error 1
make[1]: Leaving directory `/home/user/Desktop/espresso411/clib'
make: *** [libs] Error 2
Any suggestion appreciated
Best regards,
Mohsen Modarsei
More information about the users
mailing list