[Date Prev][Date Next] [Chronological] [Thread] [Top]

RE: make problem



There's a "-Ddef" in your compile line that doesn't belong there. I'm curious
about where it came from, as configure never generates this and you're not
the first person to be tripped up by this problem. Can you trace your
configure / make depend / make steps and locate what generated that
definition?

  -- Howard Chu
  Chief Architect, Symas Corp.       Director, Highland Sun
  http://www.symas.com               http://highlandsun.com/hyc
  Symas: Premier OpenSource Development and Support

> -----Original Message-----
> From: owner-openldap-software@OpenLDAP.org
> [mailto:owner-openldap-software@OpenLDAP.org]On Behalf Of Jon Roberts
> Sent: Thursday, February 13, 2003 1:35 PM
> To: openldap-software@OpenLDAP.org
> Subject: make problem
>
>
> I am trying to be a good openldap citizen by abandoning RPM's and
> rolling my own. I was able to get so far with the latest stable
> distribution (2.1.12), but it balks at make, with:
>
> ...
> make[3]: Entering directory
> `/home/jon/tmp/openldap/openldap-2.1.12/servers/slapd/back-ldbm'
> /bin/sh /home/jon/tmp/openldap/openldap-2.1.12/libtool
> --mode=compile
> gcc -O -g -I../../../include        -I../../../include -I.. -I./..
> -I/usr/include -Ddef    -c idl.c
> mkdir .libs
> gcc -O -g -I../../../include -I../../../include -I.. -I./..
> -I/usr/include -Ddef -c idl.c  -fPIC -DPIC -o .libs/idl.lo
> In file included from ../slap.h:1833,
>                   from idl.c:15:
> ../proto-slap.h:627: parse error before `1'
> ../proto-slap.h:633: parse error before `1'
> ../proto-slap.h:997: parse error before `1'
> ../proto-slap.h:1003: parse error before `1'
> make[3]: *** [idl.lo] Error 1
> make[3]: Leaving directory
> `/home/jon/tmp/openldap/openldap-2.1.12/servers/slapd/back-ldbm'
> make[2]: *** [.backend] Error 1
> make[2]: Leaving directory
> `/home/jon/tmp/openldap/openldap-2.1.12/servers/slapd'
> make[1]: *** [all-common] Error 1
> make[1]: Leaving directory
> `/home/jon/tmp/openldap/openldap-2.1.12/servers'
> make: *** [all-common] Error 1
>
> I checked the list archives, and somebody had the exact same problem
> last month, but got no (posted) response:
>
> http://www.openldap.org/lists/openldap-software/200301/msg00414.html
>
> If you didn't believe him, you now have an n of 2. What's
> more, I have a
> totally different platform (RH linux 7.2), a slightly different
> environment, and different configure options. I used:
>
> setenv CC gcc
> setenv CFLAGS "-O -g"
> setenv CPPFLAGS "-I/usr/include -Ddef"
> setenv LDFLAGS "-L/usr/lib"
>
> and options:
>
> --enable-crypt
> --with-tls
> --disable-bdb
> --enable-ldbm
> --with-ldbm-api=gdbm
>
> I'm not at all familiar with the source yet, but it looks
> like it may be
> an issue with the variable 'slap_syntax_defs_rec'. Anybody
> have any ideas?
>
> Jon Roberts
> www.mentata.com
>
>