Compiling fics-1.7.4

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?
 
F

Fred

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?

Did you even look at the source code lines that generated the
complaints?
All of them seem to be quite obvious.
 
J

jacob navia

Le 06/05/11 20:10, Fred a écrit :
Did you even look at the source code lines that generated the
complaints?
All of them seem to be quite obvious.


Look at the errors?

Try to figure out what is wrong?

Working?

You are kidding?

Just write to comp.lang.c and let somebody else work for you for free.

jacob
 
J

jacob navia

If you pay me my consulting fees (mail me for details)
you can get fics compiled in 24 h.

jacob at jacob dot remcomp dot fr

If not, well, you will have to work it out for yourself.
The chess server dates from 1997...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,011
Latest member
AjaUqq1950

Latest Threads

Top