[Rpm-maint] [rpm-software-management/rpm] Install error: variable has incomplete type 'struct stat64' (#1752)

Robert Murphy notifications at github.com
Tue Aug 10 10:39:30 UTC 2021


Hi, Attempting to install rpm on Big Sur with M1 chip via HomeBrew. 
Initially getting "Error: rpm: no bottle available" 

I have since tried both of the following commands: 
**brew install --build-from-source rpm** and **brew install rpm --build-bottle** 

Both give me the following error: 

> robertmurphy at ALT-RM-13205 Repositories % brew install --build-from-source rpm
> ==> Downloading http://ftp.rpm.org/releases/rpm-4.16.x/rpm-4.16.1.3.tar.bz2
> Already downloaded: /Users/robertmurphy/Library/Caches/Homebrew/downloads/490bdabcf09ad0ae5e0dc4820a86faad5112c2470621cb3153e74a4003d3776c--rpm-4.16.1.3.tar.bz2
> ==> ./configure --prefix=/opt/homebrew/Cellar/rpm/4.16.1.3 --localstatedir=/opt/homebrew/var --sharedstatedir=/opt/homebrew/var/lib --sysconfdir=/opt/homebrew/etc --with-path-magic=/o
> ==> make install
> Last 15 lines from /Users/robertmurphy/Library/Logs/Homebrew/rpm/02.make:
> /bin/sh ../libtool  --tag=CC   --mode=compile clang -DHAVE_CONFIG_H   -I.. -I.. -I../include -I../misc -I/opt/homebrew/opt/lua/include/lua -I/opt/homebrew/Cellar/openssl at 1.1/1.1.1k/include  -g -O2 -c -o fts.lo fts.c
> /bin/sh ../libtool  --tag=CC   --mode=compile clang -DHAVE_CONFIG_H   -I.. -I.. -I../include -I../misc -I/opt/homebrew/opt/lua/include/lua -I/opt/homebrew/Cellar/openssl at 1.1/1.1.1k/include  -g -O2 -c -o fnmatch.lo fnmatch.c
> libtool: compile:  clang -DHAVE_CONFIG_H -I.. -I.. -I../include -I../misc -I/opt/homebrew/opt/lua/include/lua -I/opt/homebrew/Cellar/openssl at 1.1/1.1.1k/include -g -O2 -c fnmatch.c  -fno-common -DPIC -o .libs/fnmatch.o
> libtool: compile:  clang -DHAVE_CONFIG_H -I.. -I.. -I../include -I../misc -I/opt/homebrew/opt/lua/include/lua -I/opt/homebrew/Cellar/openssl at 1.1/1.1.1k/include -g -O2 -c fts.c  -fno-common -DPIC -o .libs/fts.o
> fts.c:1120:16: error: variable has incomplete type 'struct stat64'
>         struct stat64 sb;
>                       ^
> fts.c:1120:9: note: forward declaration of 'struct stat64'
>         struct stat64 sb;
>                ^
> 1 error generated.
> make[2]: *** [fts.lo] Error 1
> make[2]: *** Waiting for unfinished jobs....
> make[1]: *** [install-recursive] Error 1
> make: *** [install] Error 2

Can anybody help me with this please? 
Let me know if any more information is required. Thanks 



-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/1752
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20210810/2fea854e/attachment.html>


More information about the Rpm-maint mailing list