Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am trying to replace manually a library for freeradius.
On a one hand I installed freeradius with an apt-get install. There was a library "libfoo-2.0.4.so" (let's call it the lib(apt)).
On the other hand I used the sources (from apt-get source) to modify the library "libfoo-2.0.4.so" (let's call it the lib(src)). The i compiled the sources (./configure, make) to retrieve this modified lib(src). (The lib works fine when i test it).

When I try to manually replace lib(apt) by lib(src) the freeradius segfaults during the call of that library.
So it seems that the libraries are not compatible.

Could it be because of compilation issues? (precompiled version versus local compilation)
Any ideas?

Thanks!

share|improve this question
    
I wonder if some build option in the package install is missing in the source-built version –  Journeyman Geek Apr 15 '13 at 9:09
    
Might be something like that, yes. Is there a way to know which build options were used for the precompiled version? –  Yoann Couble Apr 15 '13 at 9:13
    
I have no clue, would be an interesting thing to ask though! –  Journeyman Geek Apr 15 '13 at 13:58
    
Thanks anyway :) –  Yoann Couble Apr 15 '13 at 17:08
    
@JourneymanGeek You should post your answer so i can mark it a the valid answer. –  Yoann Couble Apr 16 '13 at 8:07

1 Answer 1

up vote 0 down vote accepted

I'm guessing that some build option that was used in the package install was missing in the source-built version you're using (assuming the changes to your code didn't cause it -this SF question may be a good start troubleshooting that). Apparently you can use auto-apt to pull in any dependancies as you're installing it but there's apparently no obvious tool to retrive what build options the original compilation used.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.