Anope IRC Services

Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1] 2   Go Down

Author Topic: "make" fails at bots.cpp/modules.h  (Read 18334 times)

0 Members and 1 Guest are viewing this topic.

Andreas

  • Anope User
  • Offline Offline
  • Posts: 13
"make" fails at bots.cpp/modules.h
« on: December 29, 2009, 04:59:04 PM »

Hello,

I am trying to install anope on a NSLU2 running Unslung.

When i run .Config it passes through, but when i run make after that it writes a lot of warnings and errors and then fails at bots.cpp

Here is the Output:

The first line comes up like 100 times.
Code: [Select]
base64.c:350: warning: converting of negative value `-1' to `char'
g++  -pipe -g -export-dynamic -g -Wall -ansi -pedantic -Wshadow -I../include/ -c   bots.cpp
In file included from bots.cpp:13:
../include/modules.h:577: error: parse error before `{' token
../include/modules.h:577: error: missing ';' before right brace
../include/modules.h:582: error: two or more data types in declaration of `
   OnBackupDatabase'
../include/modules.h:582: error: virtual outside class declaration
../include/modules.h:582: error: parse error before `{' token
../include/modules.h:587: error: virtual outside class declaration
../include/modules.h:588: error: virtual outside class declaration
../include/modules.h:589: error: virtual outside class declaration
../include/modules.h:590: error: virtual outside class declaration
../include/modules.h:591: error: virtual outside class declaration
../include/modules.h:599: error: virtual outside class declaration
../include/modules.h:607: error: virtual outside class declaration
../include/modules.h:613: error: virtual outside class declaration
../include/modules.h:620: error: virtual outside class declaration
../include/modules.h:626: error: virtual outside class declaration
../include/modules.h:633: error: virtual outside class declaration
../include/modules.h:639: error: virtual outside class declaration
../include/modules.h:647: error: virtual outside class declaration
../include/modules.h:653: error: virtual outside class declaration
../include/modules.h:659: error: virtual outside class declaration
../include/modules.h:665: error: virtual outside class declaration
../include/modules.h:670: error: virtual outside class declaration
../include/modules.h:674: error: virtual outside class declaration
../include/modules.h:678: error: virtual outside class declaration
../include/modules.h:684: error: virtual outside class declaration
../include/modules.h:684: error: parse error before `{' token
../include/modules.h:688: error: virtual outside class declaration
../include/modules.h:688: error: parse error before `{' token
../include/modules.h:692: error: virtual outside class declaration
../include/modules.h:696: error: virtual outside class declaration
../include/modules.h:700: error: virtual outside class declaration
../include/modules.h:704: error: virtual outside class declaration
../include/modules.h:709: error: virtual outside class declaration
../include/modules.h:714: error: virtual outside class declaration
../include/modules.h:719: error: virtual outside class declaration
../include/modules.h:724: error: virtual outside class declaration
../include/modules.h:730: error: virtual outside class declaration
../include/modules.h:735: error: virtual outside class declaration
../include/modules.h:740: error: virtual outside class declaration
../include/modules.h:745: error: virtual outside class declaration
../include/modules.h:750: error: virtual outside class declaration
../include/modules.h:757: error: virtual outside class declaration
../include/modules.h:765: error: virtual outside class declaration
../include/modules.h:773: error: virtual outside class declaration
../include/modules.h:779: error: virtual outside class declaration
../include/modules.h:784: error: virtual outside class declaration
../include/modules.h:789: error: virtual outside class declaration
../include/modules.h:794: error: virtual outside class declaration
../include/modules.h:799: error: virtual outside class declaration
../include/modules.h:804: error: virtual outside class declaration
../include/modules.h:809: error: virtual outside class declaration
../include/modules.h:814: error: virtual outside class declaration
../include/modules.h:819: error: virtual outside class declaration
../include/modules.h:825: error: virtual outside class declaration
../include/modules.h:830: error: virtual outside class declaration
../include/modules.h:835: error: virtual outside class declaration
../include/modules.h:840: error: virtual outside class declaration
../include/modules.h:845: error: virtual outside class declaration
../include/modules.h:850: error: virtual outside class declaration
../include/modules.h:855: error: virtual outside class declaration
../include/modules.h:860: error: virtual outside class declaration
../include/modules.h:864: error: virtual outside class declaration
../include/modules.h:869: error: virtual outside class declaration
../include/modules.h:874: error: virtual outside class declaration
../include/modules.h:879: error: virtual outside class declaration
../include/modules.h:885: error: virtual outside class declaration
../include/modules.h:890: error: virtual outside class declaration
../include/modules.h:895: error: virtual outside class declaration
../include/modules.h:900: error: virtual outside class declaration
../include/modules.h:905: error: virtual outside class declaration
../include/modules.h:911: error: virtual outside class declaration
../include/modules.h:916: error: virtual outside class declaration
../include/modules.h:921: error: virtual outside class declaration
../include/modules.h:926: error: virtual outside class declaration
../include/modules.h:928: error: parse error before `}' token
bots.cpp: In constructor `BotInfo::BotInfo(const char*)':
bots.cpp:40: error: `OnBotPreLoad' undeclared (first use this function)
bots.cpp:40: error: (Each undeclared identifier is reported only once for each
   function it appears in.)
bots.cpp: In constructor `BotInfo::BotInfo(const char*, const char*, const
   char*, const char*)':
bots.cpp:78: error: `OnBotPreLoad' undeclared (first use this function)
make[1]: *** [bots.o] Error 1
make[1]: Leaving directory `/home/anope-1.9.1-p1-source/src'
make: *** [build] Error 2

I took a look at modules.h and the lines where it fails are commented as Deprecated.

Can anyone help me with that?

Thanks in advance.
Logged

Taylor

  • Contributor
  • *
  • Offline Offline
  • Posts: 100
Re: "make" fails at bots.cpp/modules.h
« Reply #1 on: December 30, 2009, 12:18:35 PM »

Make sure your compiliers are at an up-to-date version. Older compilers may not compile the source properly and produce such errors.
Logged
Cronus
irc.cncirc.net
http://CnCIRC.net

Andreas

  • Anope User
  • Offline Offline
  • Posts: 13
Re: "make" fails at bots.cpp/modules.h
« Reply #2 on: December 30, 2009, 12:30:19 PM »

The compiler (gcc) was freshly installed prior to start of compiling of anope. It has been installed as part of the devel-package for the OS i am running, so i think it is the actual available version. I also successfully compiled UnrealIRCd on the same machine.
Logged

Jan Milants

  • Team
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 1372
Re: "make" fails at bots.cpp/modules.h
« Reply #3 on: December 30, 2009, 12:36:57 PM »

which version of 1.9 are you trying to compile?
Logged
If you like me donate coins to 1FBmZVT4J8WAUMHKqpWhgNVj3XXnRN1cCk :)

Andreas

  • Anope User
  • Offline Offline
  • Posts: 13
Re: "make" fails at bots.cpp/modules.h
« Reply #4 on: December 30, 2009, 12:54:48 PM »

It is the actual from this page: anope-1.9.1-p1-source.tar.gz
Logged

Charles Kingsley

  • Contributor
  • *
  • Offline Offline
  • Posts: 1405
Re: "make" fails at bots.cpp/modules.h
« Reply #5 on: December 30, 2009, 12:58:23 PM »

gcc -v

Logged

Andreas

  • Anope User
  • Offline Offline
  • Posts: 13
Re: "make" fails at bots.cpp/modules.h
« Reply #6 on: December 30, 2009, 01:03:01 PM »

Code: [Select]
Reading specs from /opt/armeb/lib/gcc-lib/armv5b-softfloat-linux/3.3.5/specs
Configured with: /home/slug/optware/nslu2/builds/crosstool-native/build/armv5b-softfloat-linux/gcc-3.3.5-glibc-2.2.5/gcc-3.3.5/configure --build=i686-build_pc-linux-gnu --target=armv5b-softfloat-linux --host=armv5b-host_softfloat-linux --prefix=/opt/armeb --with-float=soft --with-cpu=xscale --enable-cxx-flags=-mcpu=xscale --disable-libunwind-exceptions --with-headers=/opt/armeb/armv5b-softfloat-linux/include --with-local-prefix=/opt/armeb/armv5b-softfloat-linux --disable-nls --enable-threads=posix --enable-symvers=gnu --enable-__cxa_atexit --enable-languages=c,c++ --enable-shared --enable-c99 --enable-long-long
Thread model: posix
gcc version 3.3.5
Logged

Jan Milants

  • Team
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 1372
Re: "make" fails at bots.cpp/modules.h
« Reply #7 on: December 30, 2009, 01:04:06 PM »

gcc 3 is ancient history...
Logged
If you like me donate coins to 1FBmZVT4J8WAUMHKqpWhgNVj3XXnRN1cCk :)

Charles Kingsley

  • Contributor
  • *
  • Offline Offline
  • Posts: 1405
Re: "make" fails at bots.cpp/modules.h
« Reply #8 on: December 30, 2009, 01:06:48 PM »

GCC 3.3.5    September 30, 2004

Upgrade or try and compile 1.8.x it may be more tolerant.
Logged

Andreas

  • Anope User
  • Offline Offline
  • Posts: 13
Re: "make" fails at bots.cpp/modules.h
« Reply #9 on: December 30, 2009, 01:19:31 PM »

Are there remarkable differences between 1.8 and 1.9?
Logged

lavinpj1

  • Guest
Re: "make" fails at bots.cpp/modules.h
« Reply #10 on: December 30, 2009, 01:22:59 PM »

One or two ;)
Logged

Jan Milants

  • Team
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 1372
Re: "make" fails at bots.cpp/modules.h
« Reply #11 on: December 30, 2009, 01:24:16 PM »

1.8 is the stable version, 1.9 is the development version..
1.9 is basically a gradual C++ rewrite of 1.8 with some new features added along the way.. it will have a new DB system which should support live sql (though for now sql has been removed from it altogether) and some other stuff, check the todo.

for live networks i d recommend 1.8 anyways unless you don't mind to run into a bug occasionally.. 1.9 is a work in progress, not a finished product.
Logged
If you like me donate coins to 1FBmZVT4J8WAUMHKqpWhgNVj3XXnRN1cCk :)

Andreas

  • Anope User
  • Offline Offline
  • Posts: 13
Re: "make" fails at bots.cpp/modules.h
« Reply #12 on: December 30, 2009, 01:56:45 PM »

I just ran in another error while trying to run "make" with 1.8.2:

Code: [Select]
anopesmtp.c: In function `remove_log':
anopesmtp.c:78: error: `PATH_MAX' undeclared (first use in this function)
anopesmtp.c:78: error: (Each undeclared identifier is reported only once
anopesmtp.c:78: error: for each function it appears in.)
anopesmtp.c: In function `open_log':
anopesmtp.c:96: error: `PATH_MAX' undeclared (first use in this function)
make[1]: *** [anopesmtp.o] Error 1
make[1]: Leaving directory `/home/anope-1.8.2/src/tools'
make: *** [tools] Error 2
Logged

Charles Kingsley

  • Contributor
  • *
  • Offline Offline
  • Posts: 1405
Re: "make" fails at bots.cpp/modules.h
« Reply #13 on: December 30, 2009, 01:58:46 PM »

Time to look at upgrading your gcc.
Logged

Jan Milants

  • Team
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 1372
Re: "make" fails at bots.cpp/modules.h
« Reply #14 on: December 30, 2009, 02:01:41 PM »

if it only fails on anopesmtp but does compile anope itself you might still be able to use 1.8 with gcc3.. know though that we can't support you when using gcc3 as it s too old and almost noone still uses it...
Logged
If you like me donate coins to 1FBmZVT4J8WAUMHKqpWhgNVj3XXnRN1cCk :)

Andreas

  • Anope User
  • Offline Offline
  • Posts: 13
Re: "make" fails at bots.cpp/modules.h
« Reply #15 on: December 30, 2009, 02:04:44 PM »

Well it's not that easy to upgrade to a newer version. There is no possibility to upgrade it via the packet manager so i will have to compile it. I'm unpacking the source right now, but i hope it won't also run in an error.

I would barely like to run some incomplete software caused by compilation errors.
Logged

Charles Kingsley

  • Contributor
  • *
  • Offline Offline
  • Posts: 1405
Re: "make" fails at bots.cpp/modules.h
« Reply #16 on: December 30, 2009, 02:08:13 PM »

It's not our fault your chosen distro hasn't left the dark ages yet.

From a google though it appears there is a version of this unslung OS that comes with gcc4, you should look at that.
Logged

Andreas

  • Anope User
  • Offline Offline
  • Posts: 13
Re: "make" fails at bots.cpp/modules.h
« Reply #17 on: December 30, 2009, 02:20:16 PM »

It's not our fault your chosen distro hasn't left the dark ages yet.

I didn't say that.

BTW: Where did you find that unslung version with gcc4?
« Last Edit: December 30, 2009, 02:22:21 PM by Andreas »
Logged

Charles Kingsley

  • Contributor
  • *
  • Offline Offline
  • Posts: 1405
Re: "make" fails at bots.cpp/modules.h
« Reply #19 on: December 30, 2009, 02:28:00 PM »

Knowing nothing about this device it would appear unslung isn't recommended from reading http://www.slug-firmware.net/

Might be worth trying something like debian which is supported there as an OS that is at least maintained since it's been two years since unslung was touched.

Logged

Andreas

  • Anope User
  • Offline Offline
  • Posts: 13
Re: "make" fails at bots.cpp/modules.h
« Reply #20 on: December 31, 2009, 03:30:54 PM »

Now i have flashed Debian on the machine and with gcc4 it compiled without problems.

Right now it seems, my IRCd and anope are running properly, but i can not log on with my user defined in the Oper-Line of unrealircd.conf

EDIT: Now i can log on to my IRC, but no sign of services. As i ran ./services it didn't display any messages so i think it's running properly.
« Last Edit: December 31, 2009, 03:48:11 PM by Andreas »
Logged

Charles Kingsley

  • Contributor
  • *
  • Offline Offline
  • Posts: 1405
Re: "make" fails at bots.cpp/modules.h
« Reply #21 on: December 31, 2009, 04:09:56 PM »

You'd be wrong in your assumptions, ./services will only whinge if there's a config error not a linking/other error.

Check the log directory for info and if not run ./services -support and paste the output.
Logged

Andreas

  • Anope User
  • Offline Offline
  • Posts: 13
Re: "make" fails at bots.cpp/modules.h
« Reply #22 on: December 31, 2009, 04:31:17 PM »

Here is the output log when running ./services -support
Logged

Charles Kingsley

  • Contributor
  • *
  • Offline Offline
  • Posts: 1405
Re: "make" fails at bots.cpp/modules.h
« Reply #23 on: December 31, 2009, 04:33:37 PM »

[Dec 31 17:27:40.172708 2009] debug: Received: ERROR :Link denied (No matching link configuration) [@127.0.0.1.43543]
[Dec 31 17:27:40.173437 2009] debug: Link denied (No matching link configuration) [@127.0.0.1.43543]
[Dec 31 17:27:40.174025 2009] Error: Your IRCD's link block may not setup correctly, please check unrealircd.conf
[Dec 31 17:27:40.175641 2009] debug: Received: ERROR :Closing Link: [127.0.0.1] (Link denied (No matching link configuration))
[Dec 31 17:27:40.176282 2009] debug: Closing Link: [127.0.0.1] (Link denied (No matching link configuration))
[Dec 31 17:27:40.176823 2009] Error: Your IRCD's link block may not setup correctly, please check unrealircd.conf
Logged

Andreas

  • Anope User
  • Offline Offline
  • Posts: 13
Re: "make" fails at bots.cpp/modules.h
« Reply #24 on: December 31, 2009, 04:43:13 PM »

Do i have to use another server numeric for services than unrealircd?

Unreal has Numeric 1 and in anopes .conf i also set it to 1 (like stated here: http://forum.anope.org/index.php?topic=1267.0 )

Code: [Select]
[Dec 31 17:40:26.360670 2009] debug: Received: ERROR :Closing Link: services.127.0.0.1[127.0.0.1] (Colliding server numeric (choose another))
[Dec 31 17:40:26.362880 2009] debug: Closing Link: services.127.0.0.1[127.0.0.1] (Colliding server numeric (choose another))
« Last Edit: December 31, 2009, 04:45:02 PM by Andreas »
Logged
Pages: [1] 2   Go Up