Dear Ubuntu Core Developers,

in my application (guymager) I use some libparted functions. In order ro
avoid dependency problems in my Debian package, I statically use libparted.a
in my application. This works without problems on Debian Etch, but on Ubuntu
8.10 I get the following errors while linking:

g++ -Wl,--no-undefined -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 table.o threadcompress.o threadmd5.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_threadmd5.o moc_threadread.o moc_threadscan.o moc_threadwrite.o
-L/usr/lib -lguytoollog -lguytoolerror -lguytoolcfg -lguytoolsignal
-lguytoolsysinfo /usr/lib/libparted.a -lproc -lewf -lQtDBus -lQtGui -lQtCore
-lpthread
/usr/lib/libparted.a(linux.o): In function `_is_dmraid_device':
(.text+0x293): undefined reference to `dm_task_create'
/usr/lib/libparted.a(linux.o): In function `_is_dmraid_device':
(.text+0x2ac): undefined reference to `dm_task_set_name'
/usr/lib/libparted.a(linux.o): In function `_is_dmraid_device':
(.text+0x2b4): undefined reference to `dm_task_run'
/usr/lib/libparted.a(linux.o): In function `_is_dmraid_device':
(.text+0x2c5): undefined reference to `dm_task_get_uuid'
/usr/lib/libparted.a(linux.o): In function `_is_dmraid_device':
(.text+0x2f2): undefined reference to `dm_task_destroy'
/usr/lib/libparted.a(linux.o): In function `_dm_remove_map_name':
(.text+0x2c76): undefined reference to `dm_task_create'
/usr/lib/libparted.a(linux.o): In function `_dm_remove_map_name':
(.text+0x2c8d): undefined reference to `dm_task_set_name'
/usr/lib/libparted.a(linux.o): In function `_dm_remove_map_name':
(.text+0x2c95): undefined reference to `dm_task_run'
/usr/lib/libparted.a(linux.o): In function `_dm_remove_map_name':
(.text+0x2c9c): undefined reference to `dm_task_update_nodes'
/usr/lib/libparted.a(linux.o): In function `_dm_remove_map_name':
(.text+0x2ca4): undefined reference to `dm_task_destroy'
/usr/lib/libparted.a(linux.o): In function `_dm_is_part':
(.text+0x2ce8): undefined reference to `dm_task_create'
/usr/lib/libparted.a(linux.o): In function `_dm_is_part':
(.text+0x2d05): undefined reference to `dm_task_set_name'
/usr/lib/libparted.a(linux.o): In function `_dm_is_part':
(.text+0x2d10): undefined reference to `dm_task_run'
/usr/lib/libparted.a(linux.o): In function `_dm_is_part':
(.text+0x2d2e): undefined reference to `dm_task_get_info'
/usr/lib/libparted.a(linux.o): In function `_dm_is_part':
(.text+0x2d46): undefined reference to `dm_task_destroy'
/usr/lib/libparted.a(linux.o): In function `_dm_is_part':
(.text+0x2d6f): undefined reference to `dm_task_get_deps'
/usr/lib/libparted.a(linux.o): In function `_dm_remove_parts':
(.text+0x2ea8): undefined reference to `dm_task_create'
/usr/lib/libparted.a(linux.o): In function `_dm_remove_parts':
(.text+0x2ed7): undefined reference to `dm_task_set_major'
/usr/lib/libparted.a(linux.o): In function `_dm_remove_parts':
(.text+0x2ef8): undefined reference to `dm_task_set_minor'
/usr/lib/libparted.a(linux.o): In function `_dm_remove_parts':
(.text+0x2f00): undefined reference to `dm_task_run'
/usr/lib/libparted.a(linux.o): In function `_dm_remove_parts':
(.text+0x2f25): undefined reference to `dm_task_get_info'
/usr/lib/libparted.a(linux.o): In function `_dm_remove_parts':
(.text+0x2f39): undefined reference to `dm_task_destroy'
/usr/lib/libparted.a(linux.o): In function `_dm_remove_parts':
(.text+0x2f4c): undefined reference to `dm_task_get_names'
/usr/lib/libparted.a(linux.o): In function `_dm_remove_parts':
(.text+0x2fa1): undefined reference to `dm_task_update_nodes'
/usr/lib/libparted.a(linux.o): In function `_dm_remove_parts':
(.text+0x2fa9): undefined reference to `dm_task_destroy'
/usr/lib/libparted.a(linux.o): In function `linux_disk_commit':
(.text+0x4128): undefined reference to `dm_task_create'
/usr/lib/libparted.a(linux.o): In function `linux_disk_commit':
(.text+0x4144): undefined reference to `dm_task_set_name'
/usr/lib/libparted.a(linux.o): In function `linux_disk_commit':
(.text+0x417e): undefined reference to `dm_task_add_target'
/usr/lib/libparted.a(linux.o): In function `linux_disk_commit':
(.text+0x419e): undefined reference to `dm_task_run'
/usr/lib/libparted.a(linux.o): In function `linux_disk_commit':
(.text+0x41af): undefined reference to `dm_task_update_nodes'
/usr/lib/libparted.a(linux.o): In function `linux_disk_commit':
(.text+0x41b7): undefined reference to `dm_task_destroy'
/usr/lib/libparted.a(linux.o): In function `linux_disk_commit':
(.text+0x41f1): undefined reference to `dm_task_update_nodes'
/usr/lib/libparted.a(linux.o): In function `linux_disk_commit':
(.text+0x463a): undefined reference to `dm_task_set_uuid'
/usr/lib/libparted.a(linux.o): In function `linux_disk_commit':
(.text+0x464f): undefined reference to `dm_task_update_nodes'
/usr/lib/libparted.a(linux.o): In function `linux_disk_commit':
(.text+0x4657): undefined reference to `dm_task_destroy'
collect2: ld returned 1 exit status
make: *** [guymager] Error 1


Do have any idea what's going wrong?

Thanks in advance!

Guy
-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss

Reply via email to