I can not build rpm from src.rpm for Fedora 19

Bug #1229598 reported by Oleg Cherniy on 2013-09-24
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Percona Server
Status tracked in 5.6
5.1
Undecided
Unassigned
5.5
Medium
Stewart Smith
5.6
Medium
Stewart Smith

Bug Description

Hi!

I am trying to build rpm for Fedora 19 and get an error:

# rpmbuild -ba percona-server.spec
...
[ 24%] Building CXX object mysys_ssl/CMakeFiles/mysys_ssl.dir/my_md5.cc.o
In file included from /usr/include/pthread.h:21:0,
                 from /root/rpmbuild/BUILD/Percona-Server-5.6.13-rc60.6/include/my_global.h:266,
                 from /root/rpmbuild/BUILD/Percona-Server-5.6.13-rc60.6/mysys_ssl/my_md5.cc:25:
/usr/include/features.h:330:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 # warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^
[ 24%] Building CXX object mysys_ssl/CMakeFiles/mysys_ssl.dir/my_rnd.cc.o
In file included from /usr/include/pthread.h:21:0,
                 from /root/rpmbuild/BUILD/Percona-Server-5.6.13-rc60.6/include/my_global.h:266,
                 from /root/rpmbuild/BUILD/Percona-Server-5.6.13-rc60.6/include/my_rnd.h:24,
                 from /root/rpmbuild/BUILD/Percona-Server-5.6.13-rc60.6/mysys_ssl/my_rnd.cc:17:
/usr/include/features.h:330:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 # warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^
Linking CXX static library libmysys_ssl.a
[ 24%] Built target mysys_ssl
Scanning dependencies of target comp_err
[ 24%] Building C object extra/CMakeFiles/comp_err.dir/comp_err.c.o
In file included from /usr/include/pthread.h:21:0,
                 from /root/rpmbuild/BUILD/Percona-Server-5.6.13-rc60.6/include/my_global.h:266,
                 from /root/rpmbuild/BUILD/Percona-Server-5.6.13-rc60.6/extra/comp_err.c:27:
/usr/include/features.h:330:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 # warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^
Linking CXX executable comp_err
../mysys_ssl/libmysys_ssl.a(my_getopt.cc.o):(.data.DW.ref.__gxx_personality_v0[DW.ref.__gxx_personality_v0]+0x0): undefined reference to `__gxx_personality_v0'
collect2: error: ld returned 1 exit status
make[2]: *** [extra/comp_err] Error 1
make[1]: *** [extra/CMakeFiles/comp_err.dir/all] Error 2
make: *** [all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.ZBZhWU (%build)

RPM build errors:
    bogus date in %changelog: Fri Oct 06 2009 Magnus Blaudd <email address hidden>
    bogus date in %changelog: Wed Mar 07 2006 Kent Boortz <email address hidden>
    bogus date in %changelog: Thu Dec 31 2004 Lenz Grimmer <email address hidden>
    bogus date in %changelog: Fri Dec 13 2003 Lenz Grimmer <email address hidden>
    bogus date in %changelog: Wed Sep 28 1999 David Axmark <email address hidden>

Some info:

# rpm -qa | grep ssl
openssl-libs-1.0.1e-4.fc19.x86_64
openssl-devel-1.0.1e-4.fc19.x86_64
openssl-1.0.1e-4.fc19.x86_64

# rpm -qa | grep gcc
libgcc-4.8.1-1.fc19.x86_64
gcc-4.8.1-1.fc19.x86_64
gcc-c++-4.8.1-1.fc19.x86_64

# echo $RPM_OPT_FLAGS
-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic

I've got the same linker error in another place:

...
[ 43%] Building CXX object storage/perfschema/unittest/CMakeFiles/pfs_account-oom-t.dir/pfs_account-oom-t.cc.o
Linking CXX executable pfs_account-oom-t
../libperfschema.a(pfs_defaults.cc.o):(.data.DW.ref.__gxx_personality_v0[DW.ref.__gxx_personality_v0]+0x0): undefined reference to `__gxx_personality_v0'
collect2: ld returned 1 exit status
make[2]: *** [storage/perfschema/unittest/pfs_account-oom-t] Error 1
make[1]: *** [storage/perfschema/unittest/CMakeFiles/pfs_account-oom-t.dir/all] Error 2
make: *** [all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.Z3ajSC (%build)
...

on FC14.

tags: added: pkg
Stewart Smith (stewart) wrote :

I'm going to mark this as fix released as with our recent packaging work the source RPMs should be completely buildable on any supported distro barring any unforseen issues. I have, in fact, built on Fedora 19 with this work.

Let's reopen if there continues to be an issue after the next release.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers