Doug, did you change your Makefile to accommodate for Solaris?? Rom24 has separate Makefiles for Linux and Solaris. Below is the default Makefile for Solaris from Rom 2.4b6. Hope it helps.

CC      = gcc
PROF    = -O -g
NOCRYPT =
C_FLAGS = -Wall $(PROF) $(NOCRYPT)
L_FLAGS = $(PROF)
LIBS    = -lsocket -lresolv -lnsl

O_FILES = act_comm.o act_enter.o act_info.o act_move.o act_obj.o act_wiz.o \
alias.o ban.o comm.o const.o db.o db2.o effects.o fight.o flags.o \
         handler.o healer.o interp.o note.o lookup.o magic.o magic2.o \
         music.o recycle.o save.o scan.o skills.o special.o tables.o \
         update.o mob_cmds.o mob_prog.o olc.o olc_act.o olc_save.o bit.o \
         mem.o string.o pedit.o hedit.o cmdedit.o raedit.o skedit.o \
         sedit.o gedit.o tablesave.o screen.o

rom: $(O_FILES)
       rm -f rom
       $(CC) $(L_FLAGS) -o rom $(O_FILES) $(LIBS)

.c.o: merc.h
       $(CC) -c $(C_FLAGS) $<

- Valnir

----- Original Message ----- From: "Richard Lindsey" <[EMAIL PROTECTED]>
To: "Doug Brewer" <[EMAIL PROTECTED]>; <[email protected]>
Sent: Thursday, September 08, 2005 1:15 PM
Subject: RE: Solaris 10 and Rom2.4


Sounds like you're running into a fairly common problem that people have
when they switch OS's like that... some OS's have their gcc libraries
with more functions than others, which is why, for example, in comm.c,
you'll see a section of precompiler directives that add function
prototypes for some functions while other OS's don't... if you're have
previous declaration errors, try commenting out the function declaration
for fread in merc.h, as long as it's actually a call to the system
function of fread and not to a ROM-specific function of some kind (like
fread_char, fread_obj, etc, which you shouldn't be getting errors for
anyway, but just in case you changed your fread_char to fread or
something like that :D)... I've never run on Solaris before, but that's
generally how those errors work, hope that helps :)

Richard Lindsey.

-----Original Message-----
From: Doug Brewer [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 08, 2005 12:03 PM
To: [email protected]
Subject: Solaris 10 and Rom2.4


Hello everyone,

Is there anyone here running Rom2.4 on a Solaris v10 server that would
be
willing to take the time to share their experiences with compiling the
Rom
code?

The server I am/was hosting my mud on changed from RedHat 8 to Solaris
10
and the mud code is not very happy to say the least.

Any suggestions would be great, here is as far as it gets after a 'make
clean'.

gcc -c -Wall -ggdb -O2 locker.c
In file included from locker.c:7:
merc.h:2847: error: conflicting types for 'fread'
/usr/include/iso/stdio_iso.h:237: error: previous declaration of 'fread'
was here
merc.h:2847: error: conflicting types for 'fread'
/usr/include/iso/stdio_iso.h:237: error: previous declaration of 'fread'
was here
merc.h:2937: warning: conflicting types for built-in function 'logf'
*** Error code 1
make: Fatal error: Command failed for target `locker.o'
[EMAIL PROTECTED]:~/windsmud/nowwoc/woc/src>

Thanks,
Doug

--
ROM mailing list
[email protected]
Unsubscribe here ->>> http://www.rom.org/cgi-bin/mailman/listinfo/rom
--
ROM mailing list
[email protected]
Unsubscribe here ->>> http://www.rom.org/cgi-bin/mailman/listinfo/rom


Reply via email to