Issue 7304 - ldapc++ fails to build with gcc-4.7
Summary: ldapc++ fails to build with gcc-4.7
Status: VERIFIED FIXED
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: build (show other issues)
Version: 2.4.31
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-13 11:01 UTC by xarthisius.kk@gmail.com
Modified: 2014-08-01 21:04 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description xarthisius.kk@gmail.com 2012-06-13 11:01:31 UTC
Full_Name: Kacper Kowalik
Version: 2.4.31
OS: Gentoo Linux
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (158.75.7.230)


Currently ldap fails to build with gcc-4.7 with following error:

SaslInteractionHandler.cpp:56:27: error: 'STDIN_FILENO' was not declared in this
scope
SaslInteractionHandler.cpp:67:27: error: 'STDIN_FILENO' was not declared in this
scope
SaslInteractionHandler.cpp:85:23: error: 'STDIN_FILENO' was not declared in this
scope
make[2]: *** [SaslInteractionHandler.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
 x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../../include
-I/usr/include/db4.8 -DLDAP_CONNECTIONLESS -I../../../include -mtune=native -O2
-pipe -D_GNU_SOURCE -c LdifWriter.cpp -o LdifWriter.o >/dev/null 2>&1
 x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../../include
-I/usr/include/db4.8 -DLDAP_CONNECTIONLESS -I../../../include -mtune=native -O2
-pipe -D_GNU_SOURCE -c StringList.cpp -o StringList.o >/dev/null 2>&1
 x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../../include
-I/usr/include/db4.8 -DLDAP_CONNECTIONLESS -I../../../include -mtune=native -O2
-pipe -D_GNU_SOURCE -c TlsOptions.cpp -o TlsOptions.o >/dev/null 2>&1
make[2]: Leaving directory
`/var/tmp/paludis/net-nds-openldap-2.4.31-r1/work/openldap-2.4.31/contrib/ldapc++/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory
`/var/tmp/paludis/net-nds-openldap-2.4.31-r1/work/openldap-2.4.31/contrib/ldapc++/src'

It's sufficient to include <unistd.h> in SaslInteractionHandler.cpp to fix
this.

I've tried to upload the patch but got:
local: 0001-Fix-building-with-gcc-4.7.patch remote: Kacper-Kowalik-120613.patch
227 Entering Passive Mode (204,152,186,57,209,187)
553 Kacper-Kowalik-120613.patch: No space left on device.

Downstream bug: https://bugs.gentoo.org/show_bug.cgi?id=420959
Comment 1 Howard Chu 2012-06-15 11:43:12 UTC
changed notes
Comment 2 Ralf 2012-11-02 11:22:12 UTC
changed notes
changed state Open to Test
changed notification
moved from Incoming to Build
Comment 3 Quanah Gibson-Mount 2012-11-05 17:42:55 UTC
changed notes
changed state Test to Release
Comment 4 Quanah Gibson-Mount 2013-03-05 02:17:10 UTC
changed notes
Comment 5 Quanah Gibson-Mount 2013-03-05 02:17:11 UTC
changed state Release to Closed
Comment 6 OpenLDAP project 2014-08-01 21:04:07 UTC
fixed in HEAD
dup #7281
fixed in RE24