Hi,

I'm trying to compile 3.0.5p1 with libvirt and shared libraries, but I
keep running into errors that stop the process.  When I use
'--enable-shared --with-pic' I get the following error:

/usr/bin/ld: 
/home/cohanna/rpmbuild/BUILD/cfengine-3.0.5p1/pub/libcfpub.a(full-write.o):
relocation R_X86_64_PC32 against undefined symbol `write@@GLIBC_2.2.5'
can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value


When I use just --with-libvirt I get the following error:

libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I/usr/include/db4
-I/usr/include -I/usr/include -g -Wreturn-type -Wmissing-prototypes
-Wuninitialized -pthread -g -O2 -I/usr/include/db4 -pthread -g -O2
-I/usr/include/db4 -MT libpromises_la-cf3globals.lo -MD -MP -MF
.deps/libpromises_la-cf3globals.Tpo -c cf3globals.c -o
libpromises_la-cf3globals.o
cf3globals.c:105: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘CFVC’



Any ideas on getting this working?

Thanks!
--Caitlyn
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to