D: [iurt_root_command] chroot Building target platforms: x86_64 Building for target x86_64 sh: line 4: [: -j8: integer expression expected Installing /home/pterjan/rpmbuild/SRPMS/dxf2fig-2.13-14.mga10.src.rpm Executing(%mkbuilddir): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.7vKVlK sh: line 4: [: -j8: integer expression expected Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.1msBlx + umask 022 + cd /home/pterjan/rpmbuild/BUILD/dxf2fig-2.13-build + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD/dxf2fig-2.13-build + rm -rf dxf2fig-2.13 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/dxf2fig-2.13.tar.bz2 + STATUS=0 + '[' 0 -ne 0 ']' + cd dxf2fig-2.13 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/dxf2fig-format-string.patch + /usr/bin/patch -p0 -s --fuzz=0 --no-backup-if-mismatch -f + RPM_EC=0 ++ jobs -p + exit 0 sh: line 4: [: -j8: integer expression expected Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.YyK8IE + umask 022 + cd /home/pterjan/rpmbuild/BUILD/dxf2fig-2.13-build + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd dxf2fig-2.13 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + /usr/bin/make -O -j48 V=1 VERBOSE=1 'CFLAGS=-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -DVERSION=\"$(VERSION)\" -DMODDATE=\"$(MODDATE)\"' gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -DVERSION=\"2.13\" -DMODDATE=\""June 2005"\" -c -o dxf2fig.o dxf2fig.c In file included from dxf2fig.c:24: dxfstuff.h:159:17: warning: conflicting types for built-in function 'sin'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] 159 | extern double sin(),cos(); | ^~~ dxfstuff.h:1:1: note: 'sin' is declared in header '' +++ |+#include 1 | /* dxfstuff.h:159:23: warning: conflicting types for built-in function 'cos'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] 159 | extern double sin(),cos(); | ^~~ dxfstuff.h:159:23: note: 'cos' is declared in header '' dxf2fig.c: In function 'doarc': dxf2fig.c:246:51: error: too many arguments to function 'cos'; expected 0, have 1 246 | fprintf(output,"%d %d " ,(int)(d->xi[0]+d->rx*cos(d->angle2)), | ^~~ ~~~~~~~~~ dxfstuff.h:159:23: note: declared here 159 | extern double sin(),cos(); | ^~~ dxf2fig.c:247:39: error: too many arguments to function 'sin'; expected 0, have 1 247 | yflip((int)(d->yi[0]+d->ry*sin(d->angle2)))); | ^~~ ~~~~~~~~~ dxfstuff.h:159:17: note: declared here 159 | extern double sin(),cos(); | ^~~ dxf2fig.c:248:51: error: too many arguments to function 'cos'; expected 0, have 1 248 | fprintf(output,"%d %d " ,(int)(d->xi[0]+d->rx*cos(hangle)), | ^~~ ~~~~~~ dxfstuff.h:159:23: note: declared here 159 | extern double sin(),cos(); | ^~~ dxf2fig.c:249:39: error: too many arguments to function 'sin'; expected 0, have 1 249 | yflip((int)(d->yi[0]+d->ry*sin(hangle)))); | ^~~ ~~~~~~ dxfstuff.h:159:17: note: declared here 159 | extern double sin(),cos(); | ^~~ dxf2fig.c:250:51: error: too many arguments to function 'cos'; expected 0, have 1 250 | fprintf(output,"%d %d \n",(int)(d->xi[0]+d->rx*cos(d->angle1)), | ^~~ ~~~~~~~~~ dxfstuff.h:159:23: note: declared here 159 | extern double sin(),cos(); | ^~~ dxf2fig.c:251:39: error: too many arguments to function 'sin'; expected 0, have 1 251 | yflip((int)(d->yi[0]+d->ry*sin(d->angle1)))); | ^~~ ~~~~~~~~~ dxfstuff.h:159:17: note: declared here 159 | extern double sin(),cos(); | ^~~ dxf2fig.c: In function 'main': dxf2fig.c:364:58: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result] 364 | printf("\nDXF input name (excl .dxf) : "); scanf("%250s",dxfname); | ^~~~~~~~~~~~~~~~~~~~~~ dxf2fig.c:365:58: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result] 365 | printf("\nFIG output name (excl .fig) : "); scanf("%250s",figname); | ^~~~~~~~~~~~~~~~~~~~~~ dxf2fig.c:367:58: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result] 367 | printf("\nViewplane 3D (1=xy,2=xz,3=yz) : "); scanf("%1d",&viewp); | ^~~~~~~~~~~~~~~~~~~ dxf2fig.c:368:58: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result] 368 | printf("\nPaper size (0=A0, 1=A1, ..., 4=A4) : "); scanf("%1d",&papersize); | ^~~~~~~~~~~~~~~~~~~~~~~ make: *** [: dxf2fig.o] Error 1 make: *** Waiting for unfinished jobs.... gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -DVERSION=\"2.13\" -DMODDATE=\""June 2005"\" -c -o dxfread.o dxfread.c In file included from dxfread.c:24: dxfstuff.h:159:17: warning: conflicting types for built-in function 'sin'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] 159 | extern double sin(),cos(); | ^~~ dxfstuff.h:1:1: note: 'sin' is declared in header '' +++ |+#include 1 | /* dxfstuff.h:159:23: warning: conflicting types for built-in function 'cos'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] 159 | extern double sin(),cos(); | ^~~ dxfstuff.h:159:23: note: 'cos' is declared in header '' dxfread.c:61:6: error: conflicting types for 'closeparser'; have 'void(FILE *)' 61 | void closeparser(FILE *source) | ^~~~~~~~~~~ dxfstuff.h:169:6: note: previous declaration of 'closeparser' with type 'void(void)' 169 | void closeparser(); | ^~~~~~~~~~~ dxfread.c: In function 'setplotdata': dxfread.c:250:17: error: too many arguments to function 'cos'; expected 0, have 1 250 | cosa = cos(b->angle); sina=sin(b->angle); | ^~~ ~~~~~~~~ dxfstuff.h:159:23: note: declared here 159 | extern double sin(),cos(); | ^~~ dxfread.c:250:39: error: too many arguments to function 'sin'; expected 0, have 1 250 | cosa = cos(b->angle); sina=sin(b->angle); | ^~~ ~~~~~~~~ dxfstuff.h:159:17: note: declared here 159 | extern double sin(),cos(); | ^~~ dxfread.c: In function 'closeparser': dxfread.c:68:6: warning: ignoring return value of 'system' declared with attribute 'warn_unused_result' [-Wunused-result] 68 | system("rm -fv " TMPDIR"/bl#*"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ dxfread.c:70:6: warning: ignoring return value of 'system' declared with attribute 'warn_unused_result' [-Wunused-result] 70 | system("rm -f " TMPDIR"/bl#*"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ dxfread.c: In function 'readpair': dxfread.c:124:4: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 124 | fgets(p->regel,STRSIZE - 1,source); /* string can be empty ! */ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ dxfread.c:126:4: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 126 | fgets(p->regel,STRSIZE - 1,source); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ dxfread.c: In function 'getnewextends': dxfread.c:303:4: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 303 | fgets(buffer,sizeof(buffer),stdin); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ dxfread.c:306:4: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 306 | fgets(buffer,sizeof(buffer),stdin); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make: *** [: dxfread.o] Error 1 gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -DVERSION=\"2.13\" -DMODDATE=\""June 2005"\" -c -o dxffilter.o dxffilter.c In file included from dxffilter.c:28: dxfstuff.h:159:17: warning: conflicting types for built-in function 'sin'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] 159 | extern double sin(),cos(); | ^~~ dxfstuff.h:1:1: note: 'sin' is declared in header '' +++ |+#include 1 | /* dxfstuff.h:159:23: warning: conflicting types for built-in function 'cos'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] 159 | extern double sin(),cos(); | ^~~ dxfstuff.h:159:23: note: 'cos' is declared in header '' error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.YyK8IE (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.YyK8IE (%build) I: [iurt_root_command] ERROR: chroot