[prev in list] [next in list] [prev in thread] [next in thread] 

List:       netsaintplug-devel
Subject:    Re: [Netsaintplug-devel] Netsaint Plugins 1.2.9-3 don't compile on
From:       Karl DeBisschop <karl () debisschop ! net>
Date:       2001-04-20 6:42:06
[Download RAW message or body]

Karl DeBisschop wrote:
> 
> "Andreas M. Kirchwitz" wrote:
> > 
> > Dear Netsaint Plugin Developer team!
> > 
> > I'm using Solaris 2.6 with GCC 2.8.1 and the "make" that comes with
> > Solaris. If I remember correctly, Plugins 1.3.9-b1 were just fine,
> > but the current stable release 1.2.9-3 doesn't compile.
> > 
> > The "./configure" runs just fine. Then I call "make" (/usr/ccs/bin/make),
> > and after a few lines I get:
> > 
> > gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I. -I. -I.     -g -O2 -c snprintf.c \
> >                 snprintf.c -o snprintf.o
> > gcc: cannot specify -o with -c and multiple compilations
> > 
> > Well, let's look what plugins/Makefile tries to do:
> > 
> > snprintf.o: snprintf.c
> > $(COMPILE) -c $? -o $@
> > 
> > Looks like Solaris make (which is standard on all Solaris boxes ;-)
> > and GNU make don't behave the same way. ;-) To make it work I changed
> > that manually to:
> > 
> > snprintf.o: snprintf.c
> > $(COMPILE) -c snprintf.c -o $@
> > 
> > Okay, next try to compile the plugins. Again "make", but after
> > the next few lines I get:
> > 
> > gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I. -I. -I.     -g -O2 -c netutils.c
> > make: Fatal error: Don't know how to make target `-lnsl'
> > 
> > Okay, what does plugins/Makefile say? There's a definition:
> > 
> > SOCKETLIBS =  -lnsl -lsocket -lresolv
> > 
> > Well, specifying that on Solaris is a good idea, but it's not
> > a good idea to write the following line into the Makefile:
> > 
> > NETLIBS = netutils.o $(BASELIBS) $(SOCKETLIBS)
> > 
> > After removing $(SOCKETLIBS) from the NETLIBS line and adding
> > $(SOCKETLIBS) to the LDFLAGS line, the plugins compile fine. ;-)
> > 
> > Greetings, Andreas
> > 
> > PS: I've read on the Bug tracker at Sourceforge that GNU make should
> > be used instead. Well, installing GNU make just for avoiding the
> > snprintf problem is some kind of overkill. IMHO. ;-)
> > And even with GNU make, the NETLIBS/SOCKETLIBS problem still exists.
> 
> That was only a 'make it work quickly' fix. I will incorporate these
> changes and hopefully the need for GNU make workaround can be totally
> eliminated.

Now that I've tried to apply these chnages, it seems I alread have
changes in the CVS tree which are effectively equivalent. However, there
is no /usr/bin.make on my solaris box. So I can't confirm that my
changes work for you. I would very much appreciate it if you would try
building the one of the nightly snapshots (there are links on
http://netsaintplug.sourceforge.net).

Please report your results, as solaris build is one of two sritical
items for the 1.2.9-4 release. (The other is posix-state-defs, which
testing request I will repost as I have gotten only one response to the
request for testing.

-- 
Karl

_______________________________________________
Netsaintplug-devel mailing list
Netsaintplug-devel@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/netsaintplug-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic