[Pacemaker] Errors compiling PM 1.1.10 RC3

Andrew Beekhof andrew at beekhof.net
Wed Jun 19 01:59:59 CEST 2013


On 18/06/2013, at 9:47 PM, Nikita Michalko <michalko.system at a-i-p.com> wrote:

> Hi all,
> 
> I tried build/compile the last version of pacemeker from sources 
> (http://blog.clusterlabs.org/blog/2013/release-candidate-1-dot-1-10-rc3/)
> on SLES11/SP2 (kernel 3.0.58-0.6.2-default) with libqb-0.14.4 as follows:
> ./configure --prefix=/usr --libdir=/usr/lib64 --sysconfdir=/etc --localstatedir=/var -
> with-heartbeat
> make
> ...
> Building mcp                                                                                                                                                 
> make[1]: Entering directory `/opt/HA/pacemaker-master/mcp'                                                                                                   
> /bin/sh ../libtool --tag=CC  --tag=CC   --mode=link gcc -std=gnu99  -O2 -g -m64 -fmessage-
> length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-
> tables -I/usr/include -I/usr/include/heartbeat    -ggdb  -fgnu89-inline -fstack-protector-
> all -Wall -Waggregate-return -Wbad-function-cast -Wcast-align -Wdeclaration-after-
> statement -Wendif-labels -Wfloat-equal -Wformat=2 -Wformat-security -Wformat-nonliteral -
> Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wno-long-long -Wno-strict-
> aliasing -Wpointer-arith -Wstrict-prototypes -Wwrite-strings -Werror -lcoroipcc   -lcpg   
> -lcfg   -lconfdb    -o pacemakerd pacemaker.o corosync.o ../lib/cluster/libcrmcluster.la 
> ../lib/common/libcrmcommon.la -lgnutls -lplumb -lpils -lbz2 -lxslt -lxml2 -lc -luuid -lpam 
> -lrt -ldl  -lglib-2.0   -lltdl                                                                                                                     
> libtool: link: gcc -std=gnu99 -O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-
> protector -funwind-tables -fasynchronous-unwind-tables -I/usr/include -
> I/usr/include/heartbeat -ggdb -fgnu89-inline -fstack-protector-all -Wall -Waggregate-
> return -Wbad-function-cast -Wcast-align -Wdeclaration-after-statement -Wendif-labels -
> Wfloat-equal -Wformat=2 -Wformat-security -Wformat-nonliteral -Wmissing-prototypes -
> Wmissing-declarations -Wnested-externs -Wno-long-long -Wno-strict-aliasing -Wpointer-arith 
> -Wstrict-prototypes -Wwrite-strings -Werror -o .libs/pacemakerd pacemaker.o corosync.o  
> ../lib/cluster/.libs/libcrmcluster.so -L/usr/lib64 -L/lib64 -lcoroipcc -lcpg -lcfg -
> lconfdb /opt/HA/pacemaker-master/lib/fencing/.libs/libstonithd.so /opt/HA/pacemaker-
> master/lib/common/.libs/libcrmcommon.so ../lib/common/.libs/libcrmcommon.so -lgcrypt -
> lgpg-error -lgnutls /usr/lib64/libplumb.so /usr/lib64/libpils.so -lbz2 
> /usr/lib64/libxslt.so /usr/lib64/libxml2.so -lz -lm -lc -luuid -lpam -lrt -lglib-2.0 
> /usr/lib64/libltdl.so -ldl                                                                                                  
> pacemaker.o: In function `pcmk_ipc_destroy':                                                                                                                                                
> /opt/HA/pacemaker-master/mcp/pacemaker.c:496: undefined reference to 
> `qb_log_from_external_source'                                                                                          
> /opt/HA/pacemaker-master/mcp/pacemaker.c:496: undefined reference to `qb_log_callsite_get'                                                                                                  
> pacemaker.o: In function `pcmk_ipc_created':                                                                                                                                                
> /opt/HA/pacemaker-master/mcp/pacemaker.c:445: undefined reference to 
> `qb_log_from_external_source'                                                                                          
> /opt/HA/pacemaker-master/mcp/pacemaker.c:445: undefined reference to `qb_log_callsite_get'                                                                                                  
> pacemaker.o: In function `pcmk_ipc_closed':                                                                                                                                                 
> /opt/HA/pacemaker-master/mcp/pacemaker.c:488: undefined reference to 
> `qb_log_from_external_source'                                                                                          
> /opt/HA/pacemaker-master/mcp/pacemaker.c:488: undefined reference to `qb_log_callsite_get'                                                                                                  
> pacemaker.o: In function `pcmk_ipc_accept':                                                                                                                                                 
> /opt/HA/pacemaker-master/mcp/pacemaker.c:435: undefined reference to 
> `qb_log_from_external_source'                                                                                          
> /opt/HA/pacemaker-master/mcp/pacemaker.c:435: undefined reference to `qb_log_callsite_get'                                                                                                  
> pacemaker.o: In function `find_and_track_existing_processes':                                                                                                                               
> /opt/HA/pacemaker-master/mcp/pacemaker.c:690: undefined reference to `qb_log_real_'                                                                                                         
> /opt/HA/pacemaker-master/mcp/pacemaker.c:745: undefined reference to `qb_log_real_'                                                                                                         
> pacemaker.o: In function `update_process_clients':                                                                                                                                          
> /opt/HA/pacemaker-master/mcp/pacemaker.c:531: undefined reference to 
> `qb_log_from_external_source'                                                                                          
> /opt/HA/pacemaker-master/mcp/pacemaker.c:531: undefined reference to `qb_log_callsite_get'                                                                                                  
> pacemaker.o: In function `pcmk_ipc_dispatch':                                                                                                                                               
> /opt/HA/pacemaker-master/mcp/pacemaker.c:469: undefined reference to `qb_log_real_'                                                                                                         
> pacemaker.o: In function `stop_child':                                                                                                                                                      
> /opt/HA/pacemaker-master/mcp/pacemaker.c:211: undefined reference to 
> `qb_log_from_external_source'                                                                                          
> /opt/HA/pacemaker-master/mcp/pacemaker.c:202: undefined reference to 
> `qb_log_from_external_source'                                                                                          
> /opt/HA/pacemaker-master/mcp/pacemaker.c:208: undefined reference to `qb_log_real_'                                                                                                         
> /opt/HA/pacemaker-master/mcp/pacemaker.c:197: undefined reference to 
> `qb_log_from_external_source'                                                                                          
> /opt/HA/pacemaker-master/mcp/pacemaker.c:202: undefined reference to `qb_log_callsite_get'                                                                                                  
> /opt/HA/pacemaker-master/mcp/pacemaker.c:197: undefined reference to `qb_log_callsite_get'                                                                                                  
> pacemaker.o: In function `pcmk_shutdown_worker':                                                                                                                                            
> /opt/HA/pacemaker-master/mcp/pacemaker.c:412: undefined reference to `qb_log_real_'                                                                                                         
> /opt/HA/pacemaker-master/mcp/pacemaker.c:416: undefined reference to `qb_log_real_'                                                                                                         
> /opt/HA/pacemaker-master/mcp/pacemaker.c:406: undefined reference to 
> `qb_log_from_external_source'                                                                                          
> /opt/HA/pacemaker-master/mcp/pacemaker.c:406: undefined reference to `qb_log_callsite_get'                                                                                                  
> /opt/HA/pacemaker-master/mcp/pacemaker.c:399: undefined reference to `qb_log_real_'                                                                                                         
> /opt/HA/pacemaker-master/mcp/pacemaker.c:369: undefined reference to `qb_log_real_'                                                                                                         
> snip ...
> /opt/HA/pacemaker-master/lib/common/.libs/libcrmcommon.so: undefined reference to 
> `qb_ipcc_is_connected'
> /opt/HA/pacemaker-master/lib/common/.libs/libcrmcommon.so: undefined reference to 
> `qb_log_init'
> /opt/HA/pacemaker-master/lib/common/.libs/libcrmcommon.so: undefined reference to 
> `qb_ipcc_connect'
> /opt/HA/pacemaker-master/lib/common/.libs/libcrmcommon.so: undefined reference to 
> `qb_ipcc_event_recv'
> collect2: ld returned 1 exit status
> make[1]: *** [pacemakerd] Fehler 1
> make[1]: Leaving directory `/opt/HA/pacemaker-master/mcp'
> make: *** [core] Fehler 1
> 
> What should I looking for - what is wrong with libqb?

I don't think anything is wrong with it, but for some reason its not getting linked in.
Very weird.




More information about the Pacemaker mailing list