Skip to content
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

no member named 'secure_getenv' in the global namespace #7

Open
pearu opened this issue Aug 26, 2019 · 0 comments
Open

no member named 'secure_getenv' in the global namespace #7

pearu opened this issue Aug 26, 2019 · 0 comments
Labels
with a solution Issue has a solution

Comments

@pearu
Copy link
Contributor

pearu commented Aug 26, 2019

In file included from /home/pearu/work/git/omnisci/omniscidb-internal/SQLFrontend/omnisql.cpp:64:
/home/pearu/work/git/omnisci/omniscidb-internal/SQLFrontend/CommandHistoryFile.h:43:14: error: no member named 'secure_getenv' in the global namespace; did you mean '__secure_getenv'?
    return ::secure_getenv(env_var_name);
           ~~^~~~~~~~~~~~~
             __secure_getenv
/home/pearu/work/miniconda3/envs/omniscidb-cpu-dev/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/sysroot/usr/include/stdlib.h:586:14: note: '__secure_getenv' declared here
extern char *__secure_getenv (__const char *__name)

Solution:

export CXXFLAGS="$CXXFLAGS -Dsecure_getenv=getenv"
@pearu pearu added the with a solution Issue has a solution label Aug 26, 2019
@pearu pearu changed the title [Failure] no member named 'secure_getenv' in the global namespace no member named 'secure_getenv' in the global namespace Aug 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
with a solution Issue has a solution
Projects
None yet
Development

No branches or pull requests

1 participant