try gcc -print-search-dirs
I think this is what you need.

-- 
Ori Idan


On Sun, Nov 30, 2008 at 10:26 PM, ik <[EMAIL PROTECTED]> wrote:

> solved.
>
> It seems that the package for cross compiling made some problems and took
> over the regular libraries.
> Once removing the problematic package, the problem solved.
>
> I have a question, where or how I can find the default location that gcc
> will look for this libraries (for next time) ?
>
> Thanks
> Ido
> http://ik.homelinux.org/
>
>
>
> On Sat, Nov 29, 2008 at 3:02 PM, ik <[EMAIL PROTECTED]> wrote:
>
>> Hello,
>>
>> I'm using Debian testing on 64 bit.
>>
>> When I try to link some programs I'm having the following error messages:
>>
>> /usr/x86_64-linux-gnu/lib64/libdl.so.2: undefined reference to
>> [EMAIL PROTECTED]'
>> /usr/x86_64-linux-gnu/lib64/libdl.so.2: undefined reference to
>> [EMAIL PROTECTED]'
>>
>> When using objdump on libdl.so.2 I found the following:
>>
>> # objdump -R -r -t -T -G -x /usr/x86_64-linux-gnu/lib64/libdl.so.2 |
>> grep GLIBC_PRIVATE
>>
>> 5 0x00 0x0963cf85 GLIBC_PRIVATE
>>    0x0963cf85 0x00 07 GLIBC_PRIVATE
>>    0x0963cf85 0x00 06 GLIBC_PRIVATE
>> 0000000000000000      DF *UND*  0000000000000484  GLIBC_PRIVATE
>> _dl_rtld_di_serinfo
>> 0000000000000000      DF *UND*  00000000000000e1  GLIBC_PRIVATE _dl_vsym
>> 0000000000000000      DO *UND*  0000000000000820  GLIBC_PRIVATE
>> _rtld_global
>> 0000000000000000      DF *UND*  000000000000023a  GLIBC_PRIVATE _dl_addr
>> 0000000000000000      DO *UND*  0000000000000138  GLIBC_PRIVATE
>> _rtld_global_ro
>> 0000000000000000      DF *UND*  0000000000000b89  GLIBC_PRIVATE _dl_close
>> 0000000000000000 g    DO *ABS*  0000000000000000  GLIBC_PRIVATE
>> GLIBC_PRIVATE
>> 0000000000000000      DF *UND*  0000000000000344  GLIBC_PRIVATE _dl_open
>> 0000000000000000      DF *UND*  000000000000000d  GLIBC_PRIVATE _dl_sym
>> 00000000001020b0 g    DO .bss   0000000000000008  GLIBC_PRIVATE
>> _dlfcn_hook
>>
>>
>> On Google I found only solutions for Oracle that does not apply to my
>> case.
>> Does anyone one know how to solve such issue ?
>>
>> Thanks,
>> ido
>>
>> http://ik.homelinux.org/
>>
>
>

Reply via email to