tags 327610 patch thanks The attached patch fixes the problem.
The gcc doc say: | `alias ("TARGET")' | The `alias' attribute causes the declaration to be emitted as an | alias for another symbol, which must be specified. For instance, | | void __f () { /* Do something. */; } | void f () __attribute__ ((weak, alias ("__f"))); | | declares `f' to be a weak alias for `__f'. In C++, the mangled | name for the target must be used. It is an error if `__f' is not | defined in the same translation unit. Bastian -- I have never understood the female capacity to avoid a direct answer to any question. -- Spock, "This Side of Paradise", stardate 3417.3
diff -urN libabz-0.6.1/debian/changelog libabz-0.6.1.1/debian/changelog --- libabz-0.6.1/debian/changelog 2005-09-10 18:14:16.000000000 +0000 +++ libabz-0.6.1.1/debian/changelog 2005-10-10 10:56:36.000000000 +0000 @@ -1,3 +1,10 @@ +libabz (0.6.1.1) unstable; urgency=low + + * Non-maintainer upload. + * Fix aliases. (closes: #327610) + + -- Bastian Blank <[EMAIL PROTECTED]> Mon, 10 Oct 2005 10:53:46 +0000 + libabz (0.6.1) unstable; urgency=low * Added batch funtions. diff -urN libabz-0.6.1/include/abz/iptables.h libabz-0.6.1.1/include/abz/iptables.h --- libabz-0.6.1/include/abz/iptables.h 2005-09-10 17:16:05.000000000 +0000 +++ libabz-0.6.1.1/include/abz/iptables.h 2005-10-10 10:53:41.000000000 +0000 @@ -46,7 +46,7 @@ * to retrieve error messages. */ extern int iptables_add (struct batch *batch,const char *fmt, ...) - __attribute__ ((weak, alias ("batch_add"), format (printf,2,3))); + __attribute__ ((format (printf,2,3))); /* * Append parameters to the last iptables command in the batch. @@ -55,13 +55,12 @@ * to retrieve error messages. */ extern int iptables_append (struct batch *batch,const char *fmt, ...) - __attribute__ ((weak, alias ("batch_append"), format (printf,2,3))); + __attribute__ ((format (printf,2,3))); /* * Free resources allocated for this iptables batch. */ -extern void iptables_destroy (struct batch *batch) - __attribute__ ((weak, alias ("batch_destroy"))); +extern void iptables_destroy (struct batch *batch); /* * Execute iptables batch. diff -urN libabz-0.6.1/include/abz/tc.h libabz-0.6.1.1/include/abz/tc.h --- libabz-0.6.1/include/abz/tc.h 2005-09-10 17:16:34.000000000 +0000 +++ libabz-0.6.1.1/include/abz/tc.h 2005-10-10 10:55:49.000000000 +0000 @@ -46,7 +46,7 @@ * to retrieve error messages. */ extern int tc_add (struct batch *batch,const char *fmt, ...) - __attribute__ ((weak, alias ("batch_add"), format (printf,2,3))); + __attribute__ ((format (printf,2,3))); /* * Append parameters to the last tc command in the batch. @@ -55,13 +55,12 @@ * to retrieve error messages. */ extern int tc_append (struct batch *batch,const char *fmt, ...) - __attribute__ ((weak, alias ("batch_append"), format (printf,2,3))); + __attribute__ ((format (printf,2,3))); /* * Free resources allocated for this tc batch. */ -extern void tc_destroy (struct batch *batch) - __attribute__ ((weak, alias ("batch_destroy"))); +extern void tc_destroy (struct batch *batch); /* * Execute tc batch. @@ -73,7 +72,6 @@ * Returns 0 if successful, -1 if some error occurred. Call abz_get_error() * to retrieve error messages. */ -extern int tc_commit (struct batch *batch) - __attribute__ ((weak, alias ("batch_commit"))); +extern int tc_commit (struct batch *batch); #endif /* #ifndef ABZ_TC_H */ diff -urN libabz-0.6.1/src/batch.c libabz-0.6.1.1/src/batch.c --- libabz-0.6.1/src/batch.c 2005-09-10 17:40:49.000000000 +0000 +++ libabz-0.6.1.1/src/batch.c 2005-10-10 10:55:29.000000000 +0000 @@ -339,3 +339,18 @@ return (0); } +int iptables_add (struct batch *batch,const char *fmt, ...) + __attribute__ ((weak, alias ("batch_add"))); +int iptables_append (struct batch *batch,const char *fmt, ...) + __attribute__ ((weak, alias ("batch_append"))); +void iptables_destroy (struct batch *batch) + __attribute__ ((weak, alias ("batch_destroy"))); +int tc_add (struct batch *batch,const char *fmt, ...) + __attribute__ ((weak, alias ("batch_add"))); +int tc_append (struct batch *batch,const char *fmt, ...) + __attribute__ ((weak, alias ("batch_append"))); +void tc_destroy (struct batch *batch) + __attribute__ ((weak, alias ("batch_destroy"))); +int tc_commit (struct batch *batch) + __attribute__ ((weak, alias ("batch_commit"))); +
signature.asc
Description: Digital signature