Mark McLoughlin wrote:
On Fri, 2007-05-04 at 17:22 +0200, Jan Michael wrote:
> bridge.c: In function `brAddBridge':
> bridge.c:130: error: `SIOCBRADDBR' undeclared (first use in this
> function)
As Rich says, this should certainly be in the 2.6.20 kernel.
I replaced the the wrong headerfile with this one from the original
2.6.18 sources.
> bridge.c: In function `brSetForwardDelay':
> bridge.c:481: error: `SYSFS_BRIDGE_ATTR' undeclared (first use in
> this function)
To get this you want libsysfs. If you don't have it, just build with
--disable-bridge-params and you probably won't notice any difference.
I did the configure step with the following parameters including --
disable-bridge-params as suggested by Mark:
./configure --disable-shared --disable-bridge-params --with-test=no
--with-qemu=no
But make failed again. This time in libvirt/test directory. Is this
mandatory for using libvirt?
<make error>
gcc -g -O2 -o xmlrpctest xmlrpctest.o testutils.o xmlrpc.o -L/usr/
lib /usr/lib/libxml2.so -lz -lpthread -lm -lxenstore
xmlrpctest.o(.text+0x24b): In function `testMarshalRequestINT':
/opt/test/libvirt/tests/xmlrpctest.c:142: undefined reference to
`virBufferFree'
xmlrpctest.o(.text+0x27b):/opt/test/libvirt/tests/xmlrpctest.c:142:
undefined reference to `virBufferFree'
xmlrpctest.o(.text+0x2c2): In function `testMarshalRequestSTRING':
/opt/test/libvirt/tests/xmlrpctest.c:158: undefined reference to
`virBufferFree'
xmlrpctest.o(.text+0x2f0):/opt/test/libvirt/tests/xmlrpctest.c:158:
undefined reference to `virBufferFree'
xmlrpctest.o(.text+0x349): In function `testMarshalRequestDOUBLE':
/opt/test/libvirt/tests/xmlrpctest.c:175: undefined reference to
`virBufferFree'
xmlrpctest.o(.text+0x377):/opt/test/libvirt/tests/xmlrpctest.c:175:
more undefined references to `virBufferFree' follow
xmlrpctest.o(.text+0x396): In function `testBufferStrcat':
/opt/test/libvirt/tests/xmlrpctest.c:182: undefined reference to
`virBufferNew'
xmlrpctest.o(.text+0x3ba):/opt/test/libvirt/tests/xmlrpctest.c:186:
undefined reference to `virBufferStrcat'
xmlrpctest.o(.text+0x3c9):/opt/test/libvirt/tests/xmlrpctest.c:188:
undefined reference to `virBufferFree'
xmlrpctest.o(.text+0x3e6): In function `testBufferVSprintf':
/opt/test/libvirt/tests/xmlrpctest.c:195: undefined reference to
`virBufferNew'
xmlrpctest.o(.text+0x401):/opt/test/libvirt/tests/xmlrpctest.c:199:
undefined reference to `virBufferVSprintf'
xmlrpctest.o(.text+0x410):/opt/test/libvirt/tests/xmlrpctest.c:201:
undefined reference to `virBufferFree'
xmlrpc.o(.text+0x22): In function `xmlRpcError':
../src/xmlrpc.c:41: undefined reference to `__virErrorMsg'
xmlrpc.o(.text+0x3e):../src/xmlrpc.c:42: undefined reference to
`__virRaiseError'
xmlrpc.o(.text+0x76b): In function `xmlRpcValueMarshal':
../src/xmlrpc.c:313: undefined reference to `virBufferVSprintf'
xmlrpc.o(.text+0x78e):../src/xmlrpc.c:332: undefined reference to
`virBufferVSprintf'
xmlrpc.o(.text+0x7bf):../src/xmlrpc.c:360: undefined reference to
`virBufferStrcat'
xmlrpc.o(.text+0x7d2):../src/xmlrpc.c:316: undefined reference to
`virBufferStrcat'
xmlrpc.o(.text+0x82b):../src/xmlrpc.c:322: undefined reference to
`virBufferStrcat'
xmlrpc.o(.text+0x851):../src/xmlrpc.c:325: undefined reference to
`virBufferVSprintf'
xmlrpc.o(.text+0x867):../src/xmlrpc.c:326: undefined reference to
`virBufferVSprintf'
xmlrpc.o(.text+0x88a):../src/xmlrpc.c:329: undefined reference to
`virBufferVSprintf'
xmlrpc.o(.text+0x92d):../src/xmlrpc.c:356: undefined reference to
`virBufferStrcat'
xmlrpc.o(.text+0x94a): In function `xmlRpcMarshalRequest':
../src/xmlrpc.c:372: undefined reference to `virBufferNew'
xmlrpc.o(.text+0x968):../src/xmlrpc.c:374: undefined reference to
`virBufferStrcat'
xmlrpc.o(.text+0x97e):../src/xmlrpc.c:380: undefined reference to
`virBufferStrcat'
xmlrpc.o(.text+0x99f):../src/xmlrpc.c:383: undefined reference to
`virBufferStrcat'
xmlrpc.o(.text+0x9b5):../src/xmlrpc.c:386: undefined reference to
`virBufferStrcat'
xmlrpc.o(.text+0xde5): In function `xmlRpcCall':
../src/xmlrpc.c:594: undefined reference to `virBufferFree'
xmlrpc.o(.text+0x7b1): In function `xmlRpcValueMarshal':
../src/xmlrpc.c:363: undefined reference to `virBufferStrcat'
xmlrpc.o(.text+0x90b):../src/xmlrpc.c:363: undefined reference to
`virBufferStrcat'
collect2: ld returned 1 exit status
make[3]: *** [xmlrpctest] Error 1
make[3]: Leaving directory `/opt/test/libvirt/tests'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/opt/test/libvirt/tests'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/test/libvirt'
</make error>
I already tried to disable the testing feature with --with-test=no.
But I suppose that this is not the right way.
Cheers,
Jan