[Spread-users] Problems with installation of 4.2 release

John Schultz jschultz at spreadconcepts.com
Mon Nov 19 10:00:35 EST 2012


No, that won't do it. Go down to the compile lines for spmonitor, it should look something like this:

spmonitor$(EXEEXT): $(MONITOR_OBJS) $(LIBSPREADUTIL_DIR)/lib/libspread-util.a
        $(LD) -o $@ $(LDFLAGS) $(MONITOR_OBJS) $(LIBS) $(LIBSPREADUTIL_DIR)/lib/libspread-util.a

sptmonitor$(EXEEXT): $(TMONITOR_OBJS) $(LIBSPREADUTIL_DIR)/lib/libspread-util.a
        $(LD) $(THLDFLAGS) -o $@ $(TMONITOR_OBJS) $(THLIBS) $(LIBSPREADUTIL_DIR)/lib/libspread-util.a

Try changing it to:

spmonitor$(EXEEXT): $(MONITOR_OBJS) $(LIBSPREADUTIL_DIR)/lib/libspread-util.a
        $(LD) -o $@ $(LDFLAGS) $(MONITOR_OBJS) $(LIBSPREADUTIL_DIR)/lib/libspread-util.a $(LIBS) 

sptmonitor$(EXEEXT): $(TMONITOR_OBJS) $(LIBSPREADUTIL_DIR)/lib/libspread-util.a
        $(LD) $(THLDFLAGS) -o $@ $(TMONITOR_OBJS) $(LIBSPREADUTIL_DIR)/lib/libspread-util.a  $(THLIBS)

Cheers!

-----
John Lane Schultz
Spread Concepts LLC
Phn: 301 830 8100
Cell: 443 838 2200

On Nov 19, 2012, at 9:38 AM, Johannes Wienke wrote:

Hi,

On 11/19/2012 03:05 PM, John Schultz wrote:
> To my eye, it looks like the libspread-util.a linkage needs to come before the other libraries, in particular -ldl and -lrt.  
> 
> Could you please try moving the libspread-util.a linkage to before these other libraries for spmonitor?

I tried this line in daemon/Makefile:

LIBS=$(LIBSPREADUTIL_LIBS) -lm -lrt -lnsl

which results in

gcc -o spmonitor -rdynamic monitor.o lex.yy.o y.tab.o configuration.o
acm.o -ldl -lm -lrt -lnsl ../libspread-util/lib/libspread-util.a

Is this what you meant? It does not fix the compilation error.

Cheers,
Johannes

_______________________________________________
Spread-users mailing list
Spread-users at lists.spread.org
http://lists.spread.org/mailman/listinfo/spread-users

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3805 bytes
Desc: not available
Url : http://lists.spread.org/pipermail/spread-users/attachments/20121119/a682e914/attachment-0001.bin 


More information about the Spread-users mailing list