OpenLDAP
Up to top level
Build   Contrib   Development   Documentation   Historical   Incoming   Software Bugs   Software Enhancements   Web  

Logged in as guest

Viewing Build/6832
Full headers

From: naota@elisp.net
Subject: fix #elif statement
Compose comment
Download message
State:
0 replies:
1 followups: 1

Major security issue: yes  no

Notes:

Notification:


Date: Wed, 16 Feb 2011 10:46:28 +0000
From: naota@elisp.net
To: openldap-its@OpenLDAP.org
Subject: fix #elif statement
Full_Name: Naohiro Aota
Version: 2.4.23
OS: Gentoo/FreeBSD 8.0
URL: http://elisp.net/openldap.patch
Submission from: (NULL) (125.102.92.74)


There are some #elif statements like "#elif FOOBAR", which should be "#elif
defined(FOOBAR)". These statements might cause build error like this:

i686-gentoo-freebsd8.0-gcc -O2 -pipe -march=prescott --param l1-cache-size=16
--param l1-cache-line-size=64 -mtune=prescott -D_GNU_SOURCE -I../../include     
  -I../../include   -I/usr/include/db4.8    -I/usr/include/db4.8  -c -o detach.o
detach.c
detach.c:131:7: error: missing binary operator before token "long"
gmake[2]: *** [detach.o] Error 1
gmake[2]: Leaving directory
`/usr/tmp/portage/net-nds/openldap-2.4.23/work/openldap-2.4.23/libraries/liblutil'
gmake[1]: *** [all-common] Error 1
gmake[1]: Leaving directory
`/usr/tmp/portage/net-nds/openldap-2.4.23/work/openldap-2.4.23/libraries'
gmake: *** [all-common] Error 1

Build Environment:
  Gentoo/FreeBSD 8.0
  gcc 4.4.4

URL is a address of the patch to fix the statements.

Followup 1

Download message
Date: Sun, 20 Mar 2011 22:22:52 +0100
From: Martin Matuska <mm@FreeBSD.org>
To: openldap-its@OpenLDAP.org
CC: naota@elisp.net
Subject: Re: (ITS#6832) fix #elif statement
To provide some background information,
this problem is caused by a behaviour change of gcc version 4.4 and later.

The new behaviour documented by GCC:
http://gcc.gnu.org/gcc-4.4/porting_to.html

More information:
http://www.cyrius.com/journal/gcc/gcc-4.4-preprocessor-errors
http://gcc.gnu.org/viewcvs?view=revision&revision=136209


Up to top level
Build   Contrib   Development   Documentation   Historical   Incoming   Software Bugs   Software Enhancements   Web  

Logged in as guest


The OpenLDAP Issue Tracking System uses a hacked version of JitterBug

______________
© Copyright 2013, OpenLDAP Foundation, info@OpenLDAP.org