Hello Steve,

I was trying to run openais-0.82 (Trunk) on Solaris 10 and I came across
many issues in Makefiles and also in code base.

I removed some of the options in Makefile and also did other
modifications and was able to get the compilation go through for lib,
lcr and other directories.

While compiling in exec directory, I am getting following error message.
It appears that the logsys.c file has been renamed to print.c in
whitetank and also there are many modifications to it.

Here I am finding that the symbols are not being defined anywhere. I did
a grep and could not find the symbol definitions anywhere. Also I am
getting other warning messages also. Please find the errors and warning
below. I am also attaching the diff file so that you can look at the
makefile changes I have made.

Please look into this and let me know how to go about it.

Regards,
Shridhar


Compile warnings/errors:

gcc  -O3 -Wall -fomit-frame-pointer -DOPENAIS_SOLARIS -D_REENTRANT
-DHAVE_GETPEERUCRED -DHAVE_SCANDIR -DHAVE_ALPHASORT -I../include -fPIC
-fPIC -c -o totemsrp.o totemsrp.c
totemsrp.c: In function `token_retransmit':
totemsrp.c:2448: warning: assignment from incompatible pointer type
totemsrp.c: In function `token_send':
totemsrp.c:2534: warning: assignment from incompatible pointer type
totemsrp.c: In function `token_hold_cancel_send':
totemsrp.c:2565: warning: assignment from incompatible pointer type
totemsrp.c:2568: warning: assignment from incompatible pointer type
totemsrp.c: In function `memb_state_commit_token_send':
totemsrp.c:2677: warning: assignment from incompatible pointer type
totemsrp.c: In function `memb_join_message_send':
totemsrp.c:2795: warning: assignment from incompatible pointer type
totemsrp.c:2797: warning: assignment from incompatible pointer type
totemsrp.c:2804: warning: assignment from incompatible pointer type
totemsrp.c: In function `memb_merge_detect_transmit':
totemsrp.c:2831: warning: assignment from incompatible pointer type
totemsrp.c:2834: warning: assignment from incompatible pointer type
totemsrp.c: In function `messages_deliver_to_app':
totemsrp.c:3469: warning: assignment from incompatible pointer type
totemsrp.c: In function `message_handler_memb_join':
totemsrp.c:3908: warning: implicit declaration of function `alloca'
gcc  -O3 -Wall -fomit-frame-pointer -DOPENAIS_SOLARIS -D_REENTRANT
-DHAVE_GETPEERUCRED -DHAVE_SCANDIR -DHAVE_ALPHASORT -I../include -fPIC
-fPIC -c -o totemmrp.o totemmrp.c
gcc  -O3 -Wall -fomit-frame-pointer -DOPENAIS_SOLARIS -D_REENTRANT
-DHAVE_GETPEERUCRED -DHAVE_SCANDIR -DHAVE_ALPHASORT -I../include -fPIC
-fPIC -c -o totempg.o totempg.c
gcc  -O3 -Wall -fomit-frame-pointer -DOPENAIS_SOLARIS -D_REENTRANT
-DHAVE_GETPEERUCRED -DHAVE_SCANDIR -DHAVE_ALPHASORT -I../include -fPIC
-fPIC -c -o crypto.o crypto.c
gcc  -O3 -Wall -fomit-frame-pointer -DOPENAIS_SOLARIS -D_REENTRANT
-DHAVE_GETPEERUCRED -DHAVE_SCANDIR -DHAVE_ALPHASORT -I../include -fPIC
-fPIC -c -o wthread.o wthread.c
ar -rc libtotem_pg.a aispoll.o totemip.o totemnet.o totemrrp.o
totemsrp.o totemmrp.o totempg.o crypto.o wthread.o
gcc   -lpthread -Wl  -lnsl -lsocket -lrt -shared -Wl aispoll.o totemip.o
totemnet.o totemrrp.o totemsrp.o totemmrp.o totempg.o crypto.o wthread.o
-o libtotem_pg.so.2.0.0
gcc  -O3 -Wall -fomit-frame-pointer -DOPENAIS_SOLARIS -D_REENTRANT
-DHAVE_GETPEERUCRED -DHAVE_SCANDIR -DHAVE_ALPHASORT -I../include -fPIC
-c -o logsys.o logsys.c
logsys.c: In function `logsys_facility_id_get':
logsys.c:135: error: `facilitynames' undeclared (first use in this
function)
logsys.c:135: error: (Each undeclared identifier is reported only once
logsys.c:135: error: for each function it appears in.)
logsys.c: In function `logsys_priority_id_get':
logsys.c:147: error: `prioritynames' undeclared (first use in this
function)
logsys.c: In function `logsys_priority_name_get':
logsys.c:159: error: `prioritynames' undeclared (first use in this
function)
gmake[1]: *** [logsys.o] Error 1
gmake[1]: Leaving directory `/ssahukar/openais-0.82/exec'
gmake: *** [all] Error 2


diff -r openais-0.82/exec/Makefile ../openais-0.82/exec/Makefile
188c188
< 	$(CC) $(LDFLAGS) -shared -Wl $(TOTEM_OBJS) -o $@
---
> 	$(CC) $(LDFLAGS) -shared -Wl,-soname,libtotem_pg.so.2 $(TOTEM_OBJS) -o $@


diff -r openais-0.82/lcr/Makefile ../openais-0.82/lcr/Makefile
56c56
< 	$(CC) $(CFLAGS) -shared -Wl libtest_a.o -o $@
---
> 	$(CC) $(CFLAGS) -shared -Wl,-soname,libtest_b.lcrso libtest_a.o -o $@
59c59
< 	$(CC) $(CFLAGS) -shared -Wl libtest_b.o -o $@
---
> 	$(CC) $(CFLAGS) -shared -Wl,-soname,libtest_b.lcrso libtest_b.o -o $@


diff -r openais-0.82/lib/Makefile ../openais-0.82/lib/Makefile
98c98
< 	$(CC) $(LDFLAGS) -shared -Wl  util.o -o $@
---
> 	$(CC) $(LDFLAGS) -shared -Wl,-soname,libaisutil.so.2,-version-script=libaisutil.versions util.o -o $@
101c101
< 	$(CC) $(LDFLAGS) -shared -Wl util.o clm.o -o $@
---
> 	$(CC) $(LDFLAGS) -shared -Wl,-soname,libSaClm.so.2,-version-script=libSaClm.versions util.o clm.o -o $@
104c104
< 	$(CC) $(LDFLAGS) -shared -Wl  util.o amf.o -o $@
---
> 	$(CC) $(LDFLAGS) -shared -Wl,-soname,libSaAmf.so.2,-version-script=libSaAmf.versions util.o amf.o -o $@
107c107
< 	$(CC) $(LDFLAGS) -shared -Wl  util.o ckpt.o -o $@
---
> 	$(CC) $(LDFLAGS) -shared -Wl,-soname,libSaCkpt.so.2,-version-script=libSaCkpt.versions util.o ckpt.o -o $@
110c110
< 	$(CC) $(LDFLAGS) -shared -Wl  util.o evt.o -o $@
---
> 	$(CC) $(LDFLAGS) -shared -Wl,-soname,libSaEvt.so.2,-version-script=libSaEvt.versions util.o evt.o -o $@
113c113
< 	$(CC) $(LDFLAGS) -shared -Wl  util.o lck.o -o $@
---
> 	$(CC) $(LDFLAGS) -shared -Wl,-soname,libSaLck.so.2,-version-script=libSaLck.versions util.o lck.o -o $@
116c116
< 	$(CC) $(LDFLAGS) -shared -Wl  util.o msg.o -o $@
---
> 	$(CC) $(LDFLAGS) -shared -Wl,-soname,libSaMsg.so.2,-version-script=libSaMsg.versions util.o msg.o -o $@
119c119
< 	$(CC) $(LDFLAGS) -shared -Wl  util.o amf.o clm.o ckpt.o evt.o -o $@
---
> 	$(CC) $(LDFLAGS) -shared -Wl,-soname,libais.so.2,-version-script=libSaAis.versions util.o amf.o clm.o ckpt.o evt.o -o $@
122c122
< 	$(CC) $(LDFLAGS) -shared -Wl  util.o evs.o -o $@
---
> 	$(CC) $(LDFLAGS) -shared -Wl,-soname,libevs.so.2,-version-script=libevs.versions util.o evs.o -o $@
125c125
< 	$(CC) -shared -Wl  util.o cpg.o -o $@
---
> 	$(CC) -shared -Wl,-soname,libcpg.so.2,-version-script=libcpg.versions util.o cpg.o -o $@
128c128
< 	$(CC) -shared -Wl  util.o cfg.o -o $@
---
> 	$(CC) -shared -Wl,-soname,libcfg.so.2,-version-script=libcfg.versions util.o cfg.o -o $@


diff -r openais-0.82/Makefile.inc ../openais-0.82/Makefile.inc
11d10
< CC=gcc
103c102
< 	override LDFLAGS += -Wl
---
> 	override LDFLAGS += -Wl,--export-dynamic -Wl,-rpath-link=/usr/lib
_______________________________________________
Openais mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/openais

Reply via email to