[IRCServices] ircservices 5.1.x compile error

Jarrod Frates jfrates at gmail.com
Tue Nov 20 19:55:41 PST 2007


On CentOS 4.5 x86_64, I can't get anything in the 5.1.x line to
compile (tried .0, .5, .6, .7, and .8), even though 5.0.62 compiles
just fine.  This was attempted using make 3.80 and gcc 3.4.6 and gcc
4.1.1.

Here are the outputs from configure and make:

[user at server ircservices-5.1.8]# ./configure

Beginning IRC Services configuration.

Executable (program) files will be installed in /usr/local/sbin
Data files will be installed in /usr/local/lib/ircservices
Checking sanity of /bin/sh... high.
Searching for a suitable compiler... great, found gcc!
Testing default compiler flags (-O2 -fno-strict-aliasing)... looks good.
Let's see what libraries we need... -lm -lcrypt
Checking whether we can use dynamic modules... no.
Checking whether ranlib exists... yes.
Checking for presence of include files (it's okay if some aren't there):
    stdint.h... present
    strings.h... present
    sys/select.h... present
    sys/sysproto.h... not present
Looking for an 8-bit integer type... int8_t
Looking for a 16-bit integer type... int16_t
Looking for a 32-bit integer type... int32_t
Looking for a 64-bit integer type... int64_t
Checking the size of int... 32 bits
Checking the size of long... 64 bits
Checking the size of pointers... 64 bits
Checking the size of time_t... 64 bits (nifty!)
Checking the size of gid_t... 32 bits
Checking for socklen_t... present.
Seeing if your system defines int16/int32... not found (this is good).
How to complain when something goes wrong... ah, strerror() is here.
Looking for other functions we want that you don't have...
Checking how to install files... looks like "install" will work.
Seeing if "install" will create directories... OK.
Checking how to copy directories... /bin/cp -dpr
Creating config.h... done.
Creating Makefile.inc... done.
Saving configuration results in config.cache... done.

All done!  Now edit defs.h as needed, and run "make" (or possibly "gmake")
to compile Services.  See the README and FAQ if you have any problems.

[user at server ircservices-5.1.8]# make
touch services.h
make -C lang langstrs.h
make[1]: Entering directory `/root/download/working/ircservices-5.1.8/lang'
perl make-langstrs-h.pl >langstrs.h.new
Generating langstrs.h... 1240 strings
langstrs.h unchanged
make[1]: Leaving directory `/root/download/working/ircservices-5.1.8/lang'
cp -p lang/langstrs.h .
touch language.h
gcc  -DSTATIC_MODULES -O2 -fno-strict-aliasing -g -Wall
-Wmissing-prototypes -c actions.c -o actions.o
In file included from services.h:78,
                 from actions.c:10:
sockets.h:141: error: syntax error before "per_conn"
sockets.h:154: error: syntax error before "read_buffer_len"
sockets.h:154: warning: type defaults to `int' in declaration of
`read_buffer_len'
sockets.h:154: warning: data definition has no type or storage class
sockets.h:155: error: syntax error before "write_buffer_len"
sockets.h:155: warning: type defaults to `int' in declaration of
`write_buffer_len'
sockets.h:155: warning: data definition has no type or storage class
sockets.h:156: error: syntax error before "uint64_t"
sockets.h:157: error: syntax error before "uint32_t"
In file included from services.h:79,
                 from actions.c:10:
send.h:19: error: syntax error before "protocol_features"
send.h:19: warning: type defaults to `int' in declaration of `protocol_features'
send.h:19: warning: data definition has no type or storage class
In file included from services.h:80,
                 from actions.c:10:
modes.h:29: error: syntax error before "uint8_t"
modes.h:29: warning: no semicolon at end of struct or union
modes.h:30: warning: type defaults to `int' in declaration of `minus_params'
modes.h:30: warning: data definition has no type or storage class
modes.h:32: error: syntax error before "info"
modes.h:32: warning: type defaults to `int' in declaration of `info'
modes.h:32: warning: data definition has no type or storage class
modes.h:33: warning: type defaults to `int' in declaration of `ModeData'
modes.h:33: warning: data definition has no type or storage class
modes.h:56: error: syntax error before "usermodes"
modes.h:56: warning: type defaults to `int' in declaration of `usermodes'
modes.h:56: warning: type defaults to `int' in declaration of `chanmodes'
modes.h:56: warning: type defaults to `int' in declaration of `chanusermodes'
modes.h:56: warning: data definition has no type or storage class
In file included from services.h:81,
                 from actions.c:10:
users.h:37: error: syntax error before "uint32_t"
users.h:37: warning: no semicolon at end of struct or union
users.h:42: error: syntax error before "lastcmd"
users.h:42: warning: type defaults to `int' in declaration of `lastcmd'
users.h:42: warning: data definition has no type or storage class
users.h:52: error: syntax error before '*' token
users.h:52: warning: type defaults to `int' in declaration of `id_nicks'
users.h:52: warning: data definition has no type or storage class
users.h:64: error: syntax error before '}' token
In file included from services.h:85,
                 from actions.c:10:
extern.h:154: error: syntax error before "uint32_t"
extern.h:230: error: syntax error before "time_msec"
extern.h:230: warning: type defaults to `int' in declaration of `time_msec'
extern.h:230: warning: data definition has no type or storage class
extern.h:234: error: syntax error before '*' token
extern.h:234: warning: type defaults to `int' in declaration of `pack_ip'
extern.h:234: warning: data definition has no type or storage class
extern.h:235: warning: type defaults to `int' in declaration of `uint8_t'
extern.h:235: error: syntax error before '*' token
extern.h:236: error: syntax error before '*' token
extern.h:236: warning: type defaults to `int' in declaration of `pack_ip6'
extern.h:236: warning: data definition has no type or storage class
extern.h:237: warning: type defaults to `int' in declaration of `uint8_t'
extern.h:237: error: syntax error before '*' token
In file included from actions.c:13:
timeout.h:46: error: syntax error before "delay"
timeout.h:46: error: `add_timeout_ms' declared as function returning a function
timeout.h:47: error: syntax error before "int"
actions.c: In function `bad_password':
actions.c:67: error: dereferencing pointer to incomplete type
actions.c:68: error: dereferencing pointer to incomplete type
actions.c:69: error: dereferencing pointer to incomplete type
actions.c:70: error: dereferencing pointer to incomplete type
actions.c:71: error: dereferencing pointer to incomplete type
actions.c:72: error: dereferencing pointer to incomplete type
actions.c:75: error: dereferencing pointer to incomplete type
actions.c:77: error: dereferencing pointer to incomplete type
actions.c: In function `clear_umodes':
actions.c:172: error: dereferencing pointer to incomplete type
actions.c: In function `clear_users':
actions.c:194: error: dereferencing pointer to incomplete type
actions.c: In function `set_cmode':
actions.c:478: warning: assignment makes pointer from integer without a cast
make: *** [actions.o] Error 1


Jarrod