Skip to content

i cant compile sqlc because pg_query analizer package have no compatibility with /user/include/string.h file #2689

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

Closed
martirosharutyunyan opened this issue Sep 4, 2023 · 2 comments
Labels
bug Something isn't working triage New issues that hasn't been reviewed

Comments

@martirosharutyunyan
Copy link

martirosharutyunyan commented Sep 4, 2023

Version

1.20.0

What happened?

github.com/pganalyze/pg_query_go/v4/parser

src_port_snprintf.c:374:1: error: conflicting types for ‘strchrnul’; have ‘const char *(const char *, int)’
374 | strchrnul(const char *s, int c)
| ^~~~~~~~~
In file included from ../../../../go/pkg/mod/github.com/pganalyze/pg_query_go/[email protected]/parser/include/c.h:61,
from src_port_snprintf.c:62:
/usr/include/string.h:286:14: note: previous declaration of ‘strchrnul’ with type ‘char *(const char *, int)’
286 | extern char *strchrnul (const char *__s, int __c)
| ^~~~~~~~~
cc1: note: unrecognized command-line option ‘-Wno-unknown-warning-option’ may have been intended to silence earlier diagnostics
cc1: note: unrecognized command-line option ‘-Wno-deprecated-non-prototype’ may have been intended to silence earlier diagnostics

Relevant log output

No response

Database schema

No response

SQL queries

No response

Configuration

No response

Playground URL

No response

What operating system are you using?

Manjaro KDE Plasma

What database engines are you using?

No response

What type of code are you generating?

No response

@martirosharutyunyan martirosharutyunyan added bug Something isn't working triage New issues that hasn't been reviewed labels Sep 4, 2023
@orisano
Copy link
Contributor

orisano commented Sep 4, 2023

Duplicate of #2591
Will be resolved in the next release on 9/6.

@martirosharutyunyan
Copy link
Author

Duplicate of #2591 Will be resolved in the next release on 9/6.

ok thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage New issues that hasn't been reviewed
Projects
None yet
Development

No branches or pull requests

3 participants