Solaris 10 Compile

All your MAngband related technical questions answered. Problems compiling or running the game/server? No problem! Ask here.
wrmichael
Seedy Looking Human
Posts: 16
Joined: Thu 24.09.2009, 03:29

Solaris 10 Compile

Post by wrmichael » Thu 24.09.2009, 03:31

I am trying to compile on Solaris 10.

I am getting errors with the make file.


"Makefile" 379 lines, 10320 characters
$ dmake
dmake: Fatal error in reader: Makefile, line 290: Unexpected end of line seen
$


I used dos2unix to fix the file because it was having issues with TABS and other EOL errors.

any thoughts?

User avatar
Warrior
Evil Iggy
Posts: 667
Joined: Sat 26.10.2002, 15:00
Location: Norway
Contact:

Re: Solaris 10 Compile

Post by Warrior » Thu 24.09.2009, 18:29

Hi michael.

I can't really help you here but I've pointed our devs in the direction of this question so they'll hopefully get to you as soon as possible. As far as I know none of them are Solaris experts but they will try to help you as far as they can anyway :) And never know, maybe some other people may chime in with some hints and tips here too.
-- Mangband Project Team Member

wrmichael
Seedy Looking Human
Posts: 16
Joined: Thu 24.09.2009, 03:29

Re: Solaris 10 Compile

Post by wrmichael » Fri 25.09.2009, 00:25

starting line is 115:

LIBS = -lncurses -lX11

# Hack -- configure special flags to match usual flags



ifeq ($(strip $(PREFIX)),)
#PREFIX=/usr/local/bin
PREFIX=.. #manghack VS autoconf. MANGHACK WINS!
endif


results:

Running "/export/home/opt/sunstudio12.1/bin/dmake -f Angband-Makefile.mk CONF=Default" in /export/home/waynem/SunStudioProjects/Angband

dmake: defaulting to parallel mode.
See the man page dmake(1) for more information on setting up the .dmakerc file.
moria --> 1 job
moria --> 2 jobs
/export/home/opt/sunstudio12.1/bin/dmake -f nbproject/Makefile-Default.mk SUBPROJECTS= .build-conf
moria --> 1 job
cd ../../mb/src && make -f Makefile
moria --> Job output
cd ../../mb/src && make -f Makefile
make: Fatal error in reader: Makefile, line 115: Unexpected end of line seen
Current working directory /export/home/waynem/mb/src
*** Error code 1
dmake: Fatal error: Command failed for target `.build-conf'
Current working directory /export/home/waynem/SunStudioProjects/Angband
*** Error code 1
dmake: Fatal error: Command failed for target `.build-impl'

Build failed. Exit value 1.

decided to use the sun studio IDE to see if it would help.

I am sure this is something simple, like a dmake flag setting.

Guess I should boot up my fedora box and see what it does.

User avatar
Flambard
King Vampire
Posts: 259
Joined: Wed 20.06.2007, 10:49

Re: Solaris 10 Compile

Post by Flambard » Fri 25.09.2009, 17:39

I used dos2unix to fix the file because it was having issues with TABS and other EOL errors.
If I had to guess (and I have to), I'd say there lies the root of your problem. As far as I know our makefile is properly formated. I'm not sure what solaris (or unix?) convetions it might be breaking, but if you could elaborate, please do.

It's also worth noting, that we [are going to] use automake for future versions, and you can test how it works for you (see svn trunk). It won't give you a playable mangband client or anything, but it could be an interesting test still.

wrmichael
Seedy Looking Human
Posts: 16
Joined: Thu 24.09.2009, 03:29

Re: Solaris 10 Compile

Post by wrmichael » Sat 26.09.2009, 04:39

if I do not use the dos2unix format I receive the EOL message in many spots prior to the 288 line.

I also receive errors about space not being tabs

here is the created and unmodified make file:

Code: Select all

# File: Makefile



# This is not a very "nice" Makefile, but it usually works.

#

# Note that you may have to make modifications below according

# to your machine, available libraries, compilation options,

# and your "visual module" of choice.  This Makefile is intended

# for use with Unix machines running X11, Curses, Ncurses, or Vt100,

# or possibly for "Atari" or "Amiga" computers with "Curses" ports,

# see below for more information.

#

# Note that "main-mac.c", the visual module for the Macintosh,

# must be compiled in a special way, see elsewhere.

#

# Note that "main-win.c", the visual module for Windows,

# must be compiled in a special way, see elsewhere.

#

# Note that "main-ibm.c", "main-emx.c", and "main-286.c",

# the visual modules for various types of IBM-PC computers,

# must be compiled with special Makefiles, see elsewhere.

#

# Note that "main-lsl.c", the visual module for ???,

# must be compiled with "Makefile.lsl", see elsewhere.

#

# Note that "main-acn.c", the visual module for Risc Acorn,

# must be compiled with "Makefile.acn", see elsewhere.

#

# Note that "Makefile.w31" and "Makefile.wat" are slight variations

# on "Makefile.win" and "Makefile.ibm", respectively, which allow

# the use of the "main-win.c" and "main-ibm.c" files, respectively,

# with special compilers.

#

# If you are able to construct "main-xxx.c" and/or "Makefile.xxx"

# files for a currently unsupported system, please send them to me

# (benh@voicenet.com) for inclusion in future versions.

#

# This Makefile comes with "default" dependancies that may be obsolete.

#

# You may want to run "make depend" if you are planning on changing

# anything.

#





#

# The "source" and "object" files.

#



SERV_SRCS = \

  common/z-util.c common/z-virt.c common/z-form.c common/z-rand.c \

  common/net-unix.c common/net-win.c common/sockbuf.c server/variable.c server/control.c \

  server/party.c server/tables.c server/util.c server/cave.c \

  server/object1.c server/object2.c server/obj-info.c server/monster1.c server/monster2.c \

  server/xtra1.c server/xtra2.c server/spells1.c server/spells2.c server/x-spell.c \

  server/melee1.c server/melee2.c server/save.c server/files.c \

  server/cmd1.c server/cmd2.c server/cmd3.c server/cmd4.c server/cmd5.c \

  server/cmd6.c server/store.c server/birth.c server/load2.c \

  server/sched.c server/sched-win.c server/generate.c server/wilderness.c server/dungeon.c \

  server/init1.c server/init2.c server/netserver.c \

  server/main.c common/md5.c



CLI_SRCS = \

  common/z-util.c common/z-virt.c common/z-form.c common/z-rand.c \

  common/net-unix.c common/net-win.c common/net-ibm.c common/sockbuf.c common/md5.c \

  client/z-term.c client/c-util.c client/c-cmd.c client/c-inven.c \

  client/c-files.c client/c-tables.c client/c-store.c client/c-init.c \

  client/set_focus.c client/variable.c client/readdib.c \

  client/main-ibm.c client/main-cap.c client/main-xaw.c \

  client/main-gcu.c client/main-x11.c \

  client/main-sdl.c client/maim-sdl.c client/sdl-xxx.c \

  client/netclient.c client/c-birth.c \

  client/c-xtra1.c client/c-xtra2.c client/c-spell.c client/client.c 







##

## Following are some "system" definitions

##

## No changes are needed to compile a version that will run on both

## X11 and Curses, in debugging mode, with maximal warnings, on many

## normal Unix machines of the Sun OS variety (non-solaris).

##

## To use an "alternative" definition, simply "modify" (or "replace")

## the definition below with one that you like.  For example, you can

## change the compiler to "cc", or remove the "debugging" options, or

## remove the X11 or Curses support, etc, as desired.

##

## See also "config.h" and "h-config.h" for important information.

##

## Some "examples" are given below, they can be used by simply

## removing the FIRST column of "#" signs from the "block" of lines

## you wish to use, and commenting out "standard" block below.

##

## This is not intended to be a "good" Makefile, just a "simple" one.

##





#

# This is my compiler of choice, it seems to work most everywhere

#

CC = gcc



# Allow SVN revision number to be used as version id

#shell=/bin/sh

#SVNREV := -D'SVNREV="$(shell svnversion -n .)"'



# AutoTools

CC = gcc

CFLAGS = $(SVNREV)  -Wall -g -pipe  -DUSE_GCU -DUSE_X11

LIBS = -lncurses  -lX11



#

#

#

#

#



#

# Windows32 version (see main-win.c)

#

#	Note, how special CLI_LIBS and SERV_LIBS directives are used

#	to separete LIBS for client and server! 

#

#	CLI_MAIN directive changes client/client.c 

#

#

#CFLAGS = $(SVNREV) -g -pipe

#CLI_LIBS = -l ws2_32 -l winmm -l gdi32 -l comdlg32 -mwindows

#SERV_LIBS = -l ws2_32 -l winmm 

#RES= windres -I client -o client/res.o client/Angband.rc

#CLI_MAIN = client/main-win.c

#EXE_HACK=.exe



#

# Windows32 + SDL version (see main-sdl.c)

#	

# 	Can't compile server this way :(

#

#CFLAGS = $(SVNREV) -g -pipe `sdl-config --cflags` -D"USE_SDL"

#LIBS = -l ws2_32 `sdl-config --libs`

#RES= windres -I client -o client/res.o client/Angband.rc

#EXE_HACK=.exe



#

# SDL version (see main-sdl.c)

#

# 	With some luck this could be used on any unix-based system

# 	with SDL support (ncurses still?)

#

#CFLAGS = $(SVNREV) -Wall -g -pipe -D"USE_SDL" -D"USE_XXX" `sdl-config --cflags`

#LIBS = -lncurses `sdl-config --libs`





#

# Standard version (see main-x11.c and main-gcu.c)

#

# This version supports both "X11" and "curses" in a single executable.

#

# You may have to add various X11 include/library directories to the

# "CFLAGS", if your machine places files in a weird location.

#

# You may be able to remove "-ltermcap" on some machines (ex: Solaris).

#

# You may have to replace "-lcurses" with "-lncurses" to use the

# "new curses" library instead of the "old curses" library, and

# you may have to add "-l/usr/include/ncurses" to the "CFLAGS".

#

# See "main-gcu.c" and "config.h" for some optional "curses" defines,

# including "USE_GETCH" and "USE_CURS_SET".  Note that "config.h" will

# attempt to "guess" at many of these flags based on your system.

#



# support both Xwindows, and Terminal (telnet) mode

#CFLAGS = $(SVNREV) -Wall -g -pipe -D"USE_X11" -D"USE_GCU" -I/usr/include/ncurses -Icommon

#LIBS = -L/usr/X11R6/lib -lX11 -lncurses





# only support Terminal mode.

#CFLAGS = $(SVNREV) -Wall -g -pipe -D"USE_GCU" -I/usr/include/ncurses

#LIBS = -lncurses











# Only support Xwindows (and not terminal mode) 

#CFLAGS = $(SVNREV) -Wall -O1 -pipe -g -D"USE_X11"

#LIBS = -lX11





## Added by thaler, 6/28/97

## Variation -- Only support "main-gcu.c" (not "main-x11.c") on localhost

##

## NOTE -- Using this variation requires that the server and client run

## on the same machine!  Also define META_ADDRESS to be an empty string

## in config.h.  --Keldon

##

#CFLAGS = -Wall -O1 -pipe -g -D"USE_GCU" -DUNIX_SOCKETS

#LIBS = -lncurses -ltermcap





##

## Variation -- Use "main-xaw.c" instead of "main-x11.c"

##

#CFLAGS = -Wall -O1 -pipe -g -D"USE_XAW" -D"USE_GCU"

#LIBS = -lXaw -lXmu -lXt -lX11 -lcurses -ltermcap





##

## Variation -- Use "main-cap.c" instead of "main-gcu.c"

##

#CFLAGS = -Wall -O1 -pipe -g -D"USE_X11" -D"USE_CAP"

#LIBS = -lX11 -ltermcap





##

## Variation -- Only work on simple vt100 terminals

##

#CFLAGS = -Wall -O1 -pipe -g -D"USE_CAP" -D"USE_HARDCODE"





##

## Variation -- this might work for Linux 1.1.93 using ncurses-1.8.7.

##

#CFLAGS = -I/usr/X11R6/include -I/usr/include/ncurses \

#         -Wall -O2 -fomit-frame-pointer -m486 \

#         -D"USE_X11" -D"USE_GCU"

#LIBS = -L/usr/X11R6/lib -lX11 -lncurses -ltermcap



##

## Variation -- this might work better than the suggestion above

##

#CFLAGS = -I/usr/include/ncurses \

#         -Wall -O2 -fomit-frame-pointer \

#         -D"USE_X11" -D"USE_GCU" \

#         -D"USE_TPOSIX" -D"USE_CURS_SET"

#LIBS = -lX11 -lncurses

#LDFLAGS = -s





##

## Variation -- compile for Solaris

##

#CFLAGS = -Wall -O1 -pipe -g -D"USE_X11" -D"USE_GCU" -D"SOLARIS" -I/usr/openwin/include

#LIBS = -L/usr/openwin/lib -R/usr/openwin/lib -lX11 -lsocket -lnsl -lcurses





##

## Variation -- compile for SGI Indigo runnig Irix

##

#CFLAGS = -Wall -O1 -pipe -g -D"USE_X11" -D"USE_GCU" -D"SGI"

#LIBS = -lX11 -lcurses -ltermcap -lsun







##

## Variation -- compile for Dec ALPHA OSF/1 v2.0

##

#CC     = cc

##CFLAGS = -std -O -g3 -Olimit 4000 -D"USE_X11" -D"USE_GCU"

#CFLAGS = -std -g -D"USE_X11" -D"USE_GCU"

#LIBS   = -lX11 -lcurses -ltermcap -lrpcsvc





##

## Variation -- compile for Interactive Unix (ISC) systems

##

#CFLAGS = -Wall -O1 -pipe -g -D"USE_X11" -D"USE_GCU" -D"ISC"

#LIBS = -lX11 -lcurses -lnsl_s -linet -lcposix





##

## Variation -- Support fat binaries under NEXTSTEP

##

#CFLAGS = -Wall -O1 -pipe -g -D"USE_GCU" -arch m68k -arch i386

#LIBS = -lcurses -ltermcap





##

## Variation -- Support for DJGPP with TCPLIB

##

#CFLAGS = -Wall -O2 -g -D"USE_IBM" -DMSDOS

#LIBS = -ltcp



#

# Hack -- configure special flags to match usual flags

#



ifeq ($(strip $(PREFIX)),)

#PREFIX=/usr/local/bin
PREFIX=.. #manghack VS autoconf. MANGHACK WINS!
endif

ifneq ($(strip $(DATADIR)),)

CFLAGS+=-DDEFAULT_PATH="\"$(DATADIR)\""
endif

ifneq ($(strip $(LIBS)),)

	SERV_LIBS = $(LIBS)

	CLI_LIBS = $(LIBS)

endif

ifneq ($(strip $(CLI_MAIN)),)

	CLI_RSRCS = $(patsubst client/client.c,$(CLI_MAIN),$(CLI_SRCS))

else

	CLI_RSRCS = $(CLI_SRCS)

endif

ifneq ($(strip $(CLI_DMAIN)),)

	RCFLAGS = $(patsubst $(CLI_DMAIN),,$(CFLAGS))

else

	RCFLAGS = $(CFLAGS)

endif



ifneq ($(strip $(RES)),)

	RES_OBJ = client/res.o

endif

CLI_OBJS = $(patsubst %.c,%.o,$(CLI_RSRCS))

SERV_OBJS = $(patsubst %.c,%.o,$(SERV_SRCS))





#

# Hack -- "install" as the base target

#

# If you want to build a server, remove the two hashes from the lines

# below.

#



install: mangclient mangband

	cp mangclient $(PREFIX)

	cp mangband $(PREFIX)







#

# Build the "MAngband" server

#



mangband: $(SERV_OBJS)

	$(CC) $(RCFLAGS) -o mangband $(SERV_OBJS) $(LDFLAGS) $(SERV_LIBS)





#

# Build the "MAngband" client

#



mangclient: $(CLI_OBJS)

	$(RES)

	$(CC) $(RCFLAGS) -o mangclient $(CLI_OBJS) $(RES_OBJ) $(LDFLAGS) $(CLI_LIBS)







#

# Rule for making a '.o'

#

.c.o:

	$(CC) $(RCFLAGS) -o $*.o -c $*.c





#

# Clean up old junk

#



clean:

	cd server; rm -f *.o

	cd client; rm -f *.o

	cd common; rm -f *.o

	





#

# Generate dependancies automatically

#



depend:

	makedepend -- $(RCFLAGS) -D__MAKEDEPEND__ -- $(SERV_SRCS) $(CLI_RSRCS)





# DO NOT ADD ANYTHING BELOW THIS LINE.



# DO NOT DELETE THIS LINE -- make depend depends on it.



it dies on line 3 if I do not use the dos2unix on it first.

wrmichael
Seedy Looking Human
Posts: 16
Joined: Thu 24.09.2009, 03:29

Re: Solaris 10 Compile

Post by wrmichael » Sat 26.09.2009, 05:18

GNU Make does a little better!

$ make
gcc -Wall -g -pipe -DUSE_GCU -DUSE_X11 -o common/net-unix.o -c common/net-uni x.c
In file included from /usr/include/sys/signal.h:34,
from /usr/include/signal.h:26,
from common/net-unix.c:77:
/usr/include/sys/siginfo.h:259: error: parse error before "ctid_t"
/usr/include/sys/siginfo.h:292: error: parse error before '}' token
/usr/include/sys/siginfo.h:294: error: parse error before '}' token
/usr/include/sys/siginfo.h:390: error: parse error before "ctid_t"
/usr/include/sys/siginfo.h:392: error: conflicting types for `__proc'
/usr/include/sys/siginfo.h:261: error: previous declaration of `__proc'
/usr/include/sys/siginfo.h:398: error: conflicting types for `__fault'
/usr/include/sys/siginfo.h:267: error: previous declaration of `__fault'
/usr/include/sys/siginfo.h:404: error: conflicting types for `__file'
/usr/include/sys/siginfo.h:273: error: previous declaration of `__file'
/usr/include/sys/siginfo.h:420: error: conflicting types for `__prof'
/usr/include/sys/siginfo.h:287: error: previous declaration of `__prof'
/usr/include/sys/siginfo.h:424: error: conflicting types for `__rctl'
/usr/include/sys/siginfo.h:291: error: previous declaration of `__rctl'
/usr/include/sys/siginfo.h:426: error: parse error before '}' token
/usr/include/sys/siginfo.h:428: error: parse error before '}' token
/usr/include/sys/siginfo.h:432: error: parse error before "k_siginfo_t"
/usr/include/sys/siginfo.h:437: error: parse error before '}' token
In file included from /usr/include/signal.h:26,
from common/net-unix.c:77:
/usr/include/sys/signal.h:85: error: parse error before "siginfo_t"
In file included from common/net-unix.c:77:
/usr/include/signal.h:111: error: parse error before "siginfo_t"
/usr/include/signal.h:113: error: parse error before "siginfo_t"
common/net-unix.c: In function `inet_ntoa':
common/net-unix.c:2587: warning: int format, long unsigned int arg (arg 3)
common/net-unix.c:2587: warning: int format, long unsigned int arg (arg 4)
common/net-unix.c:2587: warning: int format, long unsigned int arg (arg 5)
common/net-unix.c:2587: warning: int format, long unsigned int arg (arg 6)
common/net-unix.c: At top level:
common/net-unix.c:35: warning: `sourceid' defined but not used
make: *** [common/net-unix.o] Error 1
$


I'll play with it more tomorrow when I'm awake! :->

Billsey
King Vampire
Posts: 272
Joined: Sun 12.02.2006, 14:36
Location: Oregon, USA
Contact:

Re: Solaris 10 Compile

Post by Billsey » Sun 27.09.2009, 16:42

It's obvious why it doesn't like the file before the DOS2UNIX conversion. It treats the <cr><lf> as <lf><lf> instead of as <lf>. That means any line that's split using the backslash is parsed as two lines, with the second line not making sense:

Code: Select all

SERV_SRCS = \

common/z-util.c common/z-virt.c common/z-form.c common/z-rand.c \
is way different than

Code: Select all

SERV_SRCS = \
common/z-util.c common/z-virt.c common/z-form.c common/z-rand.c \
Now as to the other issue... The errors shown are generated with your system include files. Is there any chance that the compiler environment is pointing at the wrong set of includes? The warning messages when the compiler gets to net-unix.c are normal and should not affect the compile.
Mangband Project Team Member

wrmichael
Seedy Looking Human
Posts: 16
Joined: Thu 24.09.2009, 03:29

Re: Solaris 10 Compile

Post by wrmichael » Fri 02.10.2009, 03:57

almost have it!

Code: Select all

client/c-xtra1.c:1041: warning: unused variable `pmdone'
client/c-xtra1.c:1041: warning: unused variable `mdone'
client/c-xtra1.c:1042: warning: unused variable `pmw'
client/c-xtra1.c:1042: warning: unused variable `pmh'
client/c-xtra1.c: In function `display_player':
client/c-xtra1.c:1588: warning: unused variable `buf'
gcc   -Wall -g -pipe  -DUSE_GCU -DUSE_X11 -o client/c-xtra2.o -c client/c-xtra2.c
gcc   -Wall -g -pipe  -DUSE_GCU -DUSE_X11 -o client/c-spell.o -c client/c-spell.c
gcc   -Wall -g -pipe  -DUSE_GCU -DUSE_X11 -o client/client.o -c client/client.c
gcc   -Wall -g -pipe  -DUSE_GCU -DUSE_X11 -o mangclient common/z-util.o common/z-virt.o common/z-form.o common/z-rand.o common/net-unix.o common/net-win.o common/net-ibm.o common/sockbuf.o common/md5.o client/z-term.o client/c-util.o client/c-cmd.o client/c-inven.o client/c-files.o client/c-tables.o client/c-store.o client/c-init.o client/set_focus.o client/variable.o client/readdib.o client/main-ibm.o client/main-cap.o client/main-xaw.o client/main-gcu.o client/main-x11.o client/main-sdl.o client/maim-sdl.o client/sdl-xxx.o client/netclient.o client/c-birth.o client/c-xtra1.o client/c-xtra2.o client/c-spell.o client/client.o   -lncurses  -lX11
Undefined                       first referenced
 symbol                             in file
bind                                common/net-unix.o  (symbol belongs to implicit dependency /usr/lib/libsocket.so.1)
recv                                common/net-unix.o  (symbol belongs to implicit dependency /usr/lib/libsocket.so.1)
send                                common/net-unix.o  (symbol belongs to implicit dependency /usr/lib/libsocket.so.1)
initscr32                           client/main-gcu.o
getsockname                         common/net-unix.o  (symbol belongs to implicit dependency /usr/lib/libsocket.so.1)
accept                              common/net-unix.o  (symbol belongs to implicit dependency /usr/lib/libsocket.so.1)
w32addch                            client/main-gcu.o
listen                              common/net-unix.o  (symbol belongs to implicit dependency /usr/lib/libsocket.so.1)
gethostbyaddr                       common/net-unix.o  (symbol belongs to implicit dependency /usr/lib/libnsl.so.1)
gethostbyname                       common/net-unix.o  (symbol belongs to implicit dependency /usr/lib/libnsl.so.1)
sendto                              common/net-unix.o  (symbol belongs to implicit dependency /usr/lib/libsocket.so.1)
socket                              common/net-unix.o  (symbol belongs to implicit dependency /usr/lib/libsocket.so.1)
w32attrset                          client/main-gcu.o
setsockopt                          common/net-unix.o  (symbol belongs to implicit dependency /usr/lib/libsocket.so.1)
getsockopt                          common/net-unix.o  (symbol belongs to implicit dependency /usr/lib/libsocket.so.1)
connect                             common/net-unix.o  (symbol belongs to implicit dependency /usr/lib/libsocket.so.1)
getpeername                         common/net-unix.o  (symbol belongs to implicit dependency /usr/lib/libsocket.so.1)
recvfrom                            common/net-unix.o  (symbol belongs to implicit dependency /usr/lib/libsocket.so.1)
inet_addr                           common/net-unix.o  (symbol belongs to implicit dependency /usr/lib/libnsl.so.1)
shutdown                            common/net-unix.o  (symbol belongs to implicit dependency /usr/lib/libsocket.so.1)
ld: fatal: Symbol referencing errors. No output written to mangclient
collect2: ld returned 1 exit status
make: *** [mangclient] Error 1
$

wrmichael
Seedy Looking Human
Posts: 16
Joined: Thu 24.09.2009, 03:29

Re: Solaris 10 Compile

Post by wrmichael » Fri 02.10.2009, 03:59

not sure what this error is about.

had to use curses and not ncurses.

Installed gcc 3.4.6 and libconv

had to remove usleep function.

had to take the definition for ncurses our of main-gcu.c

any ideas where to go next with the prior post.

User avatar
Flambard
King Vampire
Posts: 259
Joined: Wed 20.06.2007, 10:49

Re: Solaris 10 Compile

Post by Flambard » Fri 02.10.2009, 16:36

Hmm, linker can't find socket library? Otherwise, no clue, but it looks like you're doing fine :) Please send the patches in when you get there.

wrmichael
Seedy Looking Human
Posts: 16
Joined: Thu 24.09.2009, 03:29

Re: Solaris 10 Compile

Post by wrmichael » Wed 07.10.2009, 02:12

Got it to compile.

had to add -lnsl to LIB in the Makefile.

Code: Select all

CC = gcc^M
CFLAGS = $(SVNREV)  -Wall -g -I/usr/local/include/ncurses -pipe -I/usr/local/inc
lude -I/lib -DUSE_GCU -DUSE_X11^M
LIBS = -L/usr/local/lib  -lncurses -lsocket -lnsl -L/lib -lX11^M

I used GCC 3.4.6 ncurses. and gmake.

I downloaded all those from http://www.sunfreeware.com/programlists ... ml#ncurses

I had to change the h-config.h to use SYS_V

I am on Solaris 10 on a SPARC ultra 64 (dual processor) with 2 GB of RAM.

I can zip it up and email it someone... but I think I am going to run and use it for a while.

wrmichael
Seedy Looking Human
Posts: 16
Joined: Thu 24.09.2009, 03:29

Re: Solaris 10 Compile

Post by wrmichael » Wed 07.10.2009, 02:28

Code: Select all

  MAngband v1.1.2 (27th Apr 2009)      Press ? for help in gameSegmentation Fault

I was able to go through character creation, but when I used an already existing character I received this right away,

wrmichael
Seedy Looking Human
Posts: 16
Joined: Thu 24.09.2009, 03:29

Re: Solaris 10 Compile

Post by wrmichael » Wed 07.10.2009, 02:34

I put the server up and connected to it.

The client still crashed but the server ran.

wrmichael
Seedy Looking Human
Posts: 16
Joined: Thu 24.09.2009, 03:29

Re: Solaris 10 Compile

Post by wrmichael » Wed 07.10.2009, 02:41

Ran client from PC Desktop (Vista) and connected to sun Server just fine.

created a user, went down a few levels, gained a few levels and all is good.

wrmichael
Seedy Looking Human
Posts: 16
Joined: Thu 24.09.2009, 03:29

Re: Solaris 10 Compile

Post by wrmichael » Wed 07.10.2009, 02:56

Ran manclient from X11

got the same error:

Code: Select all

$ ./mangclient
Segmentation Fault(coredump)
$

I think I may have a ncurses issue yet but not 100% sure.. almost got it! :-)

Post Reply