tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: failing to link siglongjmp with clang



In article <20120425172804.51662cf1.jklowden%schemamania.org@localhost>,
James K. Lowden <tech-userlevel%netbsd.org@localhost> wrote:
>How does the symbol renaming magic work in libc?  
>
>Using clang 1.0 (yeah, I know) siglongjmp fails to link 
>
>interrupt.o: In function `inactive_interrupt_handler':
>[...]/src/apps/fisql/../../../../src/apps/fisql/interrupt.c:31:
>undefined reference to `siglongjmp' collect2: ld returned 1 exit status
>
>for pretty obvious reasons
>
>$ nm /usr/lib/libc.so | grep siglongjmp
>0000000000054650 T __siglongjmp14
>
>$ nm interrupt.o | grep siglongjmp
>                 U siglongjmp
>
>What to do, please?  

include setjmp.h from interrupt.c
compile with errors on implicit declarations.

christos



Home | Main Index | Thread Index | Old Index