Re: Problems with installation of 4.2 release
John Schultz <[email protected]> Mon, 19 Nov 2012 10:00:35 -0500
| Newsgroups | gmane.network.spread.user |
|---|---|
| Message-ID | <[email protected]> |
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
[email protected]
http://lists.spread.org/mailman/listinfo/spread-users
_______________________________________________
Spread-users mailing list
[email protected]
http://lists.spread.org/mailman/listinfo/spread-users
smime.p7s
(application/pkcs7-signature, 3.7 KB) - not displayed