Hi.
When I try to build Libvirt-4.1.0 on a system that has 4.0.0 installed, the build fails
at the 'make install' linking stage with the
error below.
Same thing happened with git master I tried (commit 43523d7421, haven't tried with the
latest one yet) and rebuilding 4.0.0 works fine.
4.1.0 builds on a system without 4.0.0, though, with no changes to configure switches or
anything else.
Is something broken on my system and/or the way I built 4.0.0 , so 4.1.0 picks up on
that?
'make check' passes without errors for both.
qemu-2.11.1
-------
ibtool: warning: relinking 'libvirt_driver_qemu.la'
libtool: install: (cd /usr/pkgmk/build/libvirt/src/libvirt-4.1.0/src; /bin/sh
"/usr/pkgmk/build/libvirt/src/libvirt-4.1.0/libtool" --silent --tag CC
--mode=relink gcc -I/usr/include/libxml2 -fno-common -W -Waddress
-Waggressive-loop-optimizations -Wall -Wattributes -Wbad-function-cast -Wbool-compare
-Wbuiltin-macro-redefined -Wcast-align -Wchar-subscripts -Wchkp -Wclobbered -Wcomment
-Wcomments -Wcoverage-mismatch -Wcpp -Wdate-time -Wdeprecated-declarations
-Wdesignated-init -Wdiscarded-array-qualifiers -Wdiscarded-qualifiers -Wdiv-by-zero
-Wdouble-promotion -Wduplicated-cond -Wempty-body -Wendif-labels -Wextra
-Wformat-contains-nul -Wformat-extra-args -Wformat-security -Wformat-y2k
-Wformat-zero-length -Wframe-address -Wfree-nonheap-object -Whsa -Wignored-attributes
-Wignored-qualifiers -Wimplicit -Wimplicit-function-declaration -Wimplicit-int
-Wincompatible-pointer-types -Winit-self -Winline -Wint-conversion -Wint-to-pointer-cast
-Winvalid-memory-model -Winvalid-pch -Wjump-misses-
init -Wlogical-not-parentheses -Wlogical-op -Wmain -Wmaybe-uninitialized
-Wmemset-transposed-args -Wmisleading-indentation -Wmissing-braces -Wmissing-declarations
-Wmissing-field-initializers -Wmissing-include-dirs -Wmissing-parameter-type
-Wmissing-prototypes -Wmultichar -Wnarrowing -Wnested-externs -Wnonnull -Wnonnull-compare
-Wnull-dereference -Wodr -Wold-style-declaration -Wold-style-definition -Wopenmp-simd
-Woverflow -Woverride-init -Wpacked-bitfield-compat -Wparentheses -Wpointer-arith
-Wpointer-sign -Wpointer-to-int-cast -Wpragmas -Wpsabi -Wreturn-local-addr -Wreturn-type
-Wscalar-storage-order -Wsequence-point -Wshadow -Wshift-count-negative
-Wshift-count-overflow -Wshift-negative-value -Wsizeof-array-argument
-Wsizeof-pointer-memaccess -Wstrict-aliasing -Wstrict-prototypes -Wsuggest-attribute=const
-Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wsuggest-attribute=pure
-Wsuggest-final-methods -Wsuggest-final-types -Wswitch -Wswitch-bool -Wsync-nand
-Wtautological-
compare -Wtrampolines -Wtrigraphs -Wtype-limits -Wuninitialized -Wunknown-pragmas
-Wunused -Wunused-but-set-parameter -Wunused-but-set-variable -Wunused-function
-Wunused-label -Wunused-local-typedefs -Wunused-parameter -Wunused-result -Wunused-value
-Wunused-variable -Wvarargs -Wvariadic-macros -Wvector-operation-performance
-Wvolatile-register-var -Wwrite-strings -Warray-bounds=2 -Wnormalized=nfc
-Wshift-overflow=2 -Wunused-const-variable=2 -Wno-sign-compare -Wjump-misses-init
-Wswitch-enum -Wno-format-nonliteral -fstack-protector-strong -fexceptions
-fasynchronous-unwind-tables -fipa-pure-const -Wno-suggest-attribute=pure
-Wno-suggest-attribute=const -Wframe-larger-than=4096 -O2 -march=x86-64 -pipe
-DLIBXL_API_VERSION=0x040400 -module -avoid-version -export-dynamic -Wl,-z -Wl,relro
-Wl,-z -Wl,now -Wl,--no-copy-dt-needed-entries -Wl,-z -Wl,defs -lX11 -o
libvirt_driver_qemu.la -rpath /usr/lib/libvirt/connection-driver
libvirt_driver_qemu_impl.la libvirt.la ../gnulib/lib/libgnu.la -
ldl -inst-prefix-dir /usr/pkgmk/build/libvirt/pkg)
./.libs/libvirt_driver_qemu_impl.a(libvirt_driver_qemu_impl_la-qemu_process.o): In
function `qemuProcessGetVolumeQcowPassphrase':
qemu_process.c:(.text+0x1e98): undefined reference to `virGetConnectSecret'
./.libs/libvirt_driver_qemu_impl.a(libvirt_driver_qemu_impl_la-qemu_process.o): In
function `qemuProcessSetupVcpu':
qemu_process.c:(.text+0x4a65): undefined reference to `virResctrlAllocAddPID'
./.libs/libvirt_driver_qemu_impl.a(libvirt_driver_qemu_impl_la-qemu_process.o): In
function `qemuProcessPrepareDomain':
qemu_process.c:(.text+0x4d32): undefined reference to `virGetConnectNetwork'
qemu_process.c:(.text+0x52d7): undefined reference to
`virDomainDiskTranslateSourcePool'
./.libs/libvirt_driver_qemu_impl.a(libvirt_driver_qemu_impl_la-qemu_process.o): In
function `qemuProcessPrepareHost':
qemu_process.c:(.text+0x5bd5): undefined reference to
`virDomainNetAllocateActualDevice'
./.libs/libvirt_driver_qemu_impl.a(libvirt_driver_qemu_impl_la-qemu_process.o): In
function `qemuProcessLaunch':
qemu_process.c:(.text+0x7ab1): undefined reference to `virResctrlAllocCreate'
./.libs/libvirt_driver_qemu_impl.a(libvirt_driver_qemu_impl_la-qemu_process.o): In
function `qemuProcessStop':
qemu_process.c:(.text+0x8ce3): undefined reference to
`virDomainNetReleaseActualDevice'
qemu_process.c:(.text+0x8dd4): undefined reference to `virResctrlAllocRemove'
./.libs/libvirt_driver_qemu_impl.a(libvirt_driver_qemu_impl_la-qemu_process.o): In
function `qemuProcessReconnect':
qemu_process.c:(.text+0xa9a8): undefined reference to
`virDomainDiskTranslateSourcePool'
qemu_process.c:(.text+0xadbb): undefined reference to
`virDomainNetNotifyActualDevice'
qemu_process.c:(.text+0xb6ec): undefined reference to `virResctrlAllocDeterminePath'
./.libs/libvirt_driver_qemu_impl.a(libvirt_driver_qemu_impl_la-qemu_driver.o): In function
`qemuStateCleanup':
qemu_driver.c:(.text+0x476): undefined reference to `virPortAllocatorRangeFree'
qemu_driver.c:(.text+0x489): undefined reference to `virPortAllocatorRangeFree'
qemu_driver.c:(.text+0x49c): undefined reference to `virPortAllocatorRangeFree'
./.libs/libvirt_driver_qemu_impl.a(libvirt_driver_qemu_impl_la-qemu_driver.o): In function
`qemuStateInitialize':
qemu_driver.c:(.text+0x187e): undefined reference to `virPortAllocatorRangeNew'
qemu_driver.c:(.text+0x18af): undefined reference to `virPortAllocatorRangeNew'
qemu_driver.c:(.text+0x18e0): undefined reference to `virPortAllocatorRangeNew'
./.libs/libvirt_driver_qemu_impl.a(libvirt_driver_qemu_impl_la-qemu_driver.o): In function
`qemuDomainSnapshotUpdateDiskSources':
qemu_driver.c:(.text+0x4174): undefined reference to `virStorageFileDeinit'
./.libs/libvirt_driver_qemu_impl.a(libvirt_driver_qemu_impl_la-qemu_driver.o): In function
`qemuDomainSnapshotDiskDataFree':
qemu_driver.c:(.text+0x912e): undefined reference to `virStorageFileDeinit'
./.libs/libvirt_driver_qemu_impl.a(libvirt_driver_qemu_impl_la-qemu_driver.o): In function
`qemuDomainBlockCopyCommon':
qemu_driver.c:(.text+0x937a): undefined reference to `virStorageFileDeinit'
qemu_driver.c:(.text+0x956c): undefined reference to `virStorageFileAccess'
qemu_driver.c:(.text+0x958c): undefined reference to `virStorageFileStat'
qemu_driver.c:(.text+0x96bb): undefined reference to `virStorageFileDeinit'
qemu_driver.c:(.text+0x97ce): undefined reference to `virStorageFileDeinit'
qemu_driver.c:(.text+0x97fb): undefined reference to `virStorageFileUnlink'
qemu_driver.c:(.text+0x984f): undefined reference to `virStorageFileDeinit'
qemu_driver.c:(.text+0x98a1): undefined reference to `virStorageFileUnlink'
qemu_driver.c:(.text+0x98b7): undefined reference to `virStorageFileCreate'
./.libs/libvirt_driver_qemu_impl.a(libvirt_driver_qemu_impl_la-qemu_driver.o): In function
`qemuDomainBlockPeek':
qemu_driver.c:(.text+0x10823): undefined reference to `virStorageFileDeinit'
qemu_driver.c:(.text+0x108a7): undefined reference to `virStorageFileRead'
./.libs/libvirt_driver_qemu_impl.a(libvirt_driver_qemu_impl_la-qemu_driver.o): In function
`qemuDomainSetInterfaceParameters':
qemu_driver.c:(.text+0x1156a): undefined reference to
`virDomainNetBandwidthChangeAllowed'
qemu_driver.c:(.text+0x115b3): undefined reference to `virDomainNetBandwidthUpdate'
./.libs/libvirt_driver_qemu_impl.a(libvirt_driver_qemu_impl_la-qemu_driver.o): In function
`qemuSecurityChownCallback':
qemu_driver.c:(.text+0x1c97c): undefined reference to
`virStorageFileSupportsSecurityDriver'
qemu_driver.c:(.text+0x1ca09): undefined reference to `virStorageFileDeinit'
qemu_driver.c:(.text+0x1ca50): undefined reference to `virStorageFileInit'
qemu_driver.c:(.text+0x1ca62): undefined reference to `virStorageFileChown'
./.libs/libvirt_driver_qemu_impl.a(libvirt_driver_qemu_impl_la-qemu_driver.o): In function
`qemuDomainStorageOpenStat.isra.15':
qemu_driver.c:(.text+0x1d19b): undefined reference to `virStorageFileInitAs'
qemu_driver.c:(.text+0x1d1ac): undefined reference to `virStorageFileStat'
qemu_driver.c:(.text+0x1d1b8): undefined reference to `virStorageFileDeinit'
./.libs/libvirt_driver_qemu_impl.a(libvirt_driver_qemu_impl_la-qemu_driver.o): In function
`qemuStorageLimitsRefresh':
qemu_driver.c:(.text+0x1d2f6): undefined reference to `virStorageFileRead'
./.libs/libvirt_driver_qemu_impl.a(libvirt_driver_qemu_impl_la-qemu_driver.o): In function
`qemuDomainUpdateDeviceFlags':
qemu_driver.c:(.text+0x24e17): undefined reference to
`virDomainDiskTranslateSourcePool'
./.libs/libvirt_driver_qemu_impl.a(libvirt_driver_qemu_impl_la-qemu_driver.o): In function
`qemuDomainAttachDeviceFlags':
qemu_driver.c:(.text+0x25a67): undefined reference to
`virDomainDiskTranslateSourcePool'
./.libs/libvirt_driver_qemu_impl.a(libvirt_driver_qemu_impl_la-qemu_driver.o): In function
`qemuDomainSnapshotCreateXML':
qemu_driver.c:(.text+0x28f91): undefined reference to
`virDomainDiskTranslateSourcePool'
qemu_driver.c:(.text+0x2901b): undefined reference to `virStorageFileInit'
qemu_driver.c:(.text+0x29031): undefined reference to `virStorageFileStat'
qemu_driver.c:(.text+0x2906b): undefined reference to `virStorageFileDeinit'
qemu_driver.c:(.text+0x2943d): undefined reference to
`virStorageFileGetBackingStoreStr'
qemu_driver.c:(.text+0x2976f): undefined reference to
`virDomainDiskTranslateSourcePool'
qemu_driver.c:(.text+0x29af7): undefined reference to `virStorageFileDeinit'
qemu_driver.c:(.text+0x29b9c): undefined reference to `virStorageFileDeinit'
qemu_driver.c:(.text+0x29db4): undefined reference to `virStorageFileCreate'
qemu_driver.c:(.text+0x2a179): undefined reference to `virStorageFileUnlink'
./.libs/libvirt_driver_qemu_impl.a(libvirt_driver_qemu_impl_la-qemu_driver.o): In function
`qemuDomainStorageCloseStat':
qemu_driver.c:(.text+0x244f): undefined reference to `virStorageFileDeinit'
./.libs/libvirt_driver_qemu_impl.a(libvirt_driver_qemu_impl_la-qemu_alias.o): In function
`qemuAssignDeviceNetAlias':
qemu_alias.c:(.text+0x6f8): undefined reference to `virDomainNetResolveActualType'
./.libs/libvirt_driver_qemu_impl.a(libvirt_driver_qemu_impl_la-qemu_domain.o): In function
`qemuDomainSecretInfoNew':
qemu_domain.c:(.text+0x471f): undefined reference to `virGetConnectSecret'
qemu_domain.c:(.text+0x48e1): undefined reference to `virGetConnectSecret'
./.libs/libvirt_driver_qemu_impl.a(libvirt_driver_qemu_impl_la-qemu_domain.o): In function
`qemuDomainStorageFileInit':
qemu_domain.c:(.text+0x89ff): undefined reference to `virStorageFileInitAs'
./.libs/libvirt_driver_qemu_impl.a(libvirt_driver_qemu_impl_la-qemu_domain.o): In function
`qemuDomainDetermineDiskChain':
qemu_domain.c:(.text+0x8ba2): undefined reference to
`virStorageFileReportBrokenChain'
qemu_domain.c:(.text+0x8bb4): undefined reference to `virStorageFileSupportsAccess'
qemu_domain.c:(.text+0x8bd8): undefined reference to `virStorageFileAccess'
qemu_domain.c:(.text+0x8be8): undefined reference to `virStorageFileDeinit'
qemu_domain.c:(.text+0x8c9f): undefined reference to `virStorageFileGetMetadata'
qemu_domain.c:(.text+0x8d14): undefined reference to
`virStorageFileReportBrokenChain'
qemu_domain.c:(.text+0x8d1c): undefined reference to `virStorageFileDeinit'
./.libs/libvirt_driver_qemu_impl.a(libvirt_driver_qemu_impl_la-qemu_domain.o): In function
`qemuDomainDefValidate':
qemu_domain.c:(.text+0xb35d): undefined reference to `virDomainFeatureTypeToString'
qemu_domain.c:(.text+0xb379): undefined reference to `virDomainFeatureTypeToString'
./.libs/libvirt_driver_qemu_impl.a(libvirt_driver_qemu_impl_la-qemu_domain_address.o): In
function `qemuDomainFindSCSIControllerModel':
qemu_domain_address.c:(.text+0x2505): undefined reference to
`virDomainDeviceFindSCSIController'
./.libs/libvirt_driver_qemu_impl.a(libvirt_driver_qemu_impl_la-qemu_domain_address.o): In
function `qemuDomainFillDeviceIsolationGroup':
qemu_domain_address.c:(.text+0x2621): undefined reference to
`virDomainNetResolveActualType'
./.libs/libvirt_driver_qemu_impl.a(libvirt_driver_qemu_impl_la-qemu_hotplug.o): In
function `qemuDomainRemoveHostDevice':
qemu_hotplug.c:(.text+0xa41): undefined reference to
`virDomainNetReleaseActualDevice'
./.libs/libvirt_driver_qemu_impl.a(libvirt_driver_qemu_impl_la-qemu_hotplug.o): In
function `qemuDomainRemoveNetDevice':
qemu_hotplug.c:(.text+0x191e): undefined reference to
`virDomainNetReleaseActualDevice'
./.libs/libvirt_driver_qemu_impl.a(libvirt_driver_qemu_impl_la-qemu_hotplug.o): In
function `qemuDomainAttachDeviceDiskLive':
qemu_hotplug.c:(.text+0x3b4e): undefined reference to
`virDomainDiskTranslateSourcePool'
./.libs/libvirt_driver_qemu_impl.a(libvirt_driver_qemu_impl_la-qemu_hotplug.o): In
function `qemuDomainAttachNetDevice':
qemu_hotplug.c:(.text+0x7093): undefined reference to
`virDomainNetAllocateActualDevice'
qemu_hotplug.c:(.text+0x716c): undefined reference to
`virDomainNetReleaseActualDevice'
./.libs/libvirt_driver_qemu_impl.a(libvirt_driver_qemu_impl_la-qemu_hotplug.o): In
function `qemuDomainChangeNet':
qemu_hotplug.c:(.text+0x93da): undefined reference to
`virDomainNetReleaseActualDevice'
qemu_hotplug.c:(.text+0x9549): undefined reference to
`virDomainNetAllocateActualDevice'
qemu_hotplug.c:(.text+0x977c): undefined reference to
`virDomainNetReleaseActualDevice'
./.libs/libvirt_driver_qemu_impl.a(libvirt_driver_qemu_impl_la-qemu_hotplug.o): In
function `qemuDomainDetachChrDevice':
qemu_hotplug.c:(.text+0xbb12): undefined reference to
`virDomainChrDeviceTypeToString'
./.libs/libvirt_driver_qemu_impl.a(libvirt_driver_qemu_impl_la-qemu_hotplug.o): In
function `qemuDomainDetachMemoryDevice':
qemu_hotplug.c:(.text+0xbdd6): undefined reference to
`virDomainMemoryModelTypeToString'
./.libs/libvirt_driver_qemu_impl.a(libvirt_driver_qemu_impl_la-qemu_migration.o): In
function `qemuMigrationDstPrepareAny':
qemu_migration.c:(.text+0x6ce1): undefined reference to `virGetConnectStorage'
qemu_migration.c:(.text+0x6fc5): undefined reference to
`virStoragePoolLookupByTargetPath'
collect2: error: ld returned 1 exit status
libtool: error: error: relink 'libvirt_driver_qemu.la' with the above command
before installing it
make[3]: *** [Makefile:6292: install-modLTLIBRARIES] Error 1
make[3]: Leaving directory '/usr/pkgmk/build/libvirt/src/libvirt-4.1.0/src'
make[2]: *** [Makefile:12096: install-am] Error 2
make[2]: Leaving directory '/usr/pkgmk/build/libvirt/src/libvirt-4.1.0/src'
make[1]: *** [Makefile:12090: install] Error 2
make[1]: Leaving directory '/usr/pkgmk/build/libvirt/src/libvirt-4.1.0/src'
make: *** [Makefile:2127: install-recursive] Error 1
=======> ERROR: Building '/usr/pkgmk/package/libvirt#4.1.0-1.pkg.tar.gz'
failed.
------
Pedja
Show replies by date