LPMuds.net
September 09, 2010, 04:31:10 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: This is the forum page. For the main LPMuds page, visit http://lpmuds.net
 
   Home   SITE FAQ INTERMUD DOWNLOADS LINKS Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: FluffOS on OpenSolaris - problem with compilation  (Read 1130 times)
melkor
Acquaintance
*
Offline Offline

Posts: 17


Dreamer


View Profile WWW
« on: October 23, 2009, 02:39:30 PM »

Hi guys!

I'm currently trying to migrate my system to OpenSolaris but i'm having problems compiling the FluffOS 2.18 on this OS, even using GNU GCC.
The error i get is in ed.c and it's the following:
Code:
ed.c: In function `report_status':
ed.c:2488: error: duplicate case value
ed.c:2448: error: previously used here
Any help is appreciated.

Thank you!

P.S. - The system is 32bit. I tried to compile and on a 64bit kernel but still without luck.
Logged

There is a Dark place inside each of us...
wodan
BFF
***
Offline Offline

Posts: 270

Drink and code, you know you want to!


View Profile
« Reply #1 on: October 24, 2009, 12:17:55 AM »

seems ERR is defined in solaris headers, I'll rename the ed defines in 2.19 :/
Logged
cratylus
Your favorite and best
Administrator
***
Offline Offline

Posts: 918


Cratylus@Dead Souls <ds> np


View Profile WWW
« Reply #2 on: October 24, 2009, 12:23:31 AM »

seems ERR is defined in solaris headers, I'll rename the ed defines in 2.19 :/

I actually don't get this with "general availability" Solaris 10. I'll install an
opensolaris vm tonight and see if I reproduce this.

-Crat
Logged
cratylus
Your favorite and best
Administrator
***
Offline Offline

Posts: 918


Cratylus@Dead Souls <ds> np


View Profile WWW
« Reply #3 on: October 24, 2009, 04:47:31 AM »

Sure enough, I reproduced this in opensolaris.

I got around this by editing ed.c and changing this:

Code:
#include "std.h"
#include "ed.h"
#include "comm.h"
#include "file.h"
#include "master.h"

to this:

Code:
#include "std.h"
#include "comm.h"
#include "file.h"
#include "master.h"
#include "ed.h"

Please note that this workaround only allows you to compile. I haven't
checked to see whether it screws up ed.

-Crat
Logged
wodan
BFF
***
Offline Offline

Posts: 270

Drink and code, you know you want to!


View Profile
« Reply #4 on: October 24, 2009, 03:35:35 PM »

I'd expect that to work with warnings
Logged
cratylus
Your favorite and best
Administrator
***
Offline Offline

Posts: 918


Cratylus@Dead Souls <ds> np


View Profile WWW
« Reply #5 on: October 24, 2009, 05:19:35 PM »

I'd expect that to work with warnings

Yes indeed. However, the warnings only pop up in opensolaris, and since
the opensolaris gcc doesn't -Werror by default, it's simply an ugliness
for people on that OS, rather than a showstopper.

Definitely I'd suggest changing the defines, but as a workaround, moving the
include around seems pretty harmless thus far.

-Crat
Logged
melkor
Acquaintance
*
Offline Offline

Posts: 17


Dreamer


View Profile WWW
« Reply #6 on: October 25, 2009, 10:48:33 PM »

Thanks guys. I will try this tomorrow and will post if the results.
Logged

There is a Dark place inside each of us...
melkor
Acquaintance
*
Offline Offline

Posts: 17


Dreamer


View Profile WWW
« Reply #7 on: October 27, 2009, 02:53:12 PM »

Just tested it and it works like a charm.

Thank you guys and sorry for the late response.
Logged

There is a Dark place inside each of us...
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!