[Date Prev][Date Next]
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
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
> 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.
> goto leave;
> cc: Error: result.c, line 896: Missing ";". (nosemi)
> cc: Error: result.c, line 896: This leave statement is not
> within a try
> statement. (noleavetarg)
> make: *** [result.lo] Error 1
> make: Leaving directory
> make: *** [all-common] Error 1
> any ideas?