Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 264508

Summary: dev-libs/iniparser-3.0b: undefined reference when be linked with g++
Product: Gentoo Linux Reporter: Qing Lei <fiag.hit>
Component: [OLD] LibraryAssignee: Gentoo's SAMBA Team <samba>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: iniparser-3.0b-r1.ebuild
iniparser-3.0b-cpp.patch

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!