Re: Make error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/15/2010 9:01 PM, Ruiyuan Jiang wrote:
> Hi, 
> 
> When I was compiling cluster 3.01.7 on Fedora 13, I got an error message:
> 
> # make
> make -C common all
> make[1]: Entering directory `/home/rc6/cluster-3.0.17/common'
> set -e && \
> 	for i in liblogthread; do \
> 		make -C $i all; \
> 	done
> make[2]: Entering directory `/home/rc6/cluster-3.0.17/common/liblogthread'
> gcc -Wall -Wformat=2 -Wshadow -Wmissing-prototypes -Wstrict-prototypes -Wdeclaration-after-statement -Wpointer-arith -Wwrite-strings -Wcast-align -Wbad-function-cast -Wmissing-format-attribute -Wformat-security -Wformat-nonliteral -Wno-long-long -Wno-strict-aliasing -Wmissing-declarations -O2 -ggdb3 -MMD -I/home/rc6/cluster-3.0.17/make -DDEFAULT_CONFIG_DIR=\"/etc/cluster\" -DDEFAULT_CONFIG_FILE=\"cluster.conf\" -DLOGDIR=\"/var/log/cluster\" -DSYSLOGFACILITY=LOG_LOCAL4 -DSYSLOGLEVEL=LOG_INFO -DRELEASE_VERSION=\"3.0.17\" -fPIC -I/opt/cluster/include   -c -o liblogthread.o /home/rc6/cluster-3.0.17/common/liblogthread/liblogthread.c
> ar cru liblogthread.a liblogthread.o
> ranlib liblogthread.a
> gcc -shared -o liblogthread.so.3.0 -Wl,-soname=liblogthread.so.3 liblogthread.o  -lpthread
> ln -sf liblogthread.so.3.0 liblogthread.so
> ln -sf liblogthread.so.3.0 liblogthread.so.3
> cat /home/rc6/cluster-3.0.17/common/liblogthread/liblogthread.pc.in | \
> 	sed \
> 		-e 's#@PREFIX@#/opt/cluster#g' \
> 		-e 's#@LIBDIR@#/opt/cluster/lib#g' \
> 		-e 's#@INCDIR@#/opt/cluster/include#g' \
> 		-e 's#@VERSION@#3.0.17#g' \
> 	> liblogthread.pc
> make[2]: Leaving directory `/home/rc6/cluster-3.0.17/common/liblogthread'
> make[1]: Leaving directory `/home/rc6/cluster-3.0.17/common'
> make -C config all
> make[1]: Entering directory `/home/rc6/cluster-3.0.17/config'
> set -e && \
> 	for i in libs plugins tools man; do \
> 		make -C $i all; \
> 	done
> make[2]: Entering directory `/home/rc6/cluster-3.0.17/config/libs'
> set -e && \
> 	for i in libccsconfdb; do \
> 		make -C $i all; \
> 	done
> make[3]: Entering directory `/home/rc6/cluster-3.0.17/config/libs/libccsconfdb'
> gcc -Wall -Wformat=2 -Wshadow -Wmissing-prototypes -Wstrict-prototypes -Wdeclaration-after-statement -Wpointer-arith -Wwrite-strings -Wcast-align -Wbad-function-cast -Wmissing-format-attribute -Wformat-security -Wformat-nonliteral -Wno-long-long -Wno-strict-aliasing -Wmissing-declarations -O2 -ggdb3 -MMD -I/home/rc6/cluster-3.0.17/make -DDEFAULT_CONFIG_DIR=\"/etc/cluster\" -DDEFAULT_CONFIG_FILE=\"cluster.conf\" -DLOGDIR=\"/var/log/cluster\" -DSYSLOGFACILITY=LOG_LOCAL4 -DSYSLOGLEVEL=LOG_INFO -DRELEASE_VERSION=\"3.0.17\" -fPIC -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -I/opt/corosync/include -I/home/rc6/cluster-3.0.17/common/liblogthread `xml2-config --cflags` -I/opt/cluster/include   -c -o libccs.o /home/rc6/cluster-3.0.17/config/libs/libccsconfdb/libccs.c
> gcc -Wall -Wformat=2 -Wshadow -Wmissing-prototypes -Wstrict-prototypes -Wdeclaration-after-statement -Wpointer-arith -Wwrite-strings -Wcast-align -Wbad-function-cast -Wmissing-format-attribute -Wformat-security -Wformat-nonliteral -Wno-long-long -Wno-strict-aliasing -Wmissing-declarations -O2 -ggdb3 -MMD -I/home/rc6/cluster-3.0.17/make -DDEFAULT_CONFIG_DIR=\"/etc/cluster\" -DDEFAULT_CONFIG_FILE=\"cluster.conf\" -DLOGDIR=\"/var/log/cluster\" -DSYSLOGFACILITY=LOG_LOCAL4 -DSYSLOGLEVEL=LOG_INFO -DRELEASE_VERSION=\"3.0.17\" -fPIC -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -I/opt/corosync/include -I/home/rc6/cluster-3.0.17/common/liblogthread `xml2-config --cflags` -I/opt/cluster/include   -c -o xpathlite.o /home/rc6/cluster-3.0.17/config/libs/libccsconfdb/xpathlite.c
> gcc -Wall -Wformat=2 -Wshadow -Wmissing-prototypes -Wstrict-prototypes -Wdeclaration-after-statement -Wpointer-arith -Wwrite-strings -Wcast-align -Wbad-function-cast -Wmissing-format-attribute -Wformat-security -Wformat-nonliteral -Wno-long-long -Wno-strict-aliasing -Wmissing-declarations -O2 -ggdb3 -MMD -I/home/rc6/cluster-3.0.17/make -DDEFAULT_CONFIG_DIR=\"/etc/cluster\" -DDEFAULT_CONFIG_FILE=\"cluster.conf\" -DLOGDIR=\"/var/log/cluster\" -DSYSLOGFACILITY=LOG_LOCAL4 -DSYSLOGLEVEL=LOG_INFO -DRELEASE_VERSION=\"3.0.17\" -fPIC -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -I/opt/corosync/include -I/home/rc6/cluster-3.0.17/common/liblogthread `xml2-config --cflags` -I/opt/cluster/include   -c -o fullxpath.o /home/rc6/cluster-3.0.17/config/libs/libccsconfdb/fullxpath.c
> gcc -Wall -Wformat=2 -Wshadow -Wmissing-prototypes -Wstrict-prototypes -Wdeclaration-after-statement -Wpointer-arith -Wwrite-strings -Wcast-align -Wbad-function-cast -Wmissing-format-attribute -Wformat-security -Wformat-nonliteral -Wno-long-long -Wno-strict-aliasing -Wmissing-declarations -O2 -ggdb3 -MMD -I/home/rc6/cluster-3.0.17/make -DDEFAULT_CONFIG_DIR=\"/etc/cluster\" -DDEFAULT_CONFIG_FILE=\"cluster.conf\" -DLOGDIR=\"/var/log/cluster\" -DSYSLOGFACILITY=LOG_LOCAL4 -DSYSLOGLEVEL=LOG_INFO -DRELEASE_VERSION=\"3.0.17\" -fPIC -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -I/opt/corosync/include -I/home/rc6/cluster-3.0.17/common/liblogthread `xml2-config --cflags` -I/opt/cluster/include   -c -o extras.o /home/rc6/cluster-3.0.17/config/libs/libccsconfdb/extras.c
> ar cru libccs.a libccs.o xpathlite.o fullxpath.o extras.o
> ranlib libccs.a
> gcc -shared -o libccs.so.3.0 -Wl,-soname=libccs.so.3 libccs.o xpathlite.o fullxpath.o extras.o  -L/opt/cluster/lib/corosync -lconfdb `xml2-config --libs` -L/opt/cluster/lib
> /usr/bin/ld: cannot find -lconfdb
> collect2: ld returned 1 exit status
> make[3]: *** [libccs.so.3.0] Error 1
> make[3]: Leaving directory `/home/rc6/cluster-3.0.17/config/libs/libccsconfdb'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/home/rc6/cluster-3.0.17/config/libs'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/home/rc6/cluster-3.0.17/config'
> make: *** [config] Error 2
> 
> 
> I did Yahoo and Google search and couldn't find the solution for the error "/usr/bin/ld: cannot find -lconfdb". Can anyone help? Thanks.
> 

It means that gcc/ld cannot find corosync libraries in the system.
Either set --corosynclibdir at configure time or make sure they are in
LD_LIBRARY_PATH.

Fabio

--
Linux-cluster mailing list
Linux-cluster@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/linux-cluster


[Index of Archives]     [Corosync Cluster Engine]     [GFS]     [Linux Virtualization]     [Centos Virtualization]     [Centos]     [Linux RAID]     [Fedora Users]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Camping]

  Powered by Linux