[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]  SMAUG
. -> [Folder]  Compiling the server
. . -> [Subject]  Canot compile lop1.40 with cygwin
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

Canot compile lop1.40 with cygwin

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


Posted by Gunner   Argentina  (22 posts)  [Biography] bio
Date Thu 01 May 2014 05:12 PM (UTC)

Amended on Thu 01 May 2014 05:13 PM (UTC) by Gunner

Message
Hi, I'm Trying to Compile lop 1.40 and get the Following Errors:
$ make
make -s lop
Compiling o/imc.o....
imc.c: En la función ‘bool imc_startup_network(bool)’:
imc.c:4831:8: error: se define la variable ‘fscanned’ pero no se usa [-Werror=unused-but-set-variable]
int fscanned;
^
cc1plus: todos los avisos se tratan como errores
Makefile:121: recipe for target 'o/imc.o' failed
make[1]: *** [o/imc.o] Error 1
Makefile:69: recipe for target 'all' failed
make: *** [all] Error 2
How I can fix this?
pd. sorry for the subject, my error
[Go to top] top

Posted by Nick Gammon   Australia  (21,324 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Thu 01 May 2014 08:04 PM (UTC)
Message
Try adding this to the compile line (options) in the makefile:


-Werror=unused-but-set-variable

- Nick Gammon

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

Posted by Gunner   Argentina  (22 posts)  [Biography] bio
Date Reply #2 on Thu 01 May 2014 08:46 PM (UTC)
Message
That's good? still the same error.
W_FLAGS = -Wall -Werror=unused-but-set-variable -Wshadow -Wformat-security -Wpointer-arith -Wcast-align -Wredundant-decls $(WSTRINGS)
[Go to top] top

Posted by Fiendish   USA  (1,641 posts)  [Biography] bio   Global Moderator
Date Reply #3 on Fri 02 May 2014 04:35 AM (UTC)
Message
Uh, no. Nick is wrong. You want -Wno-error=unused-but-set-variable.
Or just change line 4850 in imc.c to be
fscanf( fp, "%s %s\n", netname, server );
and then remove line 4833, because fscanned isn't being used for anything.

https://github.com/fiendish/aardwolfclientpackage
[Go to top] top

Posted by Nick Gammon   Australia  (21,324 posts)  [Biography] bio   Forum Administrator
Date Reply #4 on Fri 02 May 2014 04:36 AM (UTC)
Message
OK well try changing it to:


-Wno-unused-but-set-variable

- Nick Gammon

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

Posted by Gunner   Argentina  (22 posts)  [Biography] bio
Date Reply #5 on Fri 02 May 2014 04:03 PM (UTC)
Message
Thanks!
now there is new errors:
make -s lop
Compiling o/imc.o....
Compiling o/act_comm.o....
act_comm.c: En la función ‘void do_say(CHAR_DATA*, char*)’:
act_comm.c:429:11: error: la declaración de ‘actflags’ oscurece a una declaración global [-Werror=shadow]
EXT_BV actflags;
^
In file included from h/mud.h:59:0,
from act_comm.c:25:
h/const.h:469:3: error: aquí está la declaración oscurecida [-Werror=shadow]
} actflags;
^
act_comm.c: En la función ‘void do_gemote(CHAR_DATA*, char*)’:
act_comm.c:1187:11: error: la declaración de ‘actflags’ oscurece a una declaración global [-Werror=shadow]
EXT_BV actflags;
^
In file included from h/mud.h:59:0,
from act_comm.c:25:
h/const.h:469:3: error: aquí está la declaración oscurecida [-Werror=shadow]
} actflags;
^
act_comm.c: En la función ‘void do_emote(CHAR_DATA*, char*)’:
act_comm.c:1241:11: error: la declaración de ‘actflags’ oscurece a una declaración global [-Werror=shadow]
EXT_BV actflags;
^
In file included from h/mud.h:59:0,
from act_comm.c:25:
h/const.h:469:3: error: aquí está la declaración oscurecida [-Werror=shadow]
} actflags;
^
act_comm.c: En la función ‘int countlangs(EXT_BV)’:
act_comm.c:2241:34: error: la declaración de ‘languages’ oscurece a una declaración global [-Werror=shadow]
int countlangs( EXT_BV languages )
^
In file included from h/mud.h:59:0,
from act_comm.c:25:
h/const.h:155:3: error: aquí está la declaración oscurecida [-Werror=shadow]
} languages;
^
cc1plus: todos los avisos se tratan como errores
Makefile:121: recipe for target 'o/act_comm.o' failed
make[1]: *** [o/act_comm.o] Error 1
Makefile:69: recipe for target 'all' failed
make: *** [all] Error 2
[Go to top] top

Posted by Nick Gammon   Australia  (21,324 posts)  [Biography] bio   Forum Administrator
Date Reply #6 on Fri 02 May 2014 08:15 PM (UTC)
Message
You could fix those errors, or change to ignore them in a similar way to before:


-Wno-shadow

- Nick Gammon

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

Posted by Fiendish   USA  (1,641 posts)  [Biography] bio   Global Moderator
Date Reply #7 on Sat 03 May 2014 12:16 AM (UTC)
Message
Or just nip this whole thing in the bud. You obviously have -Werror defined. So add -Wno-error to override it.

https://github.com/fiendish/aardwolfclientpackage
[Go to top] top

Posted by Gunner   Argentina  (22 posts)  [Biography] bio
Date Reply #8 on Sat 03 May 2014 09:54 PM (UTC)
Message
Thanks, another error:
Compiling o/comm.o....
In file included from comm.c:33:0:
h/mccp.h:21:18: error fatal: zlib.h: No such file or directory
#include <zlib.h>
^
compilación terminada.
Makefile:121: recipe for target 'o/comm.o' failed
make[1]: *** [o/comm.o] Error 1
Makefile:69: recipe for target 'all' failed
make: *** [all] Error 2

Marcos@Marcos-PC ~/lop/src
$
[Go to top] top

Posted by Gunner   Argentina  (22 posts)  [Biography] bio
Date Reply #9 on Sat 03 May 2014 10:22 PM (UTC)
Message
ok, fixed it.

Now I can not start the mud.
cd lop/área
../lop
and stays there , doing nothing .
[Go to top] top

Posted by Fiendish   USA  (1,641 posts)  [Biography] bio   Global Moderator
Date Reply #10 on Sat 03 May 2014 11:25 PM (UTC)
Message
My only idea at this point will be that maybe a newer version fixes your problem. I know nothing about lop.

https://github.com/fiendish/aardwolfclientpackage
[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.


5,923 views.

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]