[Pkg-openldap-devel] Bug#579221: openldap: FTBFS on kfreebsd-*: error: missing binary operator before token "long"

Cyril Brulebois kibi at debian.org
Mon Apr 26 10:57:38 UTC 2010


Source: openldap
Version: 2.4.21-1
Severity: serious
Justification: FTBFS
User: debian-bsd at lists.debian.org
Usertags: kfreebsd

Hi,

your package no longer builds on kfreebsd-*:
| /build/buildd-openldap_2.4.21-1-kfreebsd-amd64-VWAqZY/openldap-2.4.21/libraries/liblutil/detach.c:131:7: error: missing binary operator before token "long"
| make[3]: *** [detach.o] Error 1

Full build logs:
  https://buildd.debian.org/status/package.php?suite=unstable&p=openldap

I think it's just a matter of changing if FOO into if defined(FOO) as
seen in the attached patch. Once applied, the build was successful on my
porterbox.

Mraw,
KiBi.
-------------- next part --------------
--- a/libraries/liblutil/detach.c
+++ b/libraries/liblutil/detach.c
@@ -128,7 +128,7 @@
 
 #ifdef HAVE_SETSID
 		(void) setsid();
-#elif TIOCNOTTY
+#elif defined(TIOCNOTTY)
 		if ( (sd = open( "/dev/tty", O_RDWR )) != -1 ) {
 			(void) ioctl( sd, TIOCNOTTY, NULL );
 			(void) close( sd );


More information about the Pkg-openldap-devel mailing list