R
Robert Hinson
I am using gcc-4.5.1-4.fc14.i686
[oppie@fedora fics.1.7.4]$ make
gcc -DLINUX -Wall -ansi -pedantic -g -c -o ficsmain.o ficsmain.c
In file included from ficsmain.c:38:0:
comproc.h:28:14: warning: type defaults to ‘int’ in declaration of
‘none’
comproc.h:29:14: warning: type defaults to ‘int’ in declaration of
‘blitz_rat’
comproc.h:30:14: warning: type defaults to ‘int’ in declaration of
‘std_rat’
comproc.h:31:14: warning: type defaults to ‘int’ in declaration of
‘wild_rat’
comproc.h:32:14: warning: type defaults to ‘int’ in declaration of
‘light_rat’
comproc.h:33:14: warning: type defaults to ‘int’ in declaration of
‘bug_rat’
gcc -DLINUX -Wall -ansi -pedantic -g -c -o network.o network.c
network.c: In function ‘readline2’:
network.c:317:2: warning: pointer targets in passing argument 2 of
‘strcpy’ differ in signedness
/usr/include/string.h:128:14: note: expected ‘const char * __restrict__’
but argument is of type ‘unsigned char *’
network.c:361:2: warning: pointer targets in passing argument 2 of
‘strcpy’ differ in signedness
/usr/include/string.h:128:14: note: expected ‘const char * __restrict__’
but argument is of type ‘unsigned char *’
network.c:399:5: warning: pointer targets in passing argument 2 of
‘strcpy’ differ in signedness
/usr/include/string.h:128:14: note: expected ‘const char * __restrict__’
but argument is of type ‘unsigned char *’
network.c: In function ‘net_init’:
network.c:486:3: warning: implicit declaration of function
‘getdtablesize’
network.c: In function ‘ngc2’:
network.c:594:39: warning: pointer targets in passing argument 3 of
‘accept’ differ in signedness
/usr/include/sys/socket.h:214:12: note: expected ‘socklen_t *
__restrict__’ but argument is of type ‘int *’
gcc -DLINUX -Wall -ansi -pedantic -g -c -o utils.o utils.c
utils.c:49:46: warning: ‘struct timezone’ declared inside parameter list
utils.c:49:5: error: conflicting types for ‘gettimeofday’
/usr/include/sys/time.h:73:12: note: previous declaration of
‘gettimeofday’ was here
utils.c: In function ‘openTCP’:
utils.c:172:11: error: ‘struct hostent’ has no member named ‘h_addr’
utils.c: In function ‘mail_string_to_address’:
utils.c:232:3: warning: implicit declaration of function ‘popen’
utils.c:232:6: warning: assignment makes pointer from integer without a
cast
utils.c:241:3: warning: implicit declaration of function ‘pclose’
utils.c:193:7: warning: unused variable ‘n’
utils.c:191:8: warning: unused variable ‘filename’
utils.c: In function ‘mail_file_to_address’:
utils.c:318:6: warning: assignment makes pointer from integer without a
cast
utils.c:265:14: warning: unused variable ‘fp2’
utils.c:263:8: warning: unused variable ‘filename’
utils.c: In function ‘psend_command’:
utils.c:642:8: warning: assignment makes pointer from integer without a
cast
utils.c:644:8: warning: assignment makes pointer from integer without a
cast
utils.c: In function ‘strtime’:
utils.c:823:5: warning: ISO C90 does not support the ‘%e’ gnu_strftime
format
utils.c:823:5: warning: ISO C does not support the ‘%k’ gnu_strftime
format
utils.c:825:5: warning: ISO C90 does not support the ‘%e’ gnu_strftime
format
utils.c:825:5: warning: ISO C does not support the ‘%k’ gnu_strftime
format
utils.c: In function ‘fix_time’:
utils.c:849:3: warning: function returns address of local variable
utils.c: In function ‘tenth_secs’:
utils.c:870:19: error: storage size of ‘tzp’ isn’t known
utils.c:870:19: warning: unused variable ‘tzp’
make: *** [utils.o] Error 1
[oppie@fedora fics.1.7.4]$
Any pointers?
[oppie@fedora fics.1.7.4]$ make
gcc -DLINUX -Wall -ansi -pedantic -g -c -o ficsmain.o ficsmain.c
In file included from ficsmain.c:38:0:
comproc.h:28:14: warning: type defaults to ‘int’ in declaration of
‘none’
comproc.h:29:14: warning: type defaults to ‘int’ in declaration of
‘blitz_rat’
comproc.h:30:14: warning: type defaults to ‘int’ in declaration of
‘std_rat’
comproc.h:31:14: warning: type defaults to ‘int’ in declaration of
‘wild_rat’
comproc.h:32:14: warning: type defaults to ‘int’ in declaration of
‘light_rat’
comproc.h:33:14: warning: type defaults to ‘int’ in declaration of
‘bug_rat’
gcc -DLINUX -Wall -ansi -pedantic -g -c -o network.o network.c
network.c: In function ‘readline2’:
network.c:317:2: warning: pointer targets in passing argument 2 of
‘strcpy’ differ in signedness
/usr/include/string.h:128:14: note: expected ‘const char * __restrict__’
but argument is of type ‘unsigned char *’
network.c:361:2: warning: pointer targets in passing argument 2 of
‘strcpy’ differ in signedness
/usr/include/string.h:128:14: note: expected ‘const char * __restrict__’
but argument is of type ‘unsigned char *’
network.c:399:5: warning: pointer targets in passing argument 2 of
‘strcpy’ differ in signedness
/usr/include/string.h:128:14: note: expected ‘const char * __restrict__’
but argument is of type ‘unsigned char *’
network.c: In function ‘net_init’:
network.c:486:3: warning: implicit declaration of function
‘getdtablesize’
network.c: In function ‘ngc2’:
network.c:594:39: warning: pointer targets in passing argument 3 of
‘accept’ differ in signedness
/usr/include/sys/socket.h:214:12: note: expected ‘socklen_t *
__restrict__’ but argument is of type ‘int *’
gcc -DLINUX -Wall -ansi -pedantic -g -c -o utils.o utils.c
utils.c:49:46: warning: ‘struct timezone’ declared inside parameter list
utils.c:49:5: error: conflicting types for ‘gettimeofday’
/usr/include/sys/time.h:73:12: note: previous declaration of
‘gettimeofday’ was here
utils.c: In function ‘openTCP’:
utils.c:172:11: error: ‘struct hostent’ has no member named ‘h_addr’
utils.c: In function ‘mail_string_to_address’:
utils.c:232:3: warning: implicit declaration of function ‘popen’
utils.c:232:6: warning: assignment makes pointer from integer without a
cast
utils.c:241:3: warning: implicit declaration of function ‘pclose’
utils.c:193:7: warning: unused variable ‘n’
utils.c:191:8: warning: unused variable ‘filename’
utils.c: In function ‘mail_file_to_address’:
utils.c:318:6: warning: assignment makes pointer from integer without a
cast
utils.c:265:14: warning: unused variable ‘fp2’
utils.c:263:8: warning: unused variable ‘filename’
utils.c: In function ‘psend_command’:
utils.c:642:8: warning: assignment makes pointer from integer without a
cast
utils.c:644:8: warning: assignment makes pointer from integer without a
cast
utils.c: In function ‘strtime’:
utils.c:823:5: warning: ISO C90 does not support the ‘%e’ gnu_strftime
format
utils.c:823:5: warning: ISO C does not support the ‘%k’ gnu_strftime
format
utils.c:825:5: warning: ISO C90 does not support the ‘%e’ gnu_strftime
format
utils.c:825:5: warning: ISO C does not support the ‘%k’ gnu_strftime
format
utils.c: In function ‘fix_time’:
utils.c:849:3: warning: function returns address of local variable
utils.c: In function ‘tenth_secs’:
utils.c:870:19: error: storage size of ‘tzp’ isn’t known
utils.c:870:19: warning: unused variable ‘tzp’
make: *** [utils.o] Error 1
[oppie@fedora fics.1.7.4]$
Any pointers?