Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign uppgbouncer 1.7.0 fails to cross-compile with mingw-w64 #100
Comments
This comment has been minimized.
This comment has been minimized.
chenz
commented
Jan 19, 2016
The issue is with libusual. I hacked together a quick and dirty patch to get it to compile, seems to work ok so far. I also had to set |
This comment has been minimized.
This comment has been minimized.
the patch fixes the arpa/inet.h problem, but it seems that there is still something missing:
|
This comment has been minimized.
This comment has been minimized.
chenz
commented
Jan 20, 2016
Ah yes, I forgot - for
|
This comment has been minimized.
This comment has been minimized.
thank you for your help, this seems to work. |
tkren
closed this
Jan 20, 2016
This comment has been minimized.
This comment has been minimized.
murali05
commented
Feb 5, 2016
Hi, Later I got the below make error even though configure pgbounce as like below lib/usual/tls/tls_client.c: In function Can you please advice , how we can resolve this issue. |
This comment has been minimized.
This comment has been minimized.
chenz
commented
Feb 5, 2016
Maybe an issue with the shell? Maybe try setting the environment variables separately
|
This comment has been minimized.
This comment has been minimized.
murali05
commented
Feb 12, 2016
Hi, Thanks for your response. To fix the above error , I had to define AI_ADDRCONFIG in my Mingw installation header file ( MinGW/include/ws2tcpip.h ). But after this I got again below build error. objs/pgbouncer/lib/usual/string.o: In function So here I tried to search for strnlen keyword in my Mingw header files but I didn't get any such keyword. At the same time I can found strlen but not strnlen. That means strnlen is not supported by MinGW version 3.14 . Can you please suggest me how can I over come above issue. |
markokr
reopened this
Feb 12, 2016
This comment has been minimized.
This comment has been minimized.
Current master seems to build for me with mingw-w64-dev 2.0.1-1 and configured with
-lgdi is because of static openssl. So problems with _mkgmtime and strnlen are caused by something else. |
This comment has been minimized.
This comment has been minimized.
murali05
commented
Feb 15, 2016
Hi, |
This comment has been minimized.
This comment has been minimized.
Actually, configure already checks for strnlen and libusual should replace it if not found. So it seems in your case configure did find it but linker does not... Do you have HAVE_STRNLEN defined in your config.h? |
This comment has been minimized.
This comment has been minimized.
chenz
commented
Feb 15, 2016
It seems this and the missing AI_ADDRCONFIG definition is due to murali05 using (obsolete?) mingw32, whereas everyone else here uses mingw-w64. |
This comment has been minimized.
This comment has been minimized.
Closing. Compiles-for-me. |
tkren commentedJan 5, 2016
Cross-compiling pgbouncer 1.7.0 fails with the following setup:
After configuring pgbouncer with
make
fails with