Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 264508 - dev-libs/iniparser-3.0b: undefined reference when be linked with g++
Summary: dev-libs/iniparser-3.0b: undefined reference when be linked with g++
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's SAMBA Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-01 13:59 UTC by Qing Lei
Modified: 2010-04-11 08:25 UTC (History)
0 users

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


Attachments
iniparser-3.0b-r1.ebuild (iniparser-3.0b-r1.ebuild,1.06 KB, text/plain)
2009-04-01 14:00 UTC, Qing Lei
Details
iniparser-3.0b-cpp.patch (iniparser-3.0b-cpp.patch,1.41 KB, patch)
2009-04-01 14:00 UTC, Qing Lei
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Qing Lei 2009-04-01 13:59:41 UTC
$ g++ -o test main.cpp -liniparser
/tmp/ccrYIqBp.o: In function `main':
main.cpp:(.text+0x15): undefined reference to `iniparser_load(char const*)'
main.cpp:(.text+0x33): undefined reference to `iniparser_getint(_dictionary_*, char const*, int)'
collect2: ld 返回 1


Reproducible: Always
Comment 1 Qing Lei 2009-04-01 14:00:08 UTC
Created attachment 186981 [details]
iniparser-3.0b-r1.ebuild
Comment 2 Qing Lei 2009-04-01 14:00:30 UTC
Created attachment 186983 [details, diff]
iniparser-3.0b-cpp.patch
Comment 3 Rafał Mużyło 2009-04-01 18:24:00 UTC
I'd say it's invalid
- either bother upstream to accept these changes,
or 'extern "C"' around the #include'd header.
Comment 4 Tiziano Müller (RETIRED) gentoo-dev 2010-04-11 08:25:58 UTC
Added in -r2. Thanks!