comp.lang.ada
 help / color / mirror / Atom feed
* GNATCOLL 2016 installation problem.
@ 2018-05-06 15:35 eduardsapotski
  2018-05-06 17:48 ` Dmitry A. Kazakov
  2018-05-10  8:18 ` eduardsapotski
  0 siblings, 2 replies; 4+ messages in thread
From: eduardsapotski @ 2018-05-06 15:35 UTC (permalink / raw)


I need GNATCOLL only to connect to the database PostgreSQL. 

OS - CentOS 6.9 

$> ./configure prefix=/usr/gnat --with-postgresql="/usr/pgsql-10/lib/libpq.a" -without-gtk --without-sqlite --without-python --disable-projects --disable-pygtk

$> make

I get errors:

libgnatcoll_postgres.so: undefined reference to `ldap_get_values_len'
libgnatcoll_postgres.so: undefined reference to `ldap_result'
libgnatcoll_postgres.so: undefined reference to `ldap_value_free_len'
...

As I understand these functions are described in the file ldap.h:

$> find / -name ldap.h
/usr/lib64/evolution-openldap/include/ldap.h
/usr/include/ldap.h

What is the problem?

Thanks!


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: GNATCOLL 2016 installation problem.
  2018-05-06 15:35 GNATCOLL 2016 installation problem eduardsapotski
@ 2018-05-06 17:48 ` Dmitry A. Kazakov
  2018-05-10  8:18 ` eduardsapotski
  1 sibling, 0 replies; 4+ messages in thread
From: Dmitry A. Kazakov @ 2018-05-06 17:48 UTC (permalink / raw)


On 2018-05-06 17:35, eduardsapotski@gmail.com wrote:
> I need GNATCOLL only to connect to the database PostgreSQL.
> 
> OS - CentOS 6.9
> 
> $> ./configure prefix=/usr/gnat --with-postgresql="/usr/pgsql-10/lib/libpq.a" -without-gtk --without-sqlite --without-python --disable-projects --disable-pygtk
> 
> $> make
> 
> I get errors:
> 
> libgnatcoll_postgres.so: undefined reference to `ldap_get_values_len'
> libgnatcoll_postgres.so: undefined reference to `ldap_result'
> libgnatcoll_postgres.so: undefined reference to `ldap_value_free_len'
> ...
> 
> As I understand these functions are described in the file ldap.h:
> 
> $> find / -name ldap.h
> /usr/lib64/evolution-openldap/include/ldap.h
> /usr/include/ldap.h
> 
> What is the problem?

Apparently you must link against libldap, for whatever reason they use 
it. Pass -lldap to the linker.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: GNATCOLL 2016 installation problem.
  2018-05-06 15:35 GNATCOLL 2016 installation problem eduardsapotski
  2018-05-06 17:48 ` Dmitry A. Kazakov
@ 2018-05-10  8:18 ` eduardsapotski
  2018-05-10  8:56   ` Dmitry A. Kazakov
  1 sibling, 1 reply; 4+ messages in thread
From: eduardsapotski @ 2018-05-10  8:18 UTC (permalink / raw)


OMG. I don't know what to try anymore.

Run the command "make" and get to the end:

gprbuild -p -m -j0 -XLIBRARY_TYPE=relocatable -XGnatcoll_Build=Production -q -Psrc/gnatcoll_tools

/root/downloads/gnatcoll-gpl-2016-src/src/lib/postgres/relocatable//libgnatcoll_postgres.so: undefined reference to `ldap_get_values_len'
/root/downloads/gnatcoll-gpl-2016-src/src/lib/postgres/relocatable//libgnatcoll_postgres.so: undefined reference to `ldap_result'
/root/downloads/gnatcoll-gpl-2016-src/src/lib/postgres/relocatable//libgnatcoll_postgres.so: undefined reference to `ldap_value_free_len'
/root/downloads/gnatcoll-gpl-2016-src/src/lib/postgres/relocatable//libgnatcoll_postgres.so: undefined reference to `ldap_search_st'
/root/downloads/gnatcoll-gpl-2016-src/src/lib/postgres/relocatable//libgnatcoll_postgres.so: undefined reference to `ldap_init'
/root/downloads/gnatcoll-gpl-2016-src/src/lib/postgres/relocatable//libgnatcoll_postgres.so: undefined reference to `ldap_msgfree'
/root/downloads/gnatcoll-gpl-2016-src/src/lib/postgres/relocatable//libgnatcoll_postgres.so: undefined reference to `ldap_unbind'
/root/downloads/gnatcoll-gpl-2016-src/src/lib/postgres/relocatable//libgnatcoll_postgres.so: undefined reference to `ldap_count_entries'
/root/downloads/gnatcoll-gpl-2016-src/src/lib/postgres/relocatable//libgnatcoll_postgres.so: undefined reference to `ldap_set_option'
/root/downloads/gnatcoll-gpl-2016-src/src/lib/postgres/relocatable//libgnatcoll_postgres.so: undefined reference to `ldap_simple_bind'
/root/downloads/gnatcoll-gpl-2016-src/src/lib/postgres/relocatable//libgnatcoll_postgres.so: undefined reference to `ldap_err2string'
/root/downloads/gnatcoll-gpl-2016-src/src/lib/postgres/relocatable//libgnatcoll_postgres.so: undefined reference to `ldap_first_entry'
collect2: error: ld returned 1 exit status
gprbuild: link of gnatcoll_db2ada.adb failed


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: GNATCOLL 2016 installation problem.
  2018-05-10  8:18 ` eduardsapotski
@ 2018-05-10  8:56   ` Dmitry A. Kazakov
  0 siblings, 0 replies; 4+ messages in thread
From: Dmitry A. Kazakov @ 2018-05-10  8:56 UTC (permalink / raw)


On 2018-05-10 10:18, eduardsapotski@gmail.com wrote:
> OMG. I don't know what to try anymore.
> 
> Run the command "make" and get to the end:
> 
> gprbuild -p -m -j0 -XLIBRARY_TYPE=relocatable -XGnatcoll_Build=Production -q -Psrc/gnatcoll_tools
> 
> /root/downloads/gnatcoll-gpl-2016-src/src/lib/postgres/relocatable//libgnatcoll_postgres.so: undefined reference to `ldap_get_values_len'
> /root/downloads/gnatcoll-gpl-2016-src/src/lib/postgres/relocatable//libgnatcoll_postgres.so: undefined reference to `ldap_result'
> /root/downloads/gnatcoll-gpl-2016-src/src/lib/postgres/relocatable//libgnatcoll_postgres.so: undefined reference to `ldap_value_free_len'
> /root/downloads/gnatcoll-gpl-2016-src/src/lib/postgres/relocatable//libgnatcoll_postgres.so: undefined reference to `ldap_search_st'
> /root/downloads/gnatcoll-gpl-2016-src/src/lib/postgres/relocatable//libgnatcoll_postgres.so: undefined reference to `ldap_init'
> /root/downloads/gnatcoll-gpl-2016-src/src/lib/postgres/relocatable//libgnatcoll_postgres.so: undefined reference to `ldap_msgfree'
> /root/downloads/gnatcoll-gpl-2016-src/src/lib/postgres/relocatable//libgnatcoll_postgres.so: undefined reference to `ldap_unbind'
> /root/downloads/gnatcoll-gpl-2016-src/src/lib/postgres/relocatable//libgnatcoll_postgres.so: undefined reference to `ldap_count_entries'
> /root/downloads/gnatcoll-gpl-2016-src/src/lib/postgres/relocatable//libgnatcoll_postgres.so: undefined reference to `ldap_set_option'
> /root/downloads/gnatcoll-gpl-2016-src/src/lib/postgres/relocatable//libgnatcoll_postgres.so: undefined reference to `ldap_simple_bind'
> /root/downloads/gnatcoll-gpl-2016-src/src/lib/postgres/relocatable//libgnatcoll_postgres.so: undefined reference to `ldap_err2string'
> /root/downloads/gnatcoll-gpl-2016-src/src/lib/postgres/relocatable//libgnatcoll_postgres.so: undefined reference to `ldap_first_entry'
> collect2: error: ld returned 1 exit status
> gprbuild: link of gnatcoll_db2ada.adb failed

Try:

gprbuild -p -m ... -Psrc/gnatcoll_tools -largs -ldap

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-05-10  8:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-06 15:35 GNATCOLL 2016 installation problem eduardsapotski
2018-05-06 17:48 ` Dmitry A. Kazakov
2018-05-10  8:18 ` eduardsapotski
2018-05-10  8:56   ` Dmitry A. Kazakov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox