Bug 251486
Summary: | Malformed libraries | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Benjamin S. Scarlet <scarlet> |
Component: | libnetfilter_queue | Assignee: | Paul P Komkoff Jr <i> |
Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | low | Docs Contact: | |
Priority: | low | ||
Version: | 7 | CC: | i |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2008-02-24 16:56:44 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Benjamin S. Scarlet
2007-08-09 12:17:48 UTC
What app you're trying to build? Does build succeed if you install libnetfilter_queue-devel ? libnetfilter_queue-devel is installed. How is that relevant? It only contains the headers and some links which aren't used by nm. I'm trying to build my own code, but as nm shows no symbols, that doesn't seem relevant to me. Compilation succeeds, linking fails. The linker successfully resolves -lnetfilter_queue, finding the library, but still fails to resolve calls in my code, giving undefined references to nfq_open & nfq_close (the only functions called in the code). When I check find out why with nm, I find that nm can't find any symbols in the libraries either, as shown above. If nm can't find the symbols, then ld can't be expected to either, so we can drop any worries about my code. I stand corrected. My code had the wrong linkage. I'm building in C++ and I needed extern "C" ... I'm still curious why nm has trouble reading the library, but the library works. The correct way list symbols for a dynamic shared object is nm -D filename. |