lists.arthurdejong.org
RSS feed

RPM packaging for version 0.8.12

[Date Prev][Date Next] [Thread Prev][Thread Next]

RPM packaging for version 0.8.12



Hi

I am trying to package as RPM nss-pam-ldapd 0.8.12. For that, I have used the SPEC for the package from CentOS 6.3 (although that SPEC is for version 0.7.x), available in http://vault.centos.org/6.3/updates/Source/SPackages/nss-pam-ldapd-0.7.5-15.el6_3.2.src.rpm. The only thing I have done is to remove the patches and change the nss-pam-ldapd version. The resulting SPEC is here http://pastebin.com/CBjNiaKY.

But when I try to compile it using the command

rpmbuild -ba /usr/src/redhat/SPECS/nss-pam-ldapd_sacyl.spec

I get this error, after some output (the full output is here http://pastebin.com/scK2kyqk):

gcc -fPIC -O2 -g -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -shared -Wl,-h,libnss_ldap.so.2 -Wl,--version-script,./exports.glibc  -o nss_ldap.so -shared -Wl,-h,libnss_ldap.so.2 -Wl,--version-script,./exports.glibc common.o aliases.o ethers.o group.o hosts.o netgroup.o networks.o passwd.o protocols.o rpc.o services.o shadow.o    ../common/libtio.a ../common/libprot.a
/usr/bin/ld: duplicate version tag `EXPORTED'
collect2: ld returned 1 exit status
make[2]: *** [nss_ldap.so] Error 1
make[2]: Leaving directory `/usr/src/redhat/BUILD/nss-pam-ldapd-0.8.12/nss'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/redhat/BUILD/nss-pam-ldapd-0.8.12'
make: *** [all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.29341 (%build)

Any idea why is this happening?

Regards and thanks in advance.

-- 
To unsubscribe send an email to
nss-pam-ldapd-users-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-users/