make command problem

hi, I'was trying to compile a simple game , just for testing the system, but the make command gave me problems, so I read that it was best to have a gnu make package installed so I made

pkgrm SUNWgmake

and installed the gnu make from sunfreesoftware, the problem is that now when I run make it gives me this output

# make
make  all-recursive
make[1]: Entering directory `/Desktop/softSource/abuse-0.7.1'
Making all in src
make[2]: Entering directory `/Desktop/softSource/abuse-0.7.1/src'
Making all in lisp
make[3]: Entering directory `/Desktop/softSource/abuse-0.7.1/src/lisp'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/Desktop/softSource/abuse-0.7.1/src/lisp'
Making all in net
make[3]: Entering directory `/Desktop/softSource/abuse-0.7.1/src/net'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/Desktop/softSource/abuse-0.7.1/src/net'
Making all in imlib
make[3]: Entering directory `/Desktop/softSource/abuse-0.7.1/src/imlib'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/Desktop/softSource/abuse-0.7.1/src/imlib'
Making all in sdlport
make[3]: Entering directory `/Desktop/softSource/abuse-0.7.1/src/sdlport'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/Desktop/softSource/abuse-0.7.1/src/sdlport'
make[3]: Entering directory `/Desktop/softSource/abuse-0.7.1/src'
/bin/bash ../libtool --tag=CXX   --mode=link g++  -g -O2 -DHAVE_OPENGL   -o abuse specache.o netcfg.o text_gui.o innet.o chat.o endgame.o version.o loadgame.o profile.o cop.o statbar.o compiled.o ant.o sensor.o demo.o lcache.o nfclient.o username.o clisp.o gui.o transp.o collide.o trig.o property.o cache.o particle.o objects.o extend.o console.o ability.o items.o dev.o chars.o level.o smallfnt.o automap.o help.o intsect.o loader2.o seq.o points.o fnt6x13.o morpher.o menu.o director.o view.o config.o game.o light.o devsel.o crc.o gamma.o language.o lisp/liblisp.a sdlport/libsdlport.a imlib/libimlib.a net/libnet.a -lm -lsocket -lnsl -L/usr/local/lib -R/usr/local/lib -lSDL -lpthread -lposix4 -L/usr/openwin/lib -L/usr/lib -lGL -lpthread
g++ -g -O2 -DHAVE_OPENGL -o abuse specache.o netcfg.o text_gui.o innet.o chat.o endgame.o version.o loadgame.o profile.o cop.o statbar.o compiled.o ant.o sensor.o demo.o lcache.o nfclient.o username.o clisp.o gui.o transp.o collide.o trig.o property.o cache.o particle.o objects.o extend.o console.o ability.o items.o dev.o chars.o level.o smallfnt.o automap.o help.o intsect.o loader2.o seq.o points.o fnt6x13.o morpher.o menu.o director.o view.o config.o game.o light.o devsel.o crc.o gamma.o language.o  lisp/liblisp.a sdlport/libsdlport.a imlib/libimlib.a net/libnet.a -lsocket -lnsl -L/usr/local/lib /usr/local/lib/libSDL.so /usr/local/lib/libstdc++.so -L/sol10/SOURCES/I10/gcc-3.4.6/objdir/i386-pc-solaris2.10/libstdc++-v3/src -L/sol10/SOURCES/I10/gcc-3.4.6/objdir/i386-pc-solaris2.10/libstdc++-v3/src/.libs -L/sol10/SOURCES/I10/gcc-3.4.6/objdir/gcc -L/usr/local/i386-pc-solaris2.10/bin -L/usr/local/i386-pc-solaris2.10/lib -L/usr/local/lib/gcc/i386-pc-solaris2.10/3.4.6 -L/usr/local/lib/gcc/i386-pc-solaris2.10/3.4.6/../../../../i386-pc-solaris2.10/lib -L/usr/ccs/bin -L/usr/ccs/lib -L/usr/local/lib/gcc/i386-pc-solaris2.10/3.4.6/../../.. -lgcc_s -lm -L/usr/openwin/lib -lX11 -lXext -lposix4 -L/usr/lib -lGL -lpthread   -Wl,-R -Wl,/usr/local/lib -Wl,-R -Wl,/usr/local/lib
ld: warning: file /usr/local/lib/libstdc++.so: attempted multiple inclusion of file
Undefined                       first referenced
 symbol                             in file
SDL_SaveBMP_RW                      sdlport/libsdlport.a(event.o)
SDL_LoadBMP_RW                      sdlport/libsdlport.a(video.o)
SDL_RWFromFile                      sdlport/libsdlport.a(video.o)
SDL_MixAudio                        sdlport/libsdlport.a(sound.o)
ld: fatal: Symbol referencing errors. No output written to abuse
collect2: ld returned 1 exit status
make[3]: *** [abuse] Error 1
make[3]: Leaving directory `/Desktop/softSource/abuse-0.7.1/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/Desktop/softSource/abuse-0.7.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/Desktop/softSource/abuse-0.7.1'
make: *** [all] Error 2

what does the [all-recursive] Error 1 mean? is it due to the installation of the new make? what can i do?

Check that you are really running GNU's make and not one of the other makes that might be on your Solaris install, I'm sure that GNU make is gmake on my system?

all-recursive is the default build target in your top level makefile.

To me it seems, that there is some problem with the creation of the makefile (does this project use configure?). The list of object files and/or libraries does not seem to be ok, something is missing, which provides SDL_SaveBMP_RW, SDL_LoadBMP_RW, etc.

yes but I executed pkgrm SUNWgmake , because I read that the gnu make was the way to avoid lots of trouble with the source codes that are made to "run" with gnu. Is there a place where I can download this package from? the gnu make should install in /usr/local/bin, am I right? In this case to run this I should execute make -f /usr/local/bin? if I do so I obtain this

# make -f /usr/local/bin/make
/usr/local/bin/make:1: warning: NUL character seen; rest of line ignored
/usr/local/bin/make:1: *** missing separator.  Stop.

if I do directly /usr/local/bin/make I obtain the same output than the one I've already posted in the first message.

Yes it does, It's a simple game , maybe my "compilation environment" is not ok , but I'm very unexpert with this OS so I don't what could I try to do more.

I did a quick research and found, that the missing symbols are part of a library named libsdl. Do you have this library installed on your system?

yes i've downloaded it from the sdl.org site , but there is only the source code, not solaris package, so I've to use ./configure make make install , not pkgadd -d [packageName], can it be this procedure is right for the stand alone programs but not for library that should be called back by the OS? can I specify the installation directory of the SDL library when I use the make command? how can I find the path of program/library/etc... that have been installed with the ./configure make make install method? is it possible to create a package from the source with a terminal command?

Hmm, in the output you provided there is as linker option -lSDL (with SDS in uppercase letters). Maybe this is a mixup of uppercase and lowercase letters.

Can you please check /usr/local/lib for files names libsdl.so or libSDL.so or similar?

That doesn't make any sense. Why did you remove SUNWgmake which is precisely gnu make that avoids the trouble with non portable makefiles ?

You installation media (likely DVD). SUNWgmake is part of the Solaris distribution.

Not the one properly packaged by Sun which installs in /usr/sfw/bin.

No, you should run /usr/sfw/bin/gmake or /usr/local/bin/gmake if you use the Sunfreeware (i.e. non Sun) package.

i did and i found the libSDL.so file and others files all with SDL sequence in uppercase

I found it but it doesn't contain a real package file, so I just copy it back into the sun packages folder on my hard disk , is this the right way?

No. You install it with the pkgadd command. Packages do exist in two form, a single file (a.k.a. package datastream) and a directory structure which is what you'll find on the DVD.

pkgadd -d . SUNWgcc