Mailinglist Archive: opensuse-programming-de (20 mails)

< Previous Next >
Re: [opensuse-programming-de] Compilerfehler undefined reference to
  • From: Andreas Roth <aroth@xxxxxxxxxxxxxxxxx>
  • Date: Sun, 10 Aug 2008 09:18:28 +0200
  • Message-id: <200808100918.29399.aroth@xxxxxxxxxxxxxxxxx>
On Saturday 09 August 2008 21:35:27 Georg Wallner wrote:
Hallo,

ich versuch das File ldap2zone.c zu compilieren.
http://www.venaas.no/dns/ldap2zone/

Als Fehler meldet der Compiler nach dem Aufruf:
gcc -I/usr/incldude -L/usr/lib/ ldap2zone.c

ldap2zone1.c:(.text+0xb1b): undefined reference to `ldap_initialize'
ldap2zone1.c:(.text+0xb73): undefined reference to `ldap_simple_bind_s'
ldap2zone1.c:(.text+0xc03): undefined reference to `ldap_search'
ldap2zone1.c:(.text+0xc63): undefined reference to `ldap_first_entry'
ldap2zone1.c:(.text+0xc77): undefined reference to `ldap_msgfree'
ldap2zone1.c:(.text+0xcac): undefined reference to `ldap_get_values'
ldap2zone1.c:(.text+0xcde): undefined reference to `ldap_result'
ldap2zone1.c:(.text+0xcf6): undefined reference to `ldap_msgfree'
ldap2zone1.c:(.text+0xd90): undefined reference to `ldap_value_free'
ldap2zone1.c:(.text+0xdb6): undefined reference to `ldap_value_free'
ldap2zone1.c:(.text+0xe41): undefined reference to `ldap_search'
ldap2zone1.c:(.text+0xea1): undefined reference to `ldap_first_entry'
ldap2zone1.c:(.text+0xeb5): undefined reference to `ldap_msgfree'
ldap2zone1.c:(.text+0xeea): undefined reference to `ldap_get_values_len'
ldap2zone1.c:(.text+0xf11): undefined reference to `ldap_get_values'
ldap2zone1.c:(.text+0xf55): undefined reference to `ldap_first_attribute'
ldap2zone1.c:(.text+0xfc7): undefined reference to `ldap_memfree'
ldap2zone1.c:(.text+0x101e): undefined reference to `ldap_get_values_len'
ldap2zone1.c:(.text+0x10ce): undefined reference to `ldap_value_free_len'
ldap2zone1.c:(.text+0x10d9): undefined reference to `ldap_memfree'
ldap2zone1.c:(.text+0x10f5): undefined reference to `ldap_next_attribute'
ldap2zone1.c:(.text+0x1122): undefined reference to `ber_free'
ldap2zone1.c:(.text+0x1133): undefined reference to `ldap_value_free'
ldap2zone1.c:(.text+0x113e): undefined reference to `ldap_value_free_len'
ldap2zone1.c:(.text+0x1149): undefined reference to `ldap_msgfree'
ldap2zone1.c:(.text+0x1172): undefined reference to `ldap_result'
ldap2zone1.c:(.text+0x118a): undefined reference to `ldap_msgfree'
/tmp/ccg8RNKk.o: In function `ldap_result_check':
ldap2zone1.c:(.text+0x11f1): undefined reference to `ldap_perror'
ldap2zone1.c:(.text+0x11fc): undefined reference to `ldap_unbind_s'
collect2: ld returned 1 exit status

Ich hab das openldap-devel Paket installiert

Danke für die Hilfe.

Georg
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-programming-de+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-programming-de+help@xxxxxxxxxxxx

Du musst gcc mit dem Parameter -lldap -llber aufrufen, damit er auch die LDAP-
Libs sucht und zu deinem Programm linkt.

Viel Spass,
Andreas

---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-programming-de+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-programming-de+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups
References