Error while compiling Unrealircd.

These are old archives. They are kept for historic purposes only.
Post Reply
ben747
Posts: 2
Joined: Mon Jan 12, 2009 12:20 am

Error while compiling Unrealircd.

Post by ben747 »

Hi,

I tried to install UnrealIRCd, and for some reason I get errors while typing 'make'.
Also when I uploaded my config file and started the server, I got an error that a folder did not exists.

===============
During 'make'


In file included from /usr/include/string.h:417,
from timesynch.c:41:
/usr/include/bits/string2.h:969: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â__strcspn_c1â
/usr/include/bits/string2.h:971: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â__strcspn_c1â
/usr/include/bits/string2.h:979: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â__strcspn_c2â
/usr/include/bits/string2.h:982: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â__strcspn_c2â
/usr/include/bits/string2.h:991: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â__strcspn_c3â
/usr/include/bits/string2.h:994: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â__strcspn_c3â
/usr/include/bits/string2.h:1045: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â__strspn_c1â
/usr/include/bits/string2.h:1047: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â__strspn_c1â
/usr/include/bits/string2.h:1056: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â__strspn_c2â
/usr/include/bits/string2.h:1059: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â__strspn_c2â
/usr/include/bits/string2.h:1068: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â__strspn_c3â
/usr/include/bits/string2.h:1071: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â__strspn_c3â
/usr/include/bits/string2.h: In function â__strpbrk_c2â:
/usr/include/bits/string2.h:1129: error: âsize_tâ undeclared (first use in this function)
/usr/include/bits/string2.h:1129: error: expected â;â before â__sâ
/usr/include/bits/string2.h: In function â__strpbrk_c3â:
/usr/include/bits/string2.h:1142: error: âsize_tâ undeclared (first use in this function)
/usr/include/bits/string2.h:1142: error: expected â;â before â__sâ
/usr/include/bits/string2.h: At top level:
/usr/include/bits/string2.h:1323: error: expected declaration specifiers or â...â before âsize_tâ
In file included from ../include/h.h:28,
from timesynch.c:48:
../include/setup.h:192:2: error: too many decimal points in number
In file included from ../include/h.h:28,
from timesynch.c:48:
../include/setup.h:192: error: expected identifier or â(â before numeric constant
../include/setup.h:192:9: error: too many decimal points in number
../include/setup.h:192: error: stray â#â in program
../include/setup.h:192:45: error: invalid digit "8" in octal constant
../include/setup.h:192: error: missing terminating " character
In file included from ../include/h.h:30,
from timesynch.c:48:
../include/fdlist.h:9: warning: data definition has no type or storage class
../include/fdlist.h:11: error: expected declaration specifiers or â...â before âfdlistâ
../include/fdlist.h:12: error: expected declaration specifiers or â...â before âfdlistâ
../include/fdlist.h:13: error: expected â)â before â*â token
../include/fdlist.h:16: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âoper_fdlistâ
In file included from timesynch.c:48:
../include/h.h:257: error: expected declaration specifiers or â...â before âfdlistâ
../include/h.h:272: error: expected â)â before âsizeâ
../include/h.h:467: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âstrlcpyâ
../include/h.h:470: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âstrlcatâ
../include/h.h:473: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âstrlncatâ
../include/h.h:531: error: expected declaration specifiers or â...â before âsize_tâ
../include/h.h:531: error: expected declaration specifiers or â...â before âsize_tâ
../include/h.h:532: error: expected declaration specifiers or â...â before âsize_tâ
../include/h.h:580: error: expected â)â before â*â token
../include/h.h:586: error: expected â)â before âsizeâ
../include/h.h:679: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âdefault_fdlistâ
In file included from timesynch.c:49:
../include/inet.h:34: error: expected declaration specifiers or â...â before âsize_tâ
timesynch.c: In function âts_buildpacketâ:
timesynch.c:84: error: too many arguments to function âmemsetâ
timesynch.c:96: error: too many arguments to function âmemcpyâ
timesynch.c:103: error: too many arguments to function âmemcpyâ
timesynch.c: In function âextracttimeâ:
timesynch.c:115: error: too many arguments to function âmemcmpâ
timesynch.c: In function âunreal_time_synchâ:
timesynch.c:174: error: too many arguments to function âmemsetâ
timesynch.c:194: warning: passing argument 5 of âsendtoâ makes integer from pointer without a cast
timesynch.c:194: error: too many arguments to function âsendtoâ
timesynch.c:216: error: too many arguments to function âmemsetâ
timesynch.c:232: error: too many arguments to function ârecvâ
make[1]: *** [timesynch.o] Error 1
make[1]: Leaving directory `/home/test/Unreal3.2.7/src'
make: *** [build] Error 2
[root@main Unreal3.2.7]# ./Unreal start
-bash: ./Unreal: No such file or directory
================
The list goes on, but I don't want to flood the post.

I don't think its a user level issue, I tried in regular user, and root.

Here's when I started the server:

[root@main Unreal3.2.7]# ./Unreal start
-bash: ./Unreal: No such file or directory
[root@main Unreal3.2.7]# ./unreal start
Starting UnrealIRCd
./unreal: line 10: /home/test/Unreal3.2.7/src/ircd: No such file or directory
Possible error encountered (IRCd seemingly not started)
=====================================================
Check above for possible errors, and this output of
ircd.log. If you cannot solve the problem, read
Unreal.nfo on where to get support
=====================================================
tail: cannot open `/home/test/Unreal3.2.7/ircd.log' for reading: No such file or directory
[root@main Unreal3.2.7]#
[root@main Unreal3.2.7]#

I have no idea whats going on.
zEkE
Posts: 111
Joined: Wed Apr 14, 2004 9:30 am
Location: Harrisonburg, VA
Contact:

Re: Error while compiling Unrealircd.

Post by zEkE »

It is ALWAYS recommended to compile and run Unreal as a non-root user. Following the instructions set out in the documentation (create an unprivileged user, log in as that user, download the latest package, untar, ./Config, make), do you get the same result?

If so, you need to look at the thread "How to get support" and provide the appropriate information (OS, version, etc)
NetAdmin - irc.unitedchristianchat.net
http://www2.i-al.net/ircbots/
ben747
Posts: 2
Joined: Mon Jan 12, 2009 12:20 am

Re: Error while compiling Unrealircd.

Post by ben747 »

Ok, you might have not read the whole thing, I said I installed in root, AND in regular user.

Still the same problem.

I have a CentOS 5.1 FINAL. 300GB HDD.
2 CPU Processers (Intel(R) Pentium(R) D CPU 2.80GHz)
Post Reply