-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
make_fov: CFLAG required for compilation #475
Comments
I would suggest: in the |
Seems to have worked for me cc -fPIC -std=gnu99 -Wall -pedantic -O3 -D_GNU_SOURCE -D_LINUX -D_SVGLIB_ -I/home/marina/superdarn/rst/include/base -I/home/marina/superdarn/rst/include/general -I/home/marina/superdarn/rst/include/superdarn -c trim_snd.c So that would be my suggestion, unless you want it for 1 lib/bin then in its own make file but that is up to you. However, I believe @JWiker had to do this for a fix on his machine so might as well apply on the whole make build system |
That works, thanks for pointing out the makelib.linux line! Now I am running into trouble because the compiler isn't recognizing
|
That's my thought. Could be done outside of the make_fov branch to keep the PR clean and well scoped. |
Sounds good but I am not assigning myself to that PR :p I have other things to do :) but should be simple for anyone todo minus whatever the fix is for complex.h |
Really hopeful someone else has encountered the complex.h error |
Have confirmed that the fix works. |
BUG
When compiling my code on:
LSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID: CentOS
Description: CentOS release 6.10 (Final)
Release: 6.10
Codename: Final
with:
cc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-23)
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
I get the following error:
I tried the suggested fix out in the problem directory, and it appeared to work:
The output from this call is:
rcdf.c: In function ‘RCDFReadZ’:
rcdf.c:221: warning: pointer of type ‘void *’ used in arithmetic
rcdf.c: In function ‘RCDFReadR’:
rcdf.c:332: warning: pointer of type ‘void *’ used in arithmetic
rcdf.c: At top level:
/home/aburrell/bin/cdf38_0-dist/include/cdf.h:81: warning: ‘TT2000NULL’ defined but not used
and none of those are errors, yay! However, I can't find the correct place to add the
-std=gnu99
flag so that the makefiles and make scripts will use it. I tried altering $RSTPATH/build/make/makebin.linux by adding-std=gnu99
to the end of the first line of code. Although this seems like it should work, it doesn't?This is currently preventing me from using RST. There are issues with the newer computer I was using, so we were booted back to an older system. This system has previously successfully installed RST.
Priority
RST version
Does the bug occur in an official RST release?
Example of the bug
See first section
Attempts
See first section
Data Access
N/A
Potential Bug Location
$RSTPATH/build/make/makebin.linux
Potential Solution(s)
See first section
Extra Notes
See first section
The text was updated successfully, but these errors were encountered: