guedes / ldap_fdw

A LDAP Foreign Data Wrapper for PostgreSQL
31 stars 11 forks source link

OSX installation #11

Closed jamiehodge closed 2 years ago

jamiehodge commented 11 years ago

Make is failing as follows:


cc -I/usr/local/Cellar/ossp-uuid/1.6.2/include -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv  -I. -I. -I/usr/local/Cellar/postgresql/9.2.3/include/server -I/usr/local/Cellar/postgresql/9.2.3/include/internal -I/usr/include/libxml2   -c -o src/ldap_fdw.o src/ldap_fdw.c
In file included from src/ldap_fdw.c:15:
src/ldap_fdw.h:67:14: error: conflicting types for 'ldap_init'
extern LDAP *ldap_init(char *, int);
             ^
/usr/include/ldap.h:1517:1: note: previous declaration is here
ldap_init LDAP_P(( /* deprecated, use ldap_create or ldap_initialize */
^
In file included from src/ldap_fdw.c:15:
src/ldap_fdw.h:69:15: error: conflicting types for 'ldap_get_values'
extern char **ldap_get_values(LDAP *, LDAPMessage *, char *);
              ^
/usr/include/ldap.h:1826:1: note: previous declaration is here
ldap_get_values LDAP_P((        /* deprecated, use ldap_get_values_len */
^
2 errors generated.
make: *** [src/ldap_fdw.o] Error 1
guedes commented 11 years ago

Sad, but I'm without access to a OS X box :( .BTW, I want refactor the code to use the new methods from ldap lib.

Thanks for report!

jamiehodge commented 11 years ago

Is there anything I can do to help you vicariously debug the OSX installation? Stack traces, etc.

Jamie

jamiehodge commented 11 years ago

Can I share stack traces, etc to help you get his running on OSX?

guedes commented 11 years ago

Please, do! I'm cleaning some code, maybe I'll have something working in a few days, just a little busy last weeks, sorry :(

jamiehodge commented 11 years ago

No complaints! We all are. I would love to use this for a project.

Xof commented 8 years ago

The issue is that the FDW defines its own signatures for ldap_init and ldap_get_values, which conflict with (at least) the OS X ldap.h instances. Is there a particular reason to define them locally?