[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
[Q] Multiple files and unresolved externals
Hi,
I've just started trying to compile slapd for NT and have a question that
perhaps someone can answer. I've checked out the latest (as of 5/28/99)
source from CVS and downloaded and compiled the Berkeley DB and Posix regex
libs needed needed to compile the NT port. I am using MSVC 5.0 projects
included with the devel distribution. I've been able to compile everything
OK, but when I get to the linking stage, the build fails because it can't
find a few functions:
> Creating library Debug/slapd.lib and object Debug/slapd.exp
> libslapd.lib(schemaparse.obj) : error LNK2001: unresolved external symbol
> _ldap_scherr2str
> libslapd.lib(schemaparse.obj) : error LNK2001: unresolved external symbol
> _ldap_str2objectclass
> libslapd.lib(schemaparse.obj) : error LNK2001: unresolved external symbol
> _ldap_str2attributetype
> Debug/slapd.exe : fatal error LNK1120: 3 unresolved externals
After a little bit of snooping, I found that the functions in question were
defined in schema.c, but that there were two versions of that file, one in
ldap\libraries\libldap, the other in ldap\servers\slapd. The first one
defined the necessary functions, but the library referenced in the slapd
project referenced the second one. When I tried copying the first version
of schema.c into servers\slapd, I got a different set of unresolved
externals from different files. I then went through the .c files in the
slapd directory to see if there were any more files that had multiple
versions, and, sure enough, found a whole slew of them. (Please see the
list at the end of this message for details.)
I am unfortunately not sure which ones of these files should legitimately
be different and in separate directories, and which (if any) are really
meant to be the same. Can anyone shed some light on this for me? Perhaps
I'm misunderstanding how the source tree is structured and what I need to
do to build slapd. If so, I apologize, but perhaps someone can set me
straight.
Thanks in advance,
Alex Zeltser
PS: Here's the listing of (apparently) duplicate files throughout the
project, just in case it's useful.
========================================================
Directory of c:\ldap\libraries\libldap
05/21/99 09:11p 4,926 abandon.c
Directory of c:\ldap\servers\ldapd
11/04/98 08:47p 1,659 abandon.c
Directory of c:\ldap\servers\slapd
04/23/99 11:22a 2,008 abandon.c
Directory of c:\ldap\servers\slapd\back-bdb2
03/05/99 03:57p 722 abandon.c
Directory of c:\ldap\servers\slapd\back-ldbm
11/15/98 01:40p 122 abandon.c
Directory of c:\ldap\servers\slapd\back-shell
03/21/99 10:38p 1,542 abandon.c
Total Files Listed:
6 File(s) 10,979 bytes
Directory of c:\ldap\libraries\libldap
05/18/99 04:12p 4,283 add.c
Directory of c:\ldap\servers\ldapd
11/15/98 01:40p 3,066 add.c
Directory of c:\ldap\servers\slapd
04/12/99 09:08p 5,290 add.c
Directory of c:\ldap\servers\slapd\back-bdb2
04/19/99 01:47a 6,567 add.c
Directory of c:\ldap\servers\slapd\back-ldap
05/25/99 05:35p 2,070 add.c
Directory of c:\ldap\servers\slapd\back-ldbm
04/12/99 09:08p 5,265 add.c
Directory of c:\ldap\servers\slapd\back-perl
01/27/99 07:35p 1,455 add.c
Directory of c:\ldap\servers\slapd\back-shell
01/27/99 07:35p 1,197 add.c
Total Files Listed:
8 File(s) 29,193 bytes
Directory of c:\ldap\servers\slapd
05/28/99 09:56a 12,402 attr.c
Directory of c:\ldap\servers\slapd\back-bdb2
03/01/99 03:33p 4,043 attr.c
Directory of c:\ldap\servers\slapd\back-ldbm
04/05/99 04:55p 4,170 attr.c
Total Files Listed:
3 File(s) 20,615 bytes
Directory of c:\ldap\libraries\libldap
05/21/99 09:11p 3,239 bind.c
Directory of c:\ldap\servers\ldapd
11/15/98 01:40p 6,994 bind.c
Directory of c:\ldap\servers\slapd
05/21/99 09:11p 5,906 bind.c
Directory of c:\ldap\servers\slapd\back-bdb2
04/01/99 05:45p 5,517 bind.c
Directory of c:\ldap\servers\slapd\back-ldap
05/25/99 05:35p 3,046 bind.c
Directory of c:\ldap\servers\slapd\back-ldbm
04/01/99 05:45p 4,785 bind.c
Directory of c:\ldap\servers\slapd\back-perl
01/27/99 07:35p 1,592 bind.c
Directory of c:\ldap\servers\slapd\back-shell
01/25/99 07:32p 1,331 bind.c
Total Files Listed:
8 File(s) 32,410 bytes
Directory of c:\ldap\servers\slapd
11/27/98 11:21a 1,273 ch_malloc.c
Directory of c:\ldap\servers\slurpd
11/15/98 01:40p 2,020 ch_malloc.c
Total Files Listed:
2 File(s) 3,293 bytes
Directory of c:\ldap\libraries\libldap
05/18/99 04:12p 3,894 compare.c
Directory of c:\ldap\servers\ldapd
11/15/98 01:40p 3,333 compare.c
Directory of c:\ldap\servers\slapd
03/08/99 10:15p 2,293 compare.c
Directory of c:\ldap\servers\slapd\back-bdb2
03/05/99 01:25a 2,045 compare.c
Directory of c:\ldap\servers\slapd\back-ldap
05/25/99 05:35p 1,579 compare.c
Directory of c:\ldap\servers\slapd\back-ldbm
01/18/99 08:10p 1,380 compare.c
Directory of c:\ldap\servers\slapd\back-perl
04/03/99 06:16p 1,759 compare.c
Directory of c:\ldap\servers\slapd\back-shell
01/25/99 07:32p 1,189 compare.c
Total Files Listed:
8 File(s) 17,472 bytes
Directory of c:\ldap\contrib\whois++
11/15/98 01:40p 5,428 config.c
Directory of c:\ldap\servers\slapd
05/28/99 05:27a 19,535 config.c
Directory of c:\ldap\servers\slapd\back-bdb2
02/12/99 06:22a 4,858 config.c
Directory of c:\ldap\servers\slapd\back-ldap
05/25/99 05:35p 1,984 config.c
Directory of c:\ldap\servers\slapd\back-ldbm
04/29/99 08:24p 2,824 config.c
Directory of c:\ldap\servers\slapd\back-passwd
02/05/99 12:03a 1,024 config.c
Directory of c:\ldap\servers\slapd\back-perl
04/03/99 06:16p 2,796 config.c
Directory of c:\ldap\servers\slapd\back-shell
02/05/99 12:03a 3,425 config.c
Directory of c:\ldap\servers\slurpd
02/23/99 06:48a 10,286 config.c
Total Files Listed:
9 File(s) 52,160 bytes
Directory of c:\ldap\libraries\libldap
05/21/99 07:11a 2,887 delete.c
Directory of c:\ldap\servers\ldapd
11/15/98 01:40p 2,854 delete.c
Directory of c:\ldap\servers\slapd
03/03/99 09:50a 2,375 delete.c
Directory of c:\ldap\servers\slapd\back-bdb2
04/29/99 05:34p 4,212 delete.c
Directory of c:\ldap\servers\slapd\back-ldap
05/25/99 05:35p 1,523 delete.c
Directory of c:\ldap\servers\slapd\back-ldbm
04/29/99 05:34p 3,732 delete.c
Directory of c:\ldap\servers\slapd\back-perl
01/27/99 07:35p 1,443 delete.c
Directory of c:\ldap\servers\slapd\back-shell
01/25/99 07:32p 1,098 delete.c
Total Files Listed:
8 File(s) 20,124 bytes
Directory of c:\ldap\servers\slapd
03/08/99 10:15p 6,115 entry.c
Directory of c:\ldap\servers\slapd\back-bdb2
04/19/99 01:47a 520 entry.c
Directory of c:\ldap\servers\slapd\back-ldbm
04/12/99 09:15p 484 entry.c
Total Files Listed:
3 File(s) 7,119 bytes
Directory of c:\ldap\libraries\libldap
05/28/99 10:33a 7,092 init.c
Directory of c:\ldap\servers\slapd
04/06/99 12:57p 3,545 init.c
Directory of c:\ldap\servers\slapd\back-bdb2
05/28/99 05:27a 4,532 init.c
Directory of c:\ldap\servers\slapd\back-ldap
05/25/99 05:35p 2,328 init.c
Directory of c:\ldap\servers\slapd\back-ldbm
05/28/99 05:27a 4,111 init.c
Directory of c:\ldap\servers\slapd\back-passwd
03/03/99 08:02a 725 init.c
Directory of c:\ldap\servers\slapd\back-perl
04/03/99 06:16p 2,369 init.c
Directory of c:\ldap\servers\slapd\back-shell
03/03/99 08:02a 1,193 init.c
Total Files Listed:
8 File(s) 25,895 bytes
Directory of c:\ldap\servers\slapd
04/01/99 06:32a 1,112 lock.c
Directory of c:\ldap\servers\slurpd
03/28/99 12:43p 2,462 lock.c
Directory of c:\ldap\db-2.7.5\lock
04/12/99 09:07a 27,023 lock.c
Total Files Listed:
3 File(s) 30,597 bytes
Directory of c:\ldap\libraries\libldap
05/18/99 04:12p 4,393 modify.c
Directory of c:\ldap\servers\ldapd
03/07/99 03:39p 16,767 modify.c
Directory of c:\ldap\servers\slapd
05/18/99 07:00p 4,872 modify.c
Directory of c:\ldap\servers\slapd\back-bdb2
05/26/99 03:19a 8,831 modify.c
Directory of c:\ldap\servers\slapd\back-ldap
05/25/99 05:35p 1,802 modify.c
Directory of c:\ldap\servers\slapd\back-ldbm
05/28/99 10:33a 8,618 modify.c
Directory of c:\ldap\servers\slapd\back-perl
04/03/99 06:16p 2,201 modify.c
Directory of c:\ldap\servers\slapd\back-shell
01/25/99 07:32p 1,657 modify.c
Total Files Listed:
8 File(s) 49,141 bytes
Directory of c:\ldap\libraries\libldap
05/18/99 04:12p 5,490 modrdn.c
Directory of c:\ldap\servers\ldapd
11/15/98 01:40p 3,023 modrdn.c
Directory of c:\ldap\servers\slapd
03/07/99 12:18a 5,956 modrdn.c
Directory of c:\ldap\servers\slapd\back-bdb2
05/26/99 10:33a 12,031 modrdn.c
Directory of c:\ldap\servers\slapd\back-ldap
05/25/99 05:35p 1,751 modrdn.c
Directory of c:\ldap\servers\slapd\back-ldbm
05/26/99 02:59a 12,041 modrdn.c
Directory of c:\ldap\servers\slapd\back-perl
04/03/99 06:16p 2,058 modrdn.c
Directory of c:\ldap\servers\slapd\back-shell
03/05/99 10:14a 1,719 modrdn.c
Total Files Listed:
8 File(s) 44,069 bytes
Directory of c:\ldap\libraries\libldap
05/28/99 10:33a 18,222 result.c
Directory of c:\ldap\servers\ldapd
05/18/99 04:12p 9,432 result.c
Directory of c:\ldap\servers\slapd
05/28/99 10:33a 10,733 result.c
Directory of c:\ldap\servers\slapd\back-shell
11/15/98 01:40p 1,866 result.c
Total Files Listed:
4 File(s) 40,253 bytes
Directory of c:\ldap\libraries\libldap
05/28/99 10:33a 27,087 schema.c
Directory of c:\ldap\servers\slapd
05/28/99 09:56a 11,998 schema.c
Total Files Listed:
2 File(s) 39,085 bytes
Directory of c:\ldap\libraries\libldap
05/21/99 10:20a 16,040 search.c
Directory of c:\ldap\servers\ldapd
05/18/99 04:12p 17,910 search.c
Directory of c:\ldap\servers\slapd
05/28/99 09:56a 4,954 search.c
Directory of c:\ldap\servers\slapd\back-bdb2
04/29/99 03:35p 13,836 search.c
Directory of c:\ldap\servers\slapd\back-ldap
05/26/99 01:45a 4,492 search.c
Directory of c:\ldap\servers\slapd\back-ldbm
04/29/99 03:35p 12,796 search.c
Directory of c:\ldap\servers\slapd\back-passwd
04/28/99 09:50p 6,447 search.c
Directory of c:\ldap\servers\slapd\back-perl
04/03/99 06:16p 2,585 search.c
Directory of c:\ldap\servers\slapd\back-shell
01/25/99 07:32p 1,778 search.c
Total Files Listed:
9 File(s) 80,838 bytes
Directory of c:\ldap\libraries\libldap
05/21/99 09:11p 3,820 unbind.c
Directory of c:\ldap\servers\slapd
03/21/99 10:14p 1,094 unbind.c
Directory of c:\ldap\servers\slapd\back-bdb2
02/12/99 06:22a 621 unbind.c
Directory of c:\ldap\servers\slapd\back-ldap
05/25/99 05:35p 1,540 unbind.c
Directory of c:\ldap\servers\slapd\back-ldbm
11/15/98 01:40p 236 unbind.c
Directory of c:\ldap\servers\slapd\back-perl
02/05/99 12:03a 970 unbind.c
Directory of c:\ldap\servers\slapd\back-shell
02/05/99 12:03a 1,032 unbind.c
Total Files Listed:
7 File(s) 9,313 bytes