From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2D8473858023; Tue, 20 Apr 2021 03:17:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2D8473858023 From: "kangus at aaes dot us" To: bzip2-devel@sourceware.org Subject: =?UTF-8?B?W0J1ZyBiemlwMi8yNzc1Nl0gTmV3OiBCWl9OT19TVERJTyBjYXVz?= =?UTF-8?B?ZXMgRVJST1IgMSBiemlwMi5jOjMzMjo0OiBlcnJvcjogdW5rbm93biB0eXBl?= =?UTF-8?B?IG5hbWUg4oCYQlpGSUxF4oCZ?= Date: Tue, 20 Apr 2021 03:17:39 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: bzip2 X-Bugzilla-Component: bzip2 X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: kangus at aaes dot us X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: nobody at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: bzip2-devel@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Bzip2-devel mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Apr 2021 03:17:40 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27756 Bug ID: 27756 Summary: BZ_NO_STDIO causes ERROR 1 bzip2.c:332:4: error: unknown type name =E2=80=98BZFILE=E2=80=99 Product: bzip2 Version: unspecified Status: UNCONFIRMED Severity: normal Priority: P2 Component: bzip2 Assignee: nobody at sourceware dot org Reporter: kangus at aaes dot us CC: bzip2-devel at sourceware dot org Target Milestone: --- Without touching anything bzip2 compiled and installed Ubuntu 20.04 make 4.2.1 gcc 9.3.0 in the top of bzip2.c added #define BZ_NO_STDIO 1 kevin@Aorus:~/bzip2-1.0.8$ make If compilation produces errors, or a large number of warnings, please read README.COMPILATION.PROBLEMS -- you might be able to adjust the flags in this Makefile to improve matters. Also in README.COMPILATION.PROBLEMS are some hints that may help if your build produces an executable which is unable to correctly handle so-called 'large files' -- files of size 2GB or more. gcc -Wall -Winline -O2 -g -D_FILE_OFFSET_BITS=3D64 -c blocksort.c gcc -Wall -Winline -O2 -g -D_FILE_OFFSET_BITS=3D64 -c huffman.c gcc -Wall -Winline -O2 -g -D_FILE_OFFSET_BITS=3D64 -c crctable.c gcc -Wall -Winline -O2 -g -D_FILE_OFFSET_BITS=3D64 -c randtable.c gcc -Wall -Winline -O2 -g -D_FILE_OFFSET_BITS=3D64 -c compress.c gcc -Wall -Winline -O2 -g -D_FILE_OFFSET_BITS=3D64 -c decompress.c gcc -Wall -Winline -O2 -g -D_FILE_OFFSET_BITS=3D64 -c bzlib.c rm -f libbz2.a ar cq libbz2.a blocksort.o huffman.o crctable.o randtable.o compress.o decompress.o bzlib.o ranlib libbz2.a gcc -Wall -Winline -O2 -g -D_FILE_OFFSET_BITS=3D64 -c bzip2.c bzip2.c: In function =E2=80=98compressStream=E2=80=99: bzip2.c:332:4: error: unknown type name =E2=80=98BZFILE=E2=80=99; did you m= ean =E2=80=98FILE=E2=80=99? 332 | BZFILE* bzf =3D NULL; | ^~~~~~ | FILE bzip2.c:345:10: warning: implicit declaration of function =E2=80=98BZ2_bzWr= iteOpen=E2=80=99 [-Wimplicit-function-declaration] 345 | bzf =3D BZ2_bzWriteOpen ( &bzerr, zStream, | ^~~~~~~~~~~~~~~ bzip2.c:345:8: warning: assignment to =E2=80=98int *=E2=80=99 from =E2=80= =98int=E2=80=99 makes pointer from integer without a cast [-Wint-conversion] 345 | bzf =3D BZ2_bzWriteOpen ( &bzerr, zStream, | ^ bzip2.c:356:22: warning: implicit declaration of function =E2=80=98BZ2_bzWr= ite=E2=80=99 [-Wimplicit-function-declaration] 356 | if (nIbuf > 0) BZ2_bzWrite ( &bzerr, bzf, (void*)ibuf, nIbuf = ); | ^~~~~~~~~~~ bzip2.c:361:4: warning: implicit declaration of function =E2=80=98BZ2_bzWri= teClose64=E2=80=99 [-Wimplicit-function-declaration] 361 | BZ2_bzWriteClose64 ( &bzerr, bzf, 0, | ^~~~~~~~~~~~~~~~~~ bzip2.c: In function =E2=80=98uncompressStream=E2=80=99: bzip2.c:436:4: error: unknown type name =E2=80=98BZFILE=E2=80=99; did you m= ean =E2=80=98FILE=E2=80=99? 436 | BZFILE* bzf =3D NULL; | ^~~~~~ | FILE bzip2.c:439:19: error: =E2=80=98BZ_MAX_UNUSED=E2=80=99 undeclared (first us= e in this function) 439 | UChar unused[BZ_MAX_UNUSED]; | ^~~~~~~~~~~~~ bzip2.c:439:19: note: each undeclared identifier is reported only once for = each function it appears in bzip2.c:455:13: warning: implicit declaration of function =E2=80=98BZ2_bzRe= adOpen=E2=80=99 [-Wimplicit-function-declaration] 455 | bzf =3D BZ2_bzReadOpen ( | ^~~~~~~~~~~~~~ bzip2.c:463:18: warning: implicit declaration of function =E2=80=98BZ2_bzRe= ad=E2=80=99 [-Wimplicit-function-declaration] 463 | nread =3D BZ2_bzRead ( &bzerr, bzf, obuf, 5000 ); | ^~~~~~~~~~ bzip2.c:471:7: warning: implicit declaration of function =E2=80=98BZ2_bzRea= dGetUnused=E2=80=99 [-Wimplicit-function-declaration] 471 | BZ2_bzReadGetUnused ( &bzerr, bzf, &unusedTmpV, &nUnused ); | ^~~~~~~~~~~~~~~~~~~ bzip2.c:477:7: warning: implicit declaration of function =E2=80=98BZ2_bzRea= dClose=E2=80=99 [-Wimplicit-function-declaration] 477 | BZ2_bzReadClose ( &bzerr, bzf ); | ^~~~~~~~~~~~~~~ bzip2.c:439:12: warning: unused variable =E2=80=98unused=E2=80=99 [-Wunused= -variable] 439 | UChar unused[BZ_MAX_UNUSED]; | ^~~~~~ bzip2.c: In function =E2=80=98testStream=E2=80=99: bzip2.c:557:4: error: unknown type name =E2=80=98BZFILE=E2=80=99; did you m= ean =E2=80=98FILE=E2=80=99? 557 | BZFILE* bzf =3D NULL; | ^~~~~~ | FILE bzip2.c:560:19: error: =E2=80=98BZ_MAX_UNUSED=E2=80=99 undeclared (first us= e in this function) 560 | UChar unused[BZ_MAX_UNUSED]; | ^~~~~~~~~~~~~ bzip2.c:560:12: warning: unused variable =E2=80=98unused=E2=80=99 [-Wunused= -variable] 560 | UChar unused[BZ_MAX_UNUSED]; | ^~~~~~ bzip2.c: In function =E2=80=98applySavedFileAttrToOutputFile=E2=80=99: bzip2.c:1074:11: warning: ignoring return value of =E2=80=98fchown=E2=80=99= , declared with attribute warn_unused_result [-Wunused-result] 1074 | (void) fchown ( fd, fileMetaInfo.st_uid, fileMetaInfo.st_gid ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make: *** [Makefile:132: bzip2.o] Error 1 kevin@Aorus:~/bzip2-1.0.8$ --=20 You are receiving this mail because: You are on the CC list for the bug.=