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

implicit declaration is invalid #3

Open
tlskr opened this issue Jul 21, 2021 · 7 comments
Open

implicit declaration is invalid #3

tlskr opened this issue Jul 21, 2021 · 7 comments
Assignees

Comments

@tlskr
Copy link

tlskr commented Jul 21, 2021

When I run make install, I get an error:

parquet_fdw.c:97:5: error: implicit declaration of function 'on_proc_exit' is invalid in C99 [-Werror,-Wimplicit-function-declaration]

@t-kataym
Copy link
Contributor

On my environment, it is a warning and fixed it on the branch fix_implicit_declaration.
The modification is 7094f11.
Append #include "storage/ipc.h" in parquet_fdw.c.

Could you try it?

@t-kataym t-kataym assigned t-kataym and tlskr and unassigned t-kataym Jul 26, 2021
@tlskr
Copy link
Author

tlskr commented Jul 26, 2021

Thank you for looking at this.

make install works on branch fix_implicit_declaration, but then CREATE EXTENSION parquet_s3_fdw does not. In psql it gets this error:

ERROR:  could not load library "/Applications/Postgres.app/Contents/Versions/13/lib/postgresql/parquet_s3_fdw.so": dlopen(/Applications/Postgres.app/Contents/Versions/13/lib/postgresql/parquet_s3_fdw.so, 10): Library not loaded: @rpath/libaws-cpp-sdk-core.dylib
  Referenced from: /Applications/Postgres.app/Contents/Versions/13/lib/postgresql/parquet_s3_fdw.so
  Reason: image not found

@t-kataym
Copy link
Contributor

t-kataym commented Jul 27, 2021

Thank you for your confirmation.

In psql it gets this error:

Sorry, I don't know Mac OS well. Please let me advice you on Linux case in some places.
Please confirm which libaws-cpp-sdk-core.dylib are loaded by parquet_s3_fdw.so.

otool -L parquet_s3_fdw.so | grep libaws-cpp-sdk

If not found, please confirm that your system can recognize the library aws-cpp-sdk-core.
On Linux (I don't know the corresponding command for Mac OS),

ldconfig -p | grep libaws-cpp-sdk

@tlskr
Copy link
Author

tlskr commented Jul 27, 2021

Mac OS doesn't have ldconfig, and I can't find another way to check if the system can recognize the library aws-cpp-sdk-core. (I do think I have installed it, I just don't have the C skills to verify it is available to the system.)

@t-kataym
Copy link
Contributor

Could you tell me where you installed aws libraries in?

@tlskr
Copy link
Author

tlskr commented Jul 28, 2021

They seem to be install in /usr/local/lib/cmake, which has many subdirectories named aws-cpp-sdk...

@t-kataym
Copy link
Contributor

Could you tell me how you made parquet_s3_fdw.so?
(Did you execute make without modifying Makefile ? Did you specify any environment variables?)

I would like to know why the build tool could recognize libaws-cpp-sdk-core library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants