[Parted-maintainers] Bug#517220: Cannot link statically to libparted.a
Guy V
vogu00 at gmail.com
Thu Feb 26 13:15:13 UTC 2009
Package: libparted1.8-dev
Version: 1.8.8.git.2008.03.24-11.1
in my application "Guymager" (see guymager.sourceforge.net) I
statically link to libparted.a.
This works without problems on Etch, but on Lenny I get the following errors:
g++ -ggdb -rdynamic -o guymager compileinfo.o config.o device.o
dlgabort.o dlgacquire.o dlgdirsel.o dlgmessage.o dlgwait.o error.o
fifo.o file.o hash.o info.o infofield.o itemdelegate.o main.o
mainwindow.o md5.o memwatch.o qtutil.o sha256.o table.o
threadcompress.o threadhash.o threadread.o threadscan.o threadwrite.o
util.o moc_devicelistmodel.o moc_dlgabort.o moc_dlgacquire.o
moc_dlgacquire_private.o moc_dlgdirsel.o moc_dlgdirsel_private.o
moc_dlgmessage.o moc_dlgwait.o moc_infofield.o moc_itemdelegate.o
moc_mainwindow.o moc_table.o moc_threadcompress.o moc_threadhash.o
moc_threadread.o moc_threadscan.o moc_threadwrite.o -L/usr/lib
-lguytoollog -lguytoolerror -lguytoolcfg -lguytoolsignal
-lguytoolsysinfo /usr/lib/libparted.a /usr/local/lib/libafflib.a
-lproc -lewf -lQtDBus -lQtGui -lQtCore -lpthread
/usr/lib/libparted.a(linux.o): In function `_is_dmraid_device':
(.text+0x360): undefined reference to `dm_task_create'
/usr/lib/libparted.a(linux.o): In function `_is_dmraid_device':
(.text+0x370): undefined reference to `dm_task_set_name'
/usr/lib/libparted.a(linux.o): In function `_is_dmraid_device':
(.text+0x378): undefined reference to `dm_task_run'
/usr/lib/libparted.a(linux.o): In function `_is_dmraid_device':
(.text+0x38c): undefined reference to `dm_task_get_uuid'
/usr/lib/libparted.a(linux.o): In function `_is_dmraid_device':
(.text+0x3b8): undefined reference to `dm_task_destroy'
/usr/lib/libparted.a(linux.o): In function `linux_new':
(.text+0x3904): undefined reference to `dm_task_create'
/usr/lib/libparted.a(linux.o): In function `linux_new':
(.text+0x3914): undefined reference to `dm_task_set_name'
/usr/lib/libparted.a(linux.o): In function `linux_new':
(.text+0x3924): undefined reference to `dm_task_destroy'
/usr/lib/libparted.a(linux.o): In function `linux_new':
(.text+0x3a30): undefined reference to `dm_task_no_open_count'
/usr/lib/libparted.a(linux.o): In function `linux_new':
(.text+0x3a38): undefined reference to `dm_task_run'
/usr/lib/libparted.a(linux.o): In function `linux_new':
(.text+0x3a5c): undefined reference to `dm_get_next_target'
/usr/lib/libparted.a(linux.o): In function `linux_new':
(.text+0x3a78): undefined reference to `dm_task_destroy'
/usr/lib/libparted.a(linux.o): In function `linux_new':
(.text+0x3a80): undefined reference to `dm_set_dev_dir'
/usr/lib/libparted.a(linux.o): In function `_dm_remove_map_name':
(.text+0x3c84): undefined reference to `dm_task_create'
/usr/lib/libparted.a(linux.o): In function `_dm_remove_map_name':
(.text+0x3c94): undefined reference to `dm_task_set_name'
/usr/lib/libparted.a(linux.o): In function `_dm_remove_map_name':
(.text+0x3c9c): undefined reference to `dm_task_run'
/usr/lib/libparted.a(linux.o): In function `_dm_remove_map_name':
(.text+0x3ca4): undefined reference to `dm_task_update_nodes'
/usr/lib/libparted.a(linux.o): In function `_dm_remove_map_name':
(.text+0x3cac): undefined reference to `dm_task_destroy'
/usr/lib/libparted.a(linux.o): In function `_dm_is_part':
(.text+0x3d28): undefined reference to `dm_task_create'
/usr/lib/libparted.a(linux.o): In function `_dm_is_part':
(.text+0x3d38): undefined reference to `dm_task_set_name'
/usr/lib/libparted.a(linux.o): In function `_dm_is_part':
(.text+0x3d40): undefined reference to `dm_task_run'
/usr/lib/libparted.a(linux.o): In function `_dm_is_part':
(.text+0x3d64): undefined reference to `dm_task_get_info'
/usr/lib/libparted.a(linux.o): In function `_dm_is_part':
(.text+0x3d7c): undefined reference to `dm_task_destroy'
/usr/lib/libparted.a(linux.o): In function `_dm_is_part':
(.text+0x3db4): undefined reference to `dm_task_get_deps'
/usr/lib/libparted.a(linux.o): In function `_dm_remove_parts':
(.text+0x3f24): undefined reference to `dm_task_create'
/usr/lib/libparted.a(linux.o): In function `_dm_remove_parts':
(.text+0x3f44): undefined reference to `dm_task_set_major'
/usr/lib/libparted.a(linux.o): In function `_dm_remove_parts':
(.text+0x3f68): undefined reference to `dm_task_set_minor'
/usr/lib/libparted.a(linux.o): In function `_dm_remove_parts':
(.text+0x3f70): undefined reference to `dm_task_run'
/usr/lib/libparted.a(linux.o): In function `_dm_remove_parts':
(.text+0x3f94): undefined reference to `dm_task_get_info'
/usr/lib/libparted.a(linux.o): In function `_dm_remove_parts':
(.text+0x3fa8): undefined reference to `dm_task_destroy'
/usr/lib/libparted.a(linux.o): In function `_dm_remove_parts':
(.text+0x3fb4): undefined reference to `dm_task_get_names'
/usr/lib/libparted.a(linux.o): In function `_dm_remove_parts':
(.text+0x4010): undefined reference to `dm_task_update_nodes'
/usr/lib/libparted.a(linux.o): In function `_dm_remove_parts':
(.text+0x4018): undefined reference to `dm_task_destroy'
/usr/lib/libparted.a(linux.o): In function `linux_disk_commit':
(.text+0x44e0): undefined reference to `dm_task_create'
/usr/lib/libparted.a(linux.o): In function `linux_disk_commit':
(.text+0x44f4): undefined reference to `dm_task_set_name'
/usr/lib/libparted.a(linux.o): In function `linux_disk_commit':
(.text+0x4514): undefined reference to `dm_task_add_target'
/usr/lib/libparted.a(linux.o): In function `linux_disk_commit':
(.text+0x4530): undefined reference to `dm_task_run'
/usr/lib/libparted.a(linux.o): In function `linux_disk_commit':
(.text+0x453c): undefined reference to `dm_task_update_nodes'
/usr/lib/libparted.a(linux.o): In function `linux_disk_commit':
(.text+0x4544): undefined reference to `dm_task_destroy'
/usr/lib/libparted.a(linux.o): In function `linux_disk_commit':
(.text+0x4570): undefined reference to `dm_task_update_nodes'
/usr/lib/libparted.a(linux.o): In function `linux_disk_commit':
(.text+0x4824): undefined reference to `dm_task_set_uuid'
/usr/lib/libparted.a(linux.o): In function `linux_disk_commit':
(.text+0x4834): undefined reference to `dm_task_update_nodes'
/usr/lib/libparted.a(linux.o): In function `linux_disk_commit':
(.text+0x483c): undefined reference to `dm_task_destroy'
collect2: ld returned 1 exit status
make[1]: *** [guymager] Error 1
make[1]: Leaving directory `/home/vogu/projects/guymager/trunk'
make: *** [build-stamp] Error 2
I have no suggestions for fixing the problem so far.
My Kernel: Linux mac 2.6.26-1-powerpc #1 Sat Jan 10 14:00:38 CET 2009
ppc GNU/Linux
My libc: Version: 2.7-18
The problem is exactely the same on an i386 platform.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.alioth.debian.org/pipermail/parted-maintainers/attachments/20090226/4e3e0c1a/attachment.htm
More information about the Parted-maintainers
mailing list