Summary: | sci-biology/wise-2.4.0_alpha-r1 - int (const char , const char ); ISO C99 and later do not support | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> |
Component: | Current packages | Assignee: | Gentoo Science Biology related packages <sci-biology> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | jy6x2b32pie9 |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 870412 | ||
Attachments: |
emerge-info.txt
emerge-history.txt environment etc.clang.tar.bz2 etc.portage.tar.bz2 sci-biology:wise-2.4.0_alpha-r1:20221201-104434.log temp.tar.bz2 partial patch for C99 problems |
Description
Toralf Förster
2022-12-01 20:15:33 UTC
Created attachment 838815 [details]
emerge-info.txt
Created attachment 838817 [details]
emerge-history.txt
Created attachment 838819 [details]
environment
Created attachment 838821 [details]
etc.clang.tar.bz2
Created attachment 838823 [details]
etc.portage.tar.bz2
Created attachment 838825 [details]
sci-biology:wise-2.4.0_alpha-r1:20221201-104434.log
Created attachment 838827 [details]
temp.tar.bz2
Created attachment 889363 [details, diff]
partial patch for C99 problems
Due to being a mess of generated C code with weird re-definitions and dependencies, solving latest error uncovered is beyond my capacity.
clang -O2 -pipe -march=native -Werror=implicit-function-declaration -Werror=implicit-int -Werror=int-conversion -Werror=incompatible-pointer-types -Wno-incompatible-pointer-types-discards-qualifiers -Wno-deprecated-declarations -c -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I../base/ -I../dynlibsrc/ genome_evidence.c
genome_evidence.dy:61:1: warning: non-void function does not return a value [-Wreturn-type]
61 | }
| ^
1 warning generated.
clang -O2 -pipe -march=native -Werror=implicit-function-declaration -Werror=implicit-int -Werror=int-conversion -Werror=incompatible-pointer-types -Wno-incompatible-pointer-types-discards-qualifiers -Wno-deprecated-declarations -c -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I../base/ -I../dynlibsrc/ est_evidence.c
est_evidence.dy:142:16: error: incompatible function pointer types assigning to 'int (*)(void *)' from 'Wise2_EstEvidence *(Wise2_EstEvidence *)'
(aka 'struct Wise2_EstEvidence *(struct Wise2_EstEvidence *)') [-Wincompatible-function-pointer-types]
142 | in->geu_free = free_EstEvidence;
| ^ ~~~~~~~~~~~~~~~~
1 error generated.
Attached patch solves missing includes, wrong int sizes and one cast around sockaddr.
I hope that people with more care than me would solve remaining problem of this software (with long-dead upstream site)
On that note, source bundles dyc compiler and if you edit .dy files, it expects to have it to rebuild .h and .c files; errors in source code point to .dy files. |