Re: Undefined symbol __eprintf in libaudiofile.so (Gnome ticket reportlogs - #6056)



>From: Brian Seklecki <lavalamp burghcom com>

>Simon says:
>
>lavalamp seekup:/usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2$ nm -A * | 
>grep -i __eprintf
>cc1plus: [6095] |   2402264|      92|FUNC |GLOB |0    |9      |__eprintf
:
> ...or use `-LLIBDIR' flag during linking and do at least one of the following:
:
>   - use the `-RLIBDIR' linker flag
:
>export LIBS="-L/usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2 -lgcc"
>
>Now what?
 :
>> and thus the breakage.  You can fix this by using a -R in the link stage of 
>> the plugin, IIRC.  Tell the .so where it should be looking to link in the 
>> compiler's library and find this function.


-L just tells the linker where to find it during the link/build stage.  You need 
to set -R too to tell the executable where to find it during the link/run stage:

  export LIBS="-R/usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2 -lcc1plus"

Mark.





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]