Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ SMAUG ➜ Compiling the server ➜ Canot compile lop1.40 with cygwin

Canot compile lop1.40 with cygwin

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


Posted by Gunner   Argentina  (31 posts)  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
Top

Posted by Nick Gammon   Australia  (23,140 posts)  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
Top

Posted by Gunner   Argentina  (31 posts)  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)
Top

Posted by Fiendish   USA  (2,535 posts)  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
Top

Posted by Nick Gammon   Australia  (23,140 posts)  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
Top

Posted by Gunner   Argentina  (31 posts)  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
Top

Posted by Nick Gammon   Australia  (23,140 posts)  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
Top

Posted by Fiendish   USA  (2,535 posts)  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
Top

Posted by Gunner   Argentina  (31 posts)  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
$
Top

Posted by Gunner   Argentina  (31 posts)  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 .
Top

Posted by Fiendish   USA  (2,535 posts)  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
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.


31,022 views.

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

Go to topic:           Search the forum


[Go to top] top

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