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
Created attachment 253513 [details] build.log
Created attachment 253515 [details] environment
Created attachment 253517 [details] emerge-info
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"
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.
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) .