BID-coding an encapsulate

Björn Döbel doebel at os.inf.tu-dresden.de
Tue Jan 22 08:57:30 CET 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

|   ==> Linking aesclient
| LD_PRELOAD=/home/fiasco/build/tool/gendep/libgendep.so
GENDEP_TARGET=aesclient GENDEP_BINARY=ld  GENDEP_BINARY_ALT1=ld ld -m
elf_i386 -o aesclient /home/fiasco/build/lib/x86_586/crt0.o main.o
aes256-client.o -Ttext=0x1100000 --hash-style=sysv
- -L/home/fiasco/build/lib/x86_586/l4v2 -L/home/fiasco/build/lib/x86_586
- -L/home/fiasco/build/lib -L/home/drops/lib/x86_586/l4v2
- -L/home/drops/lib/x86_586 -L/home/drops/lib
- -T/home/fiasco/build/lib/x86_586/main_stat.ld -laes256  -static
- -lgeneric_ts -ll4env -ll4rm -ldm_generic -ldm_mem -lthread -lsemaphore
- -llogserver_capsule -lnames -ll4util_root -ll4util -lsigma0 -lroot
- -ll4env -ll4env_err -ll4rm -ldm_generic -ldm_mem -lthread -lslab -ll4sys
- -nostdlib  -luc_c -luclibc_support -u mmap_anon -lc_be_simple_mem
- -lc_be_mmap -lc_be_mmap_util -lc_be_l4env_start_stop
- -lc_be_minimal_log_io -luc_be_simple_sleep -ll4env -llogserver_capsule
- -ll4rm -ldm_generic -ldm_mem -lthread -lgeneric_ts -luc_c
/usr/lib/gcc/i486-linux-gnu/3.4.6/libgcc.a -luc_c -ll4sys
- -Ttext=0x1100000 --warn-common -gc-sections
| /home/fiasco/build/lib/x86_586/l4v2/libaes256.a(encap.o): In function
`aes256_init':
| /home/fiasco/l4/pkg/aes256/lib/src/encap.c:26: undefined reference to
`aes256_init_call'
| make[1]: *** [aesclient] Error 1
| make[1]: Leaving directory
`/home/fiasco/build/pkg/aes/examples/client/OBJ-x86_586-l4v2'
| make: ***
[/home/fiasco/build/pkg/aes/examples/client/OBJ-x86_586-l4v2] Error 2

The function name in the generated code is always prefixed with the
interface and library names. In your case, this means that your function
is called a_aes256_init_call() - as you can also see from the generated
- -client.c file.

Bjoern
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHlaHqP5ijxgQLUNkRAgpoAJ4gKWaUr2KljF1P5H0rHFVloDUoMACdF1JB
2WjYFf8jwtil7PxZ3Ox8pyA=
=rRkZ
-----END PGP SIGNATURE-----




More information about the l4-hackers mailing list