Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
auth_update crash
Dec 23, 2017, 10:15 pm
By Remcon
check_tumble
Dec 18, 2017, 7:21 pm
By Remcon
parse description bug
Dec 15, 2017, 10:08 pm
By Remcon
Couple bugs
Dec 12, 2017, 5:42 pm
By Remcon
Bug in disarm( )
Nov 12, 2017, 6:54 pm
By GatewaySysop
LoP 1.46
Author: Remcon
Submitted by: Remcon
LOP 1.45
Author: Remcon
Submitted by: Remcon
LOP Heroes Edition
Author: Vladaar
Submitted by: Vladaar
Heroes sound extras
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.3
Author: Vladaar
Submitted by: Vladaar
Users Online
CommonCrawl, Yandex

Members: 0
Guests: 10
Stats
Files
Topics
Posts
Members
Newest Member
478
3,708
19,242
612
Jacki72H
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » Codebases » AFKMud Support & Development » Makefile problems with linux
Forum Rules | Mark all | Recent Posts

Makefile problems with linux
< Newer Topic :: Older Topic >

Pages:<< prev 1 next >>
Post is unread #1 Nov 3, 2005, 9:46 am
Go to the top of the page
Go to the bottom of the page

Califas

GroupMembers
Posts7
JoinedNov 3, 2005

Hi everyone i just trying to compile the afkmud last version on linux,
and i can't compile with makefile.
I have try some changes in makefile but, nothing
make the makefile end right.
So, anyone can help me?


This appears to me when I try to make the afkmud.

 Compiling o/act_comm.o....
cc1plus: warnings being treated as errors
In file included from mud.h:29,
                 from act_comm.c:30:
/usr/include/stdio.h:216: warning: redundant redeclaration of `__underflow(_IO_FILE *)' in same scope
/usr/include/libio.h:256: warning: previous declaration of `__underflow(_IO_FILE *)'
/usr/include/stdio.h:217: warning: redundant redeclaration of `__overflow(_IO_FILE *, int)' in same scope
/usr/include/libio.h:258: warning: previous declaration of `__overflow(_IO_FILE *, int)'
make[1]: *** [o/act_comm.o] Error 1
make: *** [all] Error 2
       
Post is unread #2 Nov 3, 2005, 11:22 am
Go to the top of the page
Go to the bottom of the page

Remcon
Geomancer
GroupAdministrators
Posts1,868
JoinedJul 26, 2005

it looks like you should try to either comment out the include for stdio.h or libio.h.
If you comment out one and get warnings/errors then try uncommenting it and commenting out the other one.
       
Post is unread #3 Nov 3, 2005, 5:21 pm
Go to the top of the page
Go to the bottom of the page

Califas

GroupMembers
Posts7
JoinedNov 3, 2005

No, this not work, i've tried to do this, but i get lines and linde of warnings.
I can understand whats hapened, but thanks for help.
       
Post is unread #4 Nov 3, 2005, 6:12 pm
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,639
JoinedJan 1, 2002

What OS and compiler version are you using? libio.h should only be called up by stdio.h and not by the user so I'm not sure why this is happening.
       
Post is unread #5 Nov 4, 2005, 9:37 pm
Go to the top of the page
Go to the bottom of the page

Califas

GroupMembers
Posts7
JoinedNov 3, 2005

There is no way to make the afkmud with other make file?
I think is the version of my linux server, but i can't know what is the version O_o
Don't have any command, and the server don't show nothing on website.
I just want to run to see ne new things in muds, but this becames so hard to do here...
WEll, i wait a anwser...
tnx for all, who help me.
       
Post is unread #6 Nov 5, 2005, 7:40 am
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,639
JoinedJan 1, 2002


There is no way to make the afkmud with other make file?


This can't be answered unless I know what OS you are using and what compiler you are using. To find out the compiler version, type:
gcc -v
and then paste the output here.

You might be able to get enough information on the OS version by typing
uname -a
and posting the results here.
       
Post is unread #7 Nov 5, 2005, 5:04 pm   Last edited Nov 5, 2005, 5:04 pm by Califas
Go to the top of the page
Go to the bottom of the page

Califas

GroupMembers
Posts7
JoinedNov 3, 2005

I Just use this commands and find this:

Version of gcc:

Reading specs from /usr/lib/gcc-lib/i586-pc-linux-gnu/2.8.1/specs
gcc version 2.8.1



And the OS is:


Linux cronos.largesite.org 2.2.25 #7 Sat Jul 5 08:53:35 CDT 2003 i686 unknown


I hope with this you can help me...
Tnx a lot.
       
Post is unread #8 Nov 5, 2005, 5:11 pm
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,639
JoinedJan 1, 2002

Oh, indeed, this explains alot now. Your compiler is rather old, on the order of probably 7-10 years old. AFKMud is unlikely to compile on anything less than g++ 2.9.5. Although even that's not guaranteed. Best bet is to see about upgrading to at least the 3.x branch of GCC and that should solve the problem.
       
Post is unread #9 Nov 5, 2005, 9:10 pm
Go to the top of the page
Go to the bottom of the page

Califas

GroupMembers
Posts7
JoinedNov 3, 2005

Jesus!!!!
This is realy bad, i can't beleave this,
well, i realy thanks you and all who help me,
I will try to make the server updating the g++..
Thanks for help.
       
Pages:<< prev 1 next >>