[DRE-maint] Bug#751514: ruby-hpricot: Possible excess arguments when calling hpricot_css

Michael Tautschnig mt at debian.org
Fri Jun 13 14:50:16 UTC 2014


Package: ruby-hpricot
Version: 0.8.6-5
Usertags: goto-cc

During a rebuild of all Debian packages in a clean sid chroot (using cowbuilder
and pbuilder) the build failed with the following error. Please note that we
use our research compiler tool-chain (using tools from the cbmc package), which
permits extended reporting on type inconsistencies at link time.

[...]
gcc -shared -o hpricot_scan.so hpricot_css.o hpricot_scan.o -L. -L/usr/lib/x86_64-linux-gnu -L. -Wl,-z,relro -L/build/ruby2.1-R1fHdQ/ruby2.1-2.1.2/debian/lib -fstack-protector -rdynamic -Wl,-export-dynamic    -lruby-2.1 -lc  -lpthread -lgmp -ldl -lcrypt -lm   -lc

error: conflicting function declarations "hpricot_css"
old definition in module hpricot_css file hpricot_css.rl line 94
unsigned long int (unsigned long int self, unsigned long int mod, unsigned long int str, unsigned long int node)
new definition in module hpricot_scan file hpricot_scan.rl line 23
unsigned long int (unsigned long int, unsigned long int, unsigned long int, unsigned long int, unsigned long int)
Makefile:232: recipe for target 'hpricot_scan.so' failed
make[1]: *** [hpricot_scan.so] Error 64

Observe that the declaration in hpricot_scan.rl lists 5 parameters, even though
the actual implementation in hpricot_css only accepts four parameters. This will
work ok, but may point at some issues and a possible mixup of arguments.

Best,
Michael

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 859 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-ruby-extras-maintainers/attachments/20140613/c37060f5/attachment.sig>


More information about the Pkg-ruby-extras-maintainers mailing list