Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 147332 - sys-fs/captive does not pull in popt in the correct places
Summary: sys-fs/captive does not pull in popt in the correct places
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Stefan Schweizer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-12 08:00 UTC by David Li
Modified: 2006-09-12 13:10 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch to fix popt problems (captive-popt.patch,2.12 KB, patch)
2006-09-12 08:03 UTC, David Li
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David Li 2006-09-12 08:00:56 UTC
When I compile captive, I get "undefined references" errors on popt related things.

captive_cmdline-cmd_shell.o: In function `cmd_shell':
cmd_shell.c:(.text+0xe4): undefined reference to `poptParseArgvString'
cmd_shell.c:(.text+0x10a): undefined reference to `poptStrerror'
captive_cmdline-main.o: In function `invoke_cmd_err':
main.c:(.text+0x30b): undefined reference to `poptGetContext'
main.c:(.text+0x327): undefined reference to `poptReadDefaultConfig'
main.c:(.text+0x33c): undefined reference to `poptGetNextOpt'
main.c:(.text+0x4f2): undefined reference to `poptStrerror'
main.c:(.text+0x546): undefined reference to `poptFreeContext'
main.c:(.text+0x559): undefined reference to `poptGetArgs'
captive_cmdline-main.o: In function `main':
main.c:(.text+0x7c5): undefined reference to `poptGetContext'
main.c:(.text+0x7e0): undefined reference to `poptReadDefaultConfig'
main.c:(.text+0x7ec): undefined reference to `poptGetNextOpt'
main.c:(.text+0x88b): undefined reference to `poptGetNextOpt'
main.c:(.text+0x8a4): undefined reference to `poptGetArgs'
main.c:(.text+0xa70): undefined reference to `poptFreeContext'
captive_cmdline-main.o: In function `displayArgs':
main.c:(.text+0x29): undefined reference to `poptPrintUsage'
main.c:(.text+0x44): undefined reference to `poptPrintHelp'
captive_cmdline-main.o:(.rodata+0x2a8): undefined reference to `poptHelpOptions'../../../src/libcaptive/.libs/libcaptive.so: undefined reference to `poptPeekArg'

A quick search revealed several proposed patches to fix this. I took a look at them and made my own. After using the patch, captive compiles fine.
Comment 1 David Li 2006-09-12 08:03:16 UTC
Created attachment 96793 [details, diff]
Patch to fix popt problems
Comment 2 Stefan Schweizer (RETIRED) gentoo-dev 2006-09-12 13:10:17 UTC
thanks, fixed. please also report this bug and the patch upstream