[Pacemaker] building dev on Solaris

Paul Walsh Paul.Walsh at bcu.ac.uk
Thu Sep 11 13:21:00 UTC 2008


ITMA (with apologies to anyone who hits this when googling for an old wartime radio programme) ;)

Trying to build dev version d3799a333adb of Pacemaker I've hit the following error:

Making all in cib
make[1]: Entering directory `/software/Pacemaker-Devel-d3799a333adb/cib'
/bin/sh ../libtool --tag=CC  --tag=CC   --mode=link gcc -std=gnu99  -I/opt/LXHAhb/include
-I/opt/LXHAhb/include/heartbeat  -Wall -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes
-Wdeclaration-after-statement -Wpointer-arith -Wwrite-strings -Wcast-qual -Wcast-align -Wbad-function-cast -Winline
-Wmissing-format-attribute -Wformat=2 -Wformat-security -Wformat-nonliteral -Wno-long-long -Wno-strict-aliasing   -ggdb3
-funsigned-char  -L/opt/LXHAhb/lib -o cib io.o primatives.o messages.o cib.o notify.o callbacks.o main.o remote.o
common.o ../lib/common/libcrmcommon.la ../lib/cib/libcib.la -lglib-2.0     -lhbclient -lccmclient
../lib/common/libcrmcluster.la -lgnutls -lbz2 -lplumb -lxslt -lxml2 -lc -lpam -lrt -ldl -lc -lposix4 -lsocket -lnsl  -lltdl
gcc -std=gnu99 -I/opt/LXHAhb/include -I/opt/LXHAhb/include/heartbeat -Wall -Wmissing-prototypes -Wmissing-declarations
-Wstrict-prototypes -Wdeclaration-after-statement -Wpointer-arith -Wwrite-strings -Wcast-qual -Wcast-align
-Wbad-function-cast -Winline -Wmissing-format-attribute -Wformat=2 -Wformat-security -Wformat-nonliteral -Wno-long-long
-Wno-strict-aliasing -ggdb3 -funsigned-char -o .libs/cib io.o primatives.o messages.o cib.o notify.o callbacks.o main.o
remote.o common.o  -L/opt/LXHAhb/lib ../lib/common/.libs/libcrmcommon.so -L/usr/local/lib -L/usr/local/pgsql/lib
-L/usr/local/ssl/lib -L/usr/openwin/lib -L/usr/lib -L/usr/local/BerkeleyDB.4.2/lib -L/usr/X11R6/lib
../lib/cib/.libs/libcib.so ../lib/common/.libs/libcrmcluster.so /opt/LXHAhb/lib/libhbclient.so
/opt/LXHAhb/lib/libccmclient.so /software/Pacemaker-Devel-d3799a333adb/lib/common/.libs/libcrmcommon.so
/opt/LXHAhb/lib/libplumb.so /opt/LXHAhb/lib/libpils.so /usr/local/lib/libglib-2.0.so -lgnutls -lbz2 -lHBAAPI -luuid
-lxslt /usr/local/lib/libxml2.so -lpthread -lz /usr/local/lib/libiconv.so -lm -lpam -lrt -lc -lposix4 -lsocket -lnsl
/usr/local/lib/libltdl.so -ldl  -R/opt/LXHAhb/lib -R/usr/local/lib
ld: warning: file /software/Pacemaker-Devel-d3799a333adb/lib/common/.libs/libcrmcommon.so: linked to
../lib/common/.libs/libcrmcommon.so: attempted multiple inclusion of file
Undefined                       first referenced
 symbol                             in file
vasprintf                           ../lib/common/.libs/libcrmcommon.so
ld: fatal: Symbol referencing errors. No output written to .libs/cib
collect2: ld returned 1 exit status
make[1]: *** [cib] Error 1
make[1]: Leaving directory `/software/Pacemaker-Devel-d3799a333adb/cib'
make: *** [all-recursive] Error 1


I've found a reference to vasprintf in /usr/local/lib/libiberty.a :

vasprintf.o:
00000000 t int_vasprintf
         U malloc
         U strchr
         U strlen
         U strtoul
000002b0 T vasprintf
         U vsprintf


But I suspect I'm missing a shared library somewhere.

As a matter of interest (and David Lee touched on this the other day) - is there a minimum version of gcc that's used
when testing?




-- 
Paul Walsh




More information about the Pacemaker mailing list