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

RE: 2.1.12 result.c goto leave ?



Sounds like you're compiling with a C++ compiler, and it's treating "leave"
as a reserved word. "leave" is not a reserved word in ANSI C; your C compiler
should not be tripping on this. If you can't give the compiler a flag to make
it act like a real C compiler, you can always edit the file and rename
"leave" to some other innocuous label. It's silly that you should have to do
this though, you should complain to your compiler vendor.

  -- 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 Paul Reilly

> I'm compiling OpenLDAP 2.1.12 on Tru64 Unix 5.1 with OpenSSL 0.9.6h in
> /local/ssl and Berkeley DB 4.1.24 in /local but it fails with result.c
> goto leave
>
> ./configure --prefix=/local/openldap --with-tls --enable-crypt
> make depend
> make
>
> ...
> .....
>
> cc -g -I../../include -I../../include -DLDAP_R_COMPILE -I./../libldap
> -I/usr/local/include -I/usr/local/ssl/include -DLDAP_LIBRARY
> -c result.c
> -DPIC -o .libs/result.lo
> cc: Error: result.c, line 853: Identifier expected but not found.
> (idexpected)
>                 goto leave;
> ---------------------^
> cc: Error: result.c, line 896: Missing ";". (nosemi)
> leave:
> -----^
> cc: Error: result.c, line 896: This leave statement is not
> within a try
> statement. (noleavetarg)
> leave:
> ^
> make[2]: *** [result.lo] Error 1
> make[2]: Leaving directory
> `/sources/BUILD/openldap-2.1.12/libraries/libldap_r'
> make[1]: *** [all-common] Error 1
>
>
> any ideas?
>
> Paul
>
>