[Pkg-gridengine-devel] Bug#749413: gridengine: Conflicting declarations and excess arguments for function cqueue_summary_xml_handler_init

Michael Tautschnig mt at debian.org
Mon May 26 20:27:15 UTC 2014


Package: gridengine
Version: 6.2u5-7.3
Usertags: goto-cc

During a rebuild of all packages in a clean sid chroot (and cowbuilder+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 -o qstat -g  -DSGE_LOCK_DEBUG -L/usr/lib/ -L. -rdynamic  -L/usr/lib qstat.o parse_job_cull.o parse_qsub.o read_defaults.o qstat_printing.o sge_cqueue_qstat.o show_job.o sig_handlers.o usage.o sge_options.o sge_mt_init.o qstat_cmdline.o qstat_xml.o sge_qstat.o -lsched -levc -lgdi -lsgeobj -lsgeobjd   -lcull -lcomm -lcommlists -luti  -llck -lrmon -ldl  -ljemalloc -lm -lpthread

error: conflicting function declarations "cqueue_summary_xml_handler_init"
old definition in module qstat file ../clients/qstat/qstat_xml.h line 52
signed int (struct cqueue_summary_handler_str *, struct _lList **)
new definition in module qstat_xml file ../clients/qstat/qstat_xml.c line 110
signed int (struct cqueue_summary_handler_str *handler)
../clients/qstat/Makefile:86: recipe for target 'qstat' failed
make[1]: *** [qstat] Error 64

The problem is the declaration in qstat_xml.h:

http://sources.debian.net/src/gridengine/6.2u5-7.3/source/clients/qstat/qstat_xml.h?hl=52#L52

that does not match the definition:

http://sources.debian.net/src/gridengine/6.2u5-7.3/source/clients/qstat/qstat_xml.c?hl=110#L110

Thus the calls in qstat.c pass an unnecessary second argument (which may hint at
actual problems).

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-gridengine-devel/attachments/20140526/46b2897d/attachment.sig>


More information about the Pkg-gridengine-devel mailing list