[Home] [Downloads] [Search] [Help/forum]

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  ROM
. -> [Folder]  Compiling the server
. . -> [Subject]  act_comm errors compiling on ubuntu 9 with gcc 4.4.1
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

act_comm errors compiling on ubuntu 9 with gcc 4.4.1

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page


Pages: 1 2  3  

Posted by Milo   USA  (17 posts)  [Biography] bio
Date Mon 23 Nov 2009 10:45 AM (UTC)
Message
ok so here is the problem im having when i go to make the install


gcc -c -pipe -mcpu=pentium -march=pentium -rdynamic -W -O -Wall -Werror -Winline -Wpointer-arith -Wcast-align -gstabs+ -ggdb3
act_comm.c
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
In file included from act_comm.c:35:
merc.h:34:18: error: zlib.h: No such file or directory
In file included from act_comm.c:35:
merc.h:594: error: expected specifier-qualifier-list before ‘z_stream’
act_comm.c: In function ‘do_timestamp’:
act_comm.c:152: error: lvalue required as left operand of assignment
act_comm.c:157: error: lvalue required as left operand of assignment
act_comm.c: In function ‘do_noanno’:
act_comm.c:168: error: lvalue required as left operand of assignment
act_comm.c:173: error: lvalue required as left operand of assignment
act_comm.c: In function ‘do_deaf’:
act_comm.c:186: error: lvalue required as left operand of assignment
act_comm.c:191: error: lvalue required as left operand of assignment
act_comm.c: In function ‘do_quiet’:
act_comm.c:205: error: lvalue required as left operand of assignment
act_comm.c:210: error: lvalue required as left operand of assignment
act_comm.c: In function ‘do_afk’:
act_comm.c:241: error: lvalue required as left operand of assignment
act_comm.c:246: error: lvalue required as left operand of assignment
act_comm.c:247: error: lvalue required as left operand of assignment
act_comm.c: In function ‘do_auction’:
act_comm.c:602: error: lvalue required as left operand of assignment
act_comm.c:713: error: lvalue required as left operand of assignment
act_comm.c:720: error: lvalue required as left operand of assignment
act_comm.c: In function ‘do_anno’:
act_comm.c:833: error: lvalue required as left operand of assignment
act_comm.c:837: error: lvalue required as left operand of assignment
act_comm.c: In function ‘do_telnet_ga’:
act_comm.c:850: error: lvalue required as left operand of assignment
act_comm.c:854: error: lvalue required as left operand of assignment
act_comm.c: In function ‘do_fixcolors’:
act_comm.c:866: error: lvalue required as left operand of assignment
act_comm.c:870: error: lvalue required as left operand of assignment
act_comm.c: In function ‘do_follow’:
act_comm.c:1319: error: lvalue required as left operand of assignment
act_comm.c: In function ‘stop_follower’:
act_comm.c:1355: error: lvalue required as left operand of assignment
act_comm.c: In function ‘nuke_pets’:
act_comm.c:1394: error: lvalue required as left operand of assignment
act_comm.c: In function ‘do_colour’:
act_comm.c:1866: error: lvalue required as left operand of assignment
act_comm.c:1871: error: lvalue required as left operand of assignment
cc1: warnings being treated as errors
act_comm.c: In function ‘reset_remort’:
act_comm.c:2007: error: format not a string literal and no format arguments
act_comm.c: In function ‘do_remort’:
act_comm.c:2182: error: lvalue required as left operand of assignment
act_comm.c: In function ‘do_clears’:
act_comm.c:2196: error: lvalue required as left operand of assignment
act_comm.c:2200: error: lvalue required as left operand of assignment
act_comm.c: In function ‘do_misses’:
act_comm.c:2212: error: lvalue required as left operand of assignment
act_comm.c:2216: error: lvalue required as left operand of assignment
act_comm.c: In function ‘do_pdfont’:
act_comm.c:2228: error: lvalue required as left operand of assignment
act_comm.c:2232: error: lvalue required as left operand of assignment
act_comm.c: In function ‘do_mxp’:
act_comm.c:2244: error: lvalue required as left operand of assignment
act_comm.c:2248: error: lvalue required as left operand of assignment
act_comm.c: In function ‘do_pkill’:
act_comm.c:2299: error: lvalue required as left operand of assignment
act_comm.c:2303: error: lvalue required as left operand of assignment
act_comm.c: In function ‘do_public’:
act_comm.c:2316: error: lvalue required as left operand of assignment
act_comm.c:2320: error: lvalue required as left operand of assignment
act_comm.c: In function ‘do_multipass’:
act_comm.c:2531: error: lvalue required as left operand of assignment
act_comm.c:2535: error: lvalue required as left operand of assignment
act_comm.c: In function ‘do_troublemaker’:
act_comm.c:2559: error: lvalue required as left operand of assignment
act_comm.c:2563: error: lvalue required as left operand of assignment
act_comm.c: In function ‘do_noaddict’:
act_comm.c:2587: error: lvalue required as left operand of assignment
act_comm.c:2591: error: lvalue required as left operand of assignment
act_comm.c: In function ‘do_outcast’:
act_comm.c:2674: error: lvalue required as left operand of assignment
act_comm.c:2679: error: lvalue required as left operand of assignment
act_comm.c: In function ‘do_altokay’:
act_comm.c:2759: error: lvalue required as left operand of assignment
act_comm.c:2763: error: lvalue required as left operand of assignment
make: *** [act_comm.o] Error 1



Thanks for any help with this

Milo
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio
Date Reply #1 on Mon 23 Nov 2009 02:05 PM (UTC)
Message
merc.h:34:18: error: zlib.h: No such file or directory

This means you need to install zlib. If you search for 'zlib' on these forums, you'll find instructions. The short version is that you need the dev package from Ubuntu's package manager.

act_comm.c:2007: error: format not a string literal and no format arguments

This is saying that you might as well use strcat and not (presumably) sprintf. Normally this is a warning, but you're using -Werror so warnings become errors.

act_comm.c:152: error: lvalue required as left operand of assignment

This error comes up pretty frequently, just search the forums for lvalue. The forum might have material for SMAUG but it's basically the same coding problem as ROM.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
[Go to top] top

Posted by Milo   USA  (17 posts)  [Biography] bio
Date Reply #2 on Mon 23 Nov 2009 08:19 PM (UTC)
Message
ok i got the zlib dev installed and i still don't know how to fix the others i search the forums for the same errors i have but im such a nubie to this stuff my uncle is the one who used to run this mud im just trying to bring it back...

i post the errors on the next reply down


Thank You for the help

Milo


home page
http://egnsystems.info
[Go to top] top

Posted by Milo   USA  (17 posts)  [Biography] bio
Date Reply #3 on Mon 23 Nov 2009 08:24 PM (UTC)
Message

pdragon@EGNSystems:~/Rom24/src$ make
gcc -c -pipe -mcpu=pentium -march=pentium -rdynamic -W -O -Wall -Werror -Winline -Wpointer-arith -Wcast-align -gstabs+ -ggdb3
act_comm.c
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
In file included from act_comm.c:35:
merc.h:28:24: error: ../compile.h: No such file or directory
act_comm.c: In function ‘do_timestamp’:
act_comm.c:152: error: lvalue required as left operand of assignment
act_comm.c:157: error: lvalue required as left operand of assignment
act_comm.c: In function ‘do_noanno’:
act_comm.c:168: error: lvalue required as left operand of assignment
act_comm.c:173: error: lvalue required as left operand of assignment
act_comm.c: In function ‘do_deaf’:
act_comm.c:186: error: lvalue required as left operand of assignment
act_comm.c:191: error: lvalue required as left operand of assignment
act_comm.c: In function ‘do_quiet’:
act_comm.c:205: error: lvalue required as left operand of assignment
act_comm.c:210: error: lvalue required as left operand of assignment
act_comm.c: In function ‘do_afk’:
act_comm.c:241: error: lvalue required as left operand of assignment
act_comm.c:246: error: lvalue required as left operand of assignment
act_comm.c:247: error: lvalue required as left operand of assignment
act_comm.c: In function ‘do_auction’:
act_comm.c:602: error: lvalue required as left operand of assignment
act_comm.c:713: error: lvalue required as left operand of assignment
act_comm.c:720: error: lvalue required as left operand of assignment
act_comm.c: In function ‘do_anno’:
act_comm.c:833: error: lvalue required as left operand of assignment
act_comm.c:837: error: lvalue required as left operand of assignment
act_comm.c: In function ‘do_telnet_ga’:
act_comm.c:850: error: lvalue required as left operand of assignment
act_comm.c:854: error: lvalue required as left operand of assignment
act_comm.c: In function ‘do_fixcolors’:
act_comm.c:866: error: lvalue required as left operand of assignment
act_comm.c:870: error: lvalue required as left operand of assignment
act_comm.c: In function ‘do_follow’:
act_comm.c:1319: error: lvalue required as left operand of assignment
act_comm.c: In function ‘stop_follower’:
act_comm.c:1355: error: lvalue required as left operand of assignment
act_comm.c: In function ‘nuke_pets’:
act_comm.c:1394: error: lvalue required as left operand of assignment
act_comm.c: In function ‘do_colour’:
act_comm.c:1866: error: lvalue required as left operand of assignment
act_comm.c:1871: error: lvalue required as left operand of assignment
cc1: warnings being treated as errors
act_comm.c: In function ‘reset_remort’:
act_comm.c:2007: error: format not a string literal and no format arguments
act_comm.c: In function ‘do_remort’:
act_comm.c:2182: error: lvalue required as left operand of assignment
act_comm.c: In function ‘do_clears’:
act_comm.c:2196: error: lvalue required as left operand of assignment
act_comm.c:2200: error: lvalue required as left operand of assignment
act_comm.c: In function ‘do_misses’:
act_comm.c:2212: error: lvalue required as left operand of assignment
act_comm.c:2216: error: lvalue required as left operand of assignment
act_comm.c: In function ‘do_pdfont’:
act_comm.c:2228: error: lvalue required as left operand of assignment
act_comm.c:2232: error: lvalue required as left operand of assignment
act_comm.c: In function ‘do_mxp’:
act_comm.c:2244: error: lvalue required as left operand of assignment
act_comm.c:2248: error: lvalue required as left operand of assignment
act_comm.c: In function ‘do_pkill’:
act_comm.c:2299: error: lvalue required as left operand of assignment
act_comm.c:2303: error: lvalue required as left operand of assignment
act_comm.c: In function ‘do_public’:
act_comm.c:2316: error: lvalue required as left operand of assignment
act_comm.c:2320: error: lvalue required as left operand of assignment
act_comm.c: In function ‘do_multipass’:
act_comm.c:2531: error: lvalue required as left operand of assignment
act_comm.c:2535: error: lvalue required as left operand of assignment
act_comm.c: In function ‘do_troublemaker’:
act_comm.c:2559: error: lvalue required as left operand of assignment
act_comm.c:2563: error: lvalue required as left operand of assignment
act_comm.c: In function ‘do_noaddict’:
act_comm.c:2587: error: lvalue required as left operand of assignment
act_comm.c:2591: error: lvalue required as left operand of assignment
act_comm.c: In function ‘do_outcast’:
act_comm.c:2674: error: lvalue required as left operand of assignment
act_comm.c:2679: error: lvalue required as left operand of assignment
act_comm.c: In function ‘do_altokay’:
act_comm.c:2759: error: lvalue required as left operand of assignment
act_comm.c:2763: error: lvalue required as left operand of assignment
make: *** [act_comm.o] Error 1
pdragon@EGNSystems:~/Rom24/src$
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio
Date Reply #4 on Mon 23 Nov 2009 09:27 PM (UTC)
Message
When you found posts on the forum explaining those problems, which parts weren't clear or helpful to you? If you plan on running the MUD yourself, you'll need to understand these things, so you might as well start now. If you help us understand what confused you, we can better help you learn your way around.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
[Go to top] top

Posted by Milo   USA  (17 posts)  [Biography] bio
Date Reply #5 on Mon 23 Nov 2009 10:13 PM (UTC)

Amended on Mon 23 Nov 2009 10:14 PM (UTC) by Milo

Message
ok i will use this one as a example

act_comm.c:152: error: lvalue required as left operand of assignment

line 152 is
 REMOVE_BIT(ch->comm,COMM_TIMESTAMP);



the hole part of the script is


void do_timestamp( CHAR_DATA *ch, char *argument)
{
    ARGUMENT(argument);
    
   if (IS_SET(ch->comm,COMM_TIMESTAMP))
   {
     send_to_char("Channel timestamps are OFF.\n\r",ch);
     REMOVE_BIT(ch->comm,COMM_TIMESTAMP);
   }
   else 
   {
     send_to_char("Channel timestamps are ON.\n\r",ch);
     SET_BIT(ch->comm,COMM_TIMESTAMP);
   }
}



and i do not see any thing wrong with the code layout or how it is in there
[Go to top] top

Posted by Nick Gammon   Australia  (21,321 posts)  [Biography] bio   Forum Administrator
Date Reply #6 on Mon 23 Nov 2009 10:41 PM (UTC)
Message
Quote:

In file included from act_comm.c:35:
merc.h:28:24: error: ../compile.h: No such file or directory


You have to fix missing include files first. They may have very important things in them that would make everything else work.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Nick Gammon   Australia  (21,321 posts)  [Biography] bio   Forum Administrator
Date Reply #7 on Mon 23 Nov 2009 10:45 PM (UTC)
Message
Can you tell us exactly where you got your copy of ROM from? I could at least look at the source to see what is happening then. There have been a few versions, so a link to where you downloaded it would help.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Milo   USA  (17 posts)  [Biography] bio
Date Reply #8 on Mon 23 Nov 2009 10:55 PM (UTC)

Amended on Mon 23 Nov 2009 11:38 PM (UTC) by Milo

Message
well i got it from my uncle and i do not know where he got it from

and i have tryed to get it to read the compile.h but still not luck

i have tryed


#include <compile.h>
and yes when i tried it this way i did move a copy of the compile in the src folder 

and 

#include "../compile.h"
[Go to top] top

Posted by Nick Gammon   Australia  (21,321 posts)  [Biography] bio   Forum Administrator
Date Reply #9 on Mon 23 Nov 2009 11:35 PM (UTC)
Message

  • Can you show what REMOVE_BIT does? I found in my copy of ROM, this in merc.h:

    
    #define REMOVE_BIT(var, bit)    ((var) &= ~(bit))
    


    (Yours may be different).

  • Can you show what COMM_TIMESTAMP is declared as?

  • What is the "comm" field inside CHAR_DATA? In my copy it is:

    
    long        comm; 
    


- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Milo   USA  (17 posts)  [Biography] bio
Date Reply #10 on Mon 23 Nov 2009 11:48 PM (UTC)
Message
here is the define

#define REMOVE_BIT(var, bit)	((u_int64)(var) &= ~(u_int64)(bit))


i don't know where to fine the comm_timestamp stuff
[Go to top] top

Posted by Milo   USA  (17 posts)  [Biography] bio
Date Reply #11 on Mon 23 Nov 2009 11:49 PM (UTC)
Message
could it be using a 64bit os and the reson it is doing this to me is i need a 64 bit os insted of the 32bit os im trying to do this on
[Go to top] top

Posted by Nick Gammon   Australia  (21,321 posts)  [Biography] bio   Forum Administrator
Date Reply #12 on Tue 24 Nov 2009 12:09 AM (UTC)

Amended on Tue 24 Nov 2009 12:10 AM (UTC) by Nick Gammon

Message
Milo said:

i don't know where to fine the comm_timestamp stuff



grep COMM_TIMESTAMP *.{c,h}


More importantly, how is comm defined? If it is the same as mine, and is a long, then the code is trying to coerce it into a 64-bit integer, which it can't do.

It is nothing to do with the OS, because the compiler will still complain.

You might try removing the coercion from the macro (ie. make it the same as mine). Similarly for SET_BIT.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Nick Gammon   Australia  (21,321 posts)  [Biography] bio   Forum Administrator
Date Reply #13 on Tue 24 Nov 2009 12:11 AM (UTC)
Message
Or, change "comm" to be u_int64.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Milo   USA  (17 posts)  [Biography] bio
Date Reply #14 on Tue 24 Nov 2009 12:17 AM (UTC)
Message
i can load the rom and src in a web dir or i can give you a use on ssh to check it out cuz im still not finding anything

do you have teamspeak or any kind of messenger so we can talk faster


Thanks

Milo
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


23,046 views.

This is page 1, subject is 3 pages long: 1 2  3  [Next page]

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]