Closed wookietreiber closed 5 years ago
Note, at a machine that runs on CentOS 6 with gcc 4.9.2 the compilation shows neither these warnings nor fails at linking.
hi, did you resolve the problem? I've tried into two different machines with gcc v 5.3 (linux mint 17.3) and another one with gcc v4.4 (CentOS release 6.8) but I have the same error
Well, there is a very simple solution, and that is to compile with an explicit, older C standard, like -std=gnu89
. You can apply this solution by setting CFLAGS
when running configure
, e.g.:
./configure CFLAGS="-std=gnu89 -g -O2" --prefix=/usr
Note: I also added the -g -O2
flags because those are the standard ones that would otherwise be overwritten when supplying CFLAGS
like that
However, this just avoids the issue by not talking about it - there is a reason why this was addressed by later C standards. I would not accept this as a solution to this issue. I would rather patch rnaz to comply to newer C standards.
I am still getting the same error even after configuring using
./configure CFLAGS="-std=gnu89 -g -O2" --prefix=/usr
Anything that I am missing?
These issues should have been resolved with version 2.1.1
I recently tried to build rnaz/2.1 on an up-to-date Arch Linux using gcc 5.1.0 and I get a lot of warnings like this one for both
HairpinE
andLoopEnergy
:Also, linking fails, though this is maybe related to the abovementioned warnings: