Error compiling RPM package(rpm version: 4.16.0)

QinGui Liang qinguiliang at skspruce.net
Thu Oct 22 09:21:20 UTC 2020


[root at 10 ~]# cat /etc/redhat-release
CentOS Linux release 7.0.1406 (Core)

[root at 10 test]# tar -xf rpm-4.16.0.t
[root at 10 test]# cd rpm-4.16.0/
[root at 10 rpm-4.16.0]# ./configure --prefix=/usr --without-lua
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
………………….
………………….
config.status: executing libtool commands
config.status: executing po-directories commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
[root at 10 rpm-4.16.0]# make
/usr/bin/install -c -m 644 ./rpmio/argv.h include/rpm/argv.h
/usr/bin/install -c -m 644 ./rpmio/rpmio.h include/rpm/rpmio.h
/usr/bin/install -c -m 644 ./rpmio/rpmurl.h include/rpm/rpmurl.h
………………….
…………………
make[2]: Entering directory `/root/test/rpm-4.16.0/build'
depbase=`echo build.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H   -I.. -I.. -I../include/ -I../misc  -D_REENTRANT -Wall -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes  -fno-strict-aliasing -fstack-protector -Wempty-body -fopenmp -g -O2 -MT build.lo -MD -MP -MF $depbase.Tpo -c -o build.lo build.c &&\
mv -f $depbase.Tpo $depbase.Plo
libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I.. -I.. -I../include/ -I../misc -D_REENTRANT -Wall -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -fno-strict-aliasing -fstack-protector -Wempty-body -fopenmp -g -O2 -MT build.lo -MD -MP -MF .deps/build.Tpo -c build.c  -fPIC -DPIC -o .libs/build.o
depbase=`echo files.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H   -I.. -I.. -I../include/ -I../misc  -D_REENTRANT -Wall -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes  -fno-strict-aliasing -fstack-protector -Wempty-body -fopenmp -g -O2 -MT files.lo -MD -MP -MF $depbase.Tpo -c -o files.lo files.c &&\
mv -f $depbase.Tpo $depbase.Plo
libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I.. -I.. -I../include/ -I../misc -D_REENTRANT -Wall -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -fno-strict-aliasing -fstack-protector -Wempty-body -fopenmp -g -O2 -MT files.lo -MD -MP -MF .deps/files.Tpo -c files.c  -fPIC -DPIC -o .libs/files.o
depbase=`echo misc.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H   -I.. -I.. -I../include/ -I../misc  -D_REENTRANT -Wall -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes  -fno-strict-aliasing -fstack-protector -Wempty-body -fopenmp -g -O2 -MT misc.lo -MD -MP -MF $depbase.Tpo -c -o misc.lo misc.c &&\
mv -f $depbase.Tpo $depbase.Plo
libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I.. -I.. -I../include/ -I../misc -D_REENTRANT -Wall -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -fno-strict-aliasing -fstack-protector -Wempty-body -fopenmp -g -O2 -MT misc.lo -MD -MP -MF .deps/misc.Tpo -c misc.c  -fPIC -DPIC -o .libs/misc.o
depbase=`echo pack.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H   -I.. -I.. -I../include/ -I../misc  -D_REENTRANT -Wall -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes  -fno-strict-aliasing -fstack-protector -Wempty-body -fopenmp -g -O2 -MT pack.lo -MD -MP -MF $depbase.Tpo -c -o pack.lo pack.c &&\
mv -f $depbase.Tpo $depbase.Plo
libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I.. -I.. -I../include/ -I../misc -D_REENTRANT -Wall -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -fno-strict-aliasing -fstack-protector -Wempty-body -fopenmp -g -O2 -MT pack.lo -MD -MP -MF .deps/pack.Tpo -c pack.c  -fPIC -DPIC -o .libs/pack.o
pack.c: In function ‘packageBinaries’:
pack.c:769:26: error: expected ‘#pragma omp’ clause before ‘priority’
  #pragma omp task untied priority(i)
                          ^
make[2]: *** [pack.lo] Error 1
make[2]: Leaving directory `/root/test/rpm-4.16.0/build'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/test/rpm-4.16.0'
make: *** [all] Error 2
[root at 10 rpm-4.16.0]#
Why ?

Thanks &Regards
Qingui Liang |(AC)|(R & D Engineer<http://www.baidu.com/link?url=izJPDbOdBd9G3HUaxzM8YsWW_wKKpIPKeF35bmTF23BrUEQ4R-CBn7yIx-c5kpYW7EcnjS-VMoDmOMgjp1QRJNz6yiFmaTc5u50S_aVpKf3IVeg1H-Q4mwkGr9O1H-Lc>)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-list/attachments/20201022/7c45bbe9/attachment.html>


More information about the Rpm-list mailing list