Anope IRC Services

Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: Error on build. Ubuntu server (2.6.24-23-server). langcomp  (Read 9827 times)

0 Members and 1 Guest are viewing this topic.

Henrik

  • Anope User
  • Offline Offline
  • Posts: 7
Error on build. Ubuntu server (2.6.24-23-server). langcomp
« on: April 08, 2009, 08:21:12 AM »

Hey guys. I get some errors when I try do "make" it after ./Config below is the errors:

Code: [Select]
make[1]: Entering directory `/home/neo/downloads/anope-1.9.0-release-source/lang'
langcomp.c: In function âread_index_fileâ:
langcomp.c:79: error: âstatic_castâ undeclared (first use in this function)
langcomp.c:79: error: (Each undeclared identifier is reported only once
langcomp.c:79: error: for each function it appears in.)
langcomp.c:79: error: expected expression before âcharâ
langcomp.c:83: error: expected expression before âcharâ
langcomp.c: In function âanopeStrDupâ:
langcomp.c:160: error: âstatic_castâ undeclared (first use in this function)
langcomp.c:160: error: expected expression before âcharâ
langcomp.c: In function âmainâ:
langcomp.c:212: error: âstatic_castâ undeclared (first use in this function)
langcomp.c:212: error: expected expression before âcharâ
langcomp.c:228: error: expected expression before âcharâ
make[1]: *** [langcomp] Error 1
make[1]: Leaving directory `/home/neo/downloads/anope-1.9.0-release-source/lang'
make: *** [language] Error 2

When I check config.log after this it actually looks pretty ok. last row is "exit 0". So i thought, "Hey... maybe the error isn't' critical". So I tried make install but is faced with:

Code: [Select]
$ make install
make -C src 'CFLAGS=-pipe -g -export-dynamic -g -Wall -ansi -pedantic -Wshadow' 'CC=g++ ' 'ANOPELIBS=-lnsl -lresolv  -ldl' 'LDFLAGS=' 'INSTDIR=/usr/local/irc/services' 'INSTALL=/usr/bin/install' 'INCLUDEDIR=../include' 'RM=/bin/rm' 'CP=/bin/cp' 'TOUCH=/usr/bin/touch' 'SHELL=/bin/sh' 'RUNGROUP=ircd' 'SHARED=-shared' 'MODULEFLAGS=-fPIC -DPIC -shared' 'MAKEBIN=' install
make[1]: Entering directory `/home/neo/downloads/anope-1.9.0-release-source/src'
make[1]: *** No rule to make target `../include/language.h', needed by `actions.o'.  Stop.
make[1]: Leaving directory `/home/neo/downloads/anope-1.9.0-release-source/src'
make: *** [install] Error 2
$

Can't really get my head around it. Anyone that can?

Cheers guys!
Logged

Charles Kingsley

  • Contributor
  • *
  • Offline Offline
  • Posts: 1405
Re: Error on build. Ubuntu server (2.6.24-23-server). langcomp
« Reply #1 on: April 08, 2009, 08:27:00 AM »

Did you 'cd' to build before running make?

Also, can I see the whole output from the running of ./Config downwards so as to determine whether it used cmake or not.

Thanks.
Logged

Henrik

  • Anope User
  • Offline Offline
  • Posts: 7
Re: Error on build. Ubuntu server (2.6.24-23-server). langcomp
« Reply #2 on: April 08, 2009, 12:04:27 PM »

Did you 'cd' to build before running make?

Also, can I see the whole output from the running of ./Config downwards so as to determine whether it used cmake or not.

Thanks.

HEy Charles!

When I cd to build and run make i get:

Code: [Select]
All done!  Now run "make" (or possibly "gmake") to compile Anope.
See the INSTALL, README and FAQ files if you have any problems.
$ cd build
$ make
make: *** No targets specified and no makefile found.  Stop.
$

The config log looks like: http://www.irry.com/neo/bilder/temp/config.log

THanks man!
Logged

Henrik

  • Anope User
  • Offline Offline
  • Posts: 7
Re: Error on build. Ubuntu server (2.6.24-23-server). langcomp
« Reply #3 on: April 08, 2009, 12:34:48 PM »

Have to add another thing. Had problems building it earlier and had to make a symlink for g++...

lrwxrwxrwx  1 root   root         16 2009-04-07 23:34 g++ -> /usr/bin/gcc-4.2
Logged

Henrik

  • Anope User
  • Offline Offline
  • Posts: 7
Re: Error on build. Ubuntu server (2.6.24-23-server). langcomp
« Reply #4 on: April 08, 2009, 12:48:51 PM »

Update:

Probably user error here, as usual? ;) Installed g++ and ran it with cmake instead. Now it's building. Getting some errors. Will post them later. just wanted to say that the biggest issues are solved.

A preview of the errors:

Code: [Select]
/home/neo/downloads/anope-1.9.0-release-source/src/core/ms_read.c: In function âint read_memo_callback(User*, int, char*)â:
/home/neo/downloads/anope-1.9.0-release-source/src/core/ms_read.c:146: warning: comparison between signed and unsigned integer expressions
/home/neo/downloads/anope-1.9.0-release-source/src/core/ms_read.c:147: warning: comparison between signed and unsigned integer expressions
/home/neo/downloads/anope-1.9.0-release-source/src/core/ms_read.c: In function âint read_memo(User*, int, MemoInfo*, const char*)â:
/home/neo/downloads/anope-1.9.0-release-source/src/core/ms_read.c:168: warning: comparison between signed and unsigned integer expressions
Logged

Charles Kingsley

  • Contributor
  • *
  • Offline Offline
  • Posts: 1405
Re: Error on build. Ubuntu server (2.6.24-23-server). langcomp
« Reply #5 on: April 08, 2009, 03:06:33 PM »

Make sure you've "apt-get install build-essential" 'd.
Logged

Naram Qashat

  • Team
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 192
    • CBX's Sprite Animations
Re: Error on build. Ubuntu server (2.6.24-23-server). langcomp
« Reply #6 on: April 08, 2009, 07:28:22 PM »

Those are warnings, not errors.  They are safe to ignore.
Logged

Henrik

  • Anope User
  • Offline Offline
  • Posts: 7
Re: Error on build. Ubuntu server (2.6.24-23-server). langcomp
« Reply #7 on: April 08, 2009, 09:30:44 PM »

Thanks guys =) Bloody brilliant support here! 8) I have some other issues now and will post a new thread about that. But this issue was solved after the suggested apt-get. 
Logged
Pages: [1]   Go Up