Le vendredi 2 décembre 2011 17:25:13, vous avez écrit :
> Package: tcc
> Version: 0.9.25-5
> Severity: important
> 
> 
> Hi,
> 
>   I cannot get tcc to compile an executable with shared libs working. It
> currently fails with:
> 
> ../j2k_to_image: Symbol `opj_image_destroy' causes overflow in
> R_X86_64_PC32 relocation
> 
> Thanks

Greetings.

Sorry for answering so late.

Do you have a sources file (1 main source + 1 for the library) exhibiting the 
bug that you could share on this bug report? This would help me reproduce the 
bug.

What I tried is:

19:20 robotux@trevize ~/tmp/tcc% cat libfoo.c 
#include <stdio.h>

void print_foo(void)
{
        puts("foo");
}
19:20 robotux@trevize ~/tmp/tcc% cat main.c 
void print_foo(void);

int main(void)
{
        print_foo();
        return 0;
}

19:20 robotux@trevize ~/tmp/tcc% tcc -Wall -shared -soname libfoo.so.1 -o 
libfoo.so.1.0.0 libfoo.c
19:20 robotux@trevize ~/tmp/tcc% ln -s libfoo.so.1.0.0 libfoo.so.1
19:20 robotux@trevize ~/tmp/tcc% ln -s libfoo.so.1.0.0 libfoo.so
19:20 robotux@trevize ~/tmp/tcc% tcc -Wall -L. -o main main.c -lfoo
19:20 robotux@trevize ~/tmp/tcc% LD_LIBRARY_PATH=. ./main
foo

What I need to know is wether the library was compiled with tcc. According to 
your initial mail it seems at least the main program was linked with tcc, 
probably compiled with it too.

As I said, I'd also like a testcase if you can provide me one. If you can't 
make the test minimal, don't worry. I can probably make it minimal or work 
with what you have.

Thanks a lot.

Best regards.

> 
> -- System Information:
> Debian Release: 6.0.1
>   APT prefers stable-updates
>   APT policy: (500, 'stable-updates'), (500, 'stable'), (200, 'testing'),
> (100, 'unstable') Architecture: amd64 (x86_64)
> 
> Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
> Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/dash
> 
> Versions of packages tcc depends on:
> ii  dpkg                      1.15.8.11      Debian package management
> system ii  install-info              4.13a.dfsg.1-6 Manage installed
> documentation in ii  libc6                     2.11.2-10      Embedded GNU
> C Library: Shared lib
> 
> Versions of packages tcc recommends:
> ii  libc6-dev [libc-dev]          2.11.2-10  Embedded GNU C Library:
> Developmen
> 
> tcc suggests no packages.
> 
> -- no debconf information

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to