Bug 165981
| Summary: | two libmagmamsg issues | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Joe Orton <jorton> | ||||||||
| Component: | magma | Assignee: | Chris Feist <cfeist> | ||||||||
| Status: | CLOSED RAWHIDE | QA Contact: | |||||||||
| Severity: | medium | Docs Contact: | |||||||||
| Priority: | medium | ||||||||||
| Version: | rawhide | CC: | sundaram | ||||||||
| Target Milestone: | --- | ||||||||||
| Target Release: | --- | ||||||||||
| Hardware: | All | ||||||||||
| OS: | Linux | ||||||||||
| Whiteboard: | |||||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||||
| Doc Text: | Story Points: | --- | |||||||||
| Clone Of: | Environment: | ||||||||||
| Last Closed: | 2005-09-04 23:17:33 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: | |||||||||||
| Attachments: |
|
||||||||||
|
Description
Joe Orton
2005-08-15 14:16:28 UTC
You're right, the lib should be 0755 The dependency is on libmagma. Basically, we separated libmagma and libmagmamsg so that we could make sure libmagma was LGPL-licensed. Libmagmamsg requires libmagma at link time when building an application against it. The socket handling code in libmagmamsg dates back GPL code from Mission Critical Linux ca. 2000, and is GPL-licensed, which is why libmagmamsg is separate in the first place... Created attachment 118322 [details]
cfeist + lhh's patch to fix mode / linking problem
Yow:
+ ${LD} -shared -soname libmagmamsg.so.$(RELEASE_MAJOR) -o $@ $^ -Bdynamic -lc
-L. -lmagma -lpthread -ldl
you should never ever ever be linking anything using ld directly. use
gcc -shared ...
and the explicit -lc is not necessary either.
I know the explicit lc isn't necessary, I was just using what was in the makefile ;) The whole makefile would need to be rewritten to make it not use LD directly.. To be honest, I don't know where that came from, I was sure I was using gcc. Created attachment 118348 [details]
Hail rewrites.
Created attachment 118349 [details]
Remove already-committed mode change
-Bdynamic is also redundant on Linux, otherwise that looks good. The fixes have been commited upstream and should show up in the next fedora core build of magma. |