First of all, thank you for your great help. It has resolved almost
all of the errors.
However, i still get unresolved references to some (not all!) of my
references to functions of the pbc library.

These are the errors:
smtp_proto.o: In function `scan_element':
/usr/local/src/postfix-2.6.11/src/smtp/ibs_sign.c:24: undefined
reference to `pbc_malloc'
/usr/local/src/postfix-2.6.11/src/smtp/ibs_sign.c:31: undefined
reference to `pbc_free'
smtp_proto.o: In function `sign':
/usr/local/src/postfix-2.6.11/src/smtp/ibs_sign.c:84: undefined
reference to `pairing_init_set_buf'
/usr/local/src/postfix-2.6.11/src/smtp/ibs_sign.c:95: undefined
reference to `ib_sys_param_scan'
/usr/local/src/postfix-2.6.11/src/smtp/ibs_sign.c:106: undefined
reference to `pbc_malloc'
/usr/local/src/postfix-2.6.11/src/smtp/ibs_sign.c:106: undefined
reference to `cc_signature_length'
/usr/local/src/postfix-2.6.11/src/smtp/ibs_sign.c:109: undefined
reference to `cc_sign'

This looks strange to me because some calls functions in the pbc
library cause no errors. For example a snippet from my code:
pairing_init_set_buf(pairing, param, count);
ib_sys_param_init(sysparam, pairing);

The reference to pairing_init_set_buf() is line 84 from the error
message. The next line calls a function from pbc as well, but does not
cause an error.

Have you got an idea how to resolve this issue? Or do think this is
caused on libpbc's side?
Again, thanks a lot for your help.

Best regards,
Tobias

2011/8/24 Wietse Venema <wie...@porcupine.org>:
> Tobias Kloht:
>> My problem is that it will not compile when using make, because there
>> are all kinds of errors with the librarys i have added, mainly
>> "undefined references". See the excerpt from make's error messages below.
>> My program does compile if i do it by hand, but i have to use some gcc
>> options. For example, when compiling ibs_sign.c i would use: "gcc -
>> static ibs_sign.c -L. -lpbc -lgmp -lpbc_sig".
>
> To add external libraries such as pbc, gmp and pbc_sig that exist
> outside the Postfix source tree:
>
> $ make makefiles "SYSLIBS=-lpbc -lgmp -lpbc_sig"
> $ make
>
>        Wietse
>

Reply via email to