Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 344507 - net-nds/openldap ebuild fails
Summary: net-nds/openldap ebuild fails
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-07 13:25 UTC by John L. Poole
Modified: 2010-11-07 18:31 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,33.93 KB, text/plain)
2010-11-07 13:26 UTC, John L. Poole
Details
environment (environment,134.91 KB, text/plain)
2010-11-07 13:26 UTC, John L. Poole
Details
emerge-info (net-nds_openldap_emerge-info.txt,4.25 KB, text/plain)
2010-11-07 13:26 UTC, John L. Poole
Details

Note You need to log in before you can comment on or make changes to this bug.
Description John L. Poole 2010-11-07 13:25:22 UTC
emerge net-nds/openldap for both versions:
 2.4.23
and
 2.4.19-r1
fails with: 
i686-pc-linux-gnu-gcc -O2 -march=i686 -pipe -D_GNU_SOURCE -I../../include        -I../../include       -c -o version.o version.c
version.c:21: error: expected ',' or ';' before 'themis'
...
emake CC="${CC}" AR="${AR}" || die "emake failed";

Reproducible: Always

Steps to Reproduce:
1. emerge openldap


Actual Results:  
i686-pc-linux-gnu-gcc -O2 -march=i686 -pipe -D_GNU_SOURCE -I../../include        -I../../include       -c -o version.o version.c
version.c:21: error: expected ',' or ';' before 'themis'
make[2]: *** [version.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/net-nds/openldap-2.4.23/work/openldap-2.4.23/libraries/liblutil'
make[1]: *** [all-common] Error 1
make[1]: Leaving directory `/var/tmp/portage/net-nds/openldap-2.4.23/work/openldap-2.4.23/libraries'
make: *** [all-common] Error 1
     ERROR: net-nds/openldap-2.4.23 failed:
       emake failed
     
     Call stack:
         ebuild.sh, line  54:  Called src_compile
       environment, line 3359:  Called die
     The specific snippet of code:
           emake CC="${CC}" AR="${AR}" || die "emake failed";
     
     If you need support, post the output of 'emerge --info =net-nds/openldap-2.4.23',
     the complete build log and the output of 'emerge -pqv =net-nds/openldap-2.4.23'.
     The complete build log is located at '/var/tmp/portage/net-nds/openldap-2.4.23/temp/build.log'.
     The ebuild environment file is located at '/var/tmp/portage/net-nds/openldap-2.4.23/temp/environment'.
     S: '/var/tmp/portage/net-nds/openldap-2.4.23/work/openldap-2.4.23'

Expected Results:  
successful build

This environment is a new Gentoo build from 11/4/2010 on a new Dell Inspiron laptop.  It looks like the problem may be in a kernel file or configuration, as I am seeing a similar error message when I tried to install the current version of perl, see Bug 344501 where failure occurs with:

  perl.c: In function 'perl_construct':
  perl.c:394: error: expected ')' before 'themis'

Also, I tried to install an earlier version of openldap,  2.4.19-r1, and had the same problem.

* net-nds/openldap
     Available versions:  2.3.43-r1 2.4.19-r1 ~2.4.21 2.4.23 {(+)berkdb crypt -cxx debug experimental gdbm gnutls icu iodbc ipv6 kerberos minimal odbc overlays perl samba sasl selinux slp smbkrb5passwd ssl syslog tcpd}
     Homepage:            http://www.OpenLDAP.org/
     Description:         LDAP suite of application and development tools

Otherwise, I have installed many other programs (e.g. kde -- but it's not running yet, there seem to be some driver issues)

Files to follow
Comment 1 John L. Poole 2010-11-07 13:26:02 UTC
Created attachment 253513 [details]
build.log
Comment 2 John L. Poole 2010-11-07 13:26:22 UTC
Created attachment 253515 [details]
environment
Comment 3 John L. Poole 2010-11-07 13:26:38 UTC
Created attachment 253517 [details]
emerge-info
Comment 4 John L. Poole 2010-11-07 13:27:55 UTC
  emerge -pqv =net-nds/openldap-2.4.19-r1

produces:

  [ebuild  N    ] net-nds/openldap-2.4.19-r1  USE="berkdb crypt minimal perl samba ssl tcpd -cxx -debug -experimental -gnutls -icu -iodbc -ipv6 -kerberos -odbc 
-overlays -sasl (-selinux) -slp -smbkrb5passwd -syslog" 
Comment 5 John L. Poole 2010-11-07 13:34:54 UTC
Since I'm trying to get wifi working on this new laptop, I tried an even earlier version of ldap, 2.3.43-r1, and it failed on the same type of error:
cc -O2 -march=i686 -pipe -D_GNU_SOURCE -I../../include        -I../../include                                                          -c -o getpeereid.o getpeereid.c
fetch.c: In function 'ldif_open_url':
fetch.c:52: warning: assignment discards qualifiers from pointer target type
cc -O2 -march=i686 -pipe -D_GNU_SOURCE -I../../include        -I../../include                                                          -c -o detach.o detach.c
cc -O2 -march=i686 -pipe -D_GNU_SOURCE -I../../include        -I../../include                                                          -c -o version.o version.c
version.c:21: error: expected ',' or ';' before 'themis'
make[2]: *** [version.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/net-nds/openldap-2.3.43-r1/work/ope                                                   nldap-2.3.43/libraries/liblutil'
make[1]: *** [all-common] Error 1
make[1]: Leaving directory `/var/tmp/portage/net-nds/openldap-2.3.43-r1/work/ope                                                   nldap-2.3.43/libraries'
make: *** [all-common] Error 1
 * ERROR: net-nds/openldap-2.3.43-r1 failed:
 *   make failed

I'm reassigning this to "Core System" since this problem crops up in three different versions of openldap and in Perl; I think something is amiss at a lower level than these ebuilds.
Comment 6 John L. Poole 2010-11-07 18:31:43 UTC
The error was caused by the fact that I had in my /etc/hostname:

  HOSTNAME="themis"

I changed /etc/hostname to:

  themis

and rebooted and successfully emerged openldap ( and perl, see Bug #344501) .