Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Libarchive 3.7.0: Build failure on macOS 10.12.6 #1919

Closed
debohman opened this issue Jul 18, 2023 · 2 comments
Closed

Libarchive 3.7.0: Build failure on macOS 10.12.6 #1919

debohman opened this issue Jul 18, 2023 · 2 comments

Comments

@debohman
Copy link

  CC       unzip/bsdunzip-bsdunzip.o
unzip/bsdunzip.c:688:18: error: use of undeclared identifier 'UTIME_NOW'
        ts[0].tv_nsec = UTIME_NOW;
                        ^
unzip/bsdunzip.c:700:7: error: call to undeclared function 'utimensat'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
                if (utimensat(AT_FDCWD, *path, ts, AT_SYMLINK_NOFOLLOW) != 0)
                    ^
unzip/bsdunzip.c:719:6: error: call to undeclared function 'futimens'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
        if (futimens(fd, ts) != 0)
            ^
3 errors generated.
make[1]: *** [Makefile:9125: unzip/bsdunzip-bsdunzip.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/tera/tera/debo/Projects/libarchive/v3.7.0'
make: *** [Makefile:4016: all] Error 2

This OS version does not have available utimensat nor futimens.

mmatuska added a commit to mmatuska/libarchive that referenced this issue Jul 18, 2023
@mmatuska
Copy link
Member

I have committed a fix to my development master branch: https://github.com/mmatuska/libarchive
Please try out

@debohman
Copy link
Author

Yes, the master in https://github.com/mmatuska/libarchive builds without error.

hswong3i added a commit to alvistack/libarchive-libarchive that referenced this issue Jul 19, 2023
    git clean -xdf
    ./build/autogen.sh && ./configure && make clean && git clean -xdf
    tar zcvf ../libarchive_3.7.0.orig.tar.gz --exclude=.git .
    debuild -uc -us
    cp libarchive.spec ../libarchive_3.7.0-1.spec
    cp ../libarchive*3.7.0*.{gz,xz,spec,dsc} /osc/home\:alvistack/libarchive-libarchive-3.7.0/
    rm -rf ../libarchive*3.7.0*.*

See libarchive#1723
See libarchive#1919
See libarchive#1920
See libarchive#1921

Signed-off-by: Wong Hoi Sing Edison <hswong3i@pantarei-design.com>
hswong3i added a commit to alvistack/libarchive-libarchive that referenced this issue Jul 19, 2023
    git clean -xdf
    ./build/autogen.sh && ./configure && make clean && git clean -xdf
    tar zcvf ../libarchive_3.7.0.orig.tar.gz --exclude=.git .
    debuild -uc -us
    cp libarchive.spec ../libarchive_3.7.0-1.spec
    cp ../libarchive*3.7.0*.{gz,xz,spec,dsc} /osc/home\:alvistack/libarchive-libarchive-3.7.0/
    rm -rf ../libarchive*3.7.0*.*

See libarchive#1723
See libarchive#1919
See libarchive#1920
See libarchive#1921

Signed-off-by: Wong Hoi Sing Edison <hswong3i@pantarei-design.com>
hswong3i added a commit to alvistack/libarchive-libarchive that referenced this issue Jul 19, 2023
    git clean -xdf
    ./build/autogen.sh && ./configure && make clean && git clean -xdf
    tar zcvf ../libarchive_3.7.0.orig.tar.gz --exclude=.git .
    debuild -uc -us
    cp libarchive.spec ../libarchive_3.7.0-1.spec
    cp ../libarchive*3.7.0*.{gz,xz,spec,dsc} /osc/home\:alvistack/libarchive-libarchive-3.7.0/
    rm -rf ../libarchive*3.7.0*.*

See libarchive#1723
See libarchive#1919
See libarchive#1920
See libarchive#1921
See libarchive#1924

Signed-off-by: Wong Hoi Sing Edison <hswong3i@pantarei-design.com>
hswong3i added a commit to alvistack/libarchive-libarchive that referenced this issue Jul 19, 2023
    git clean -xdf
    ./build/autogen.sh && ./configure && make clean && git clean -xdf
    tar zcvf ../libarchive_3.7.0.orig.tar.gz --exclude=.git .
    debuild -uc -us
    cp libarchive.spec ../libarchive_3.7.0-1.spec
    cp ../libarchive*3.7.0*.{gz,xz,spec,dsc} /osc/home\:alvistack/libarchive-libarchive-3.7.0/
    rm -rf ../libarchive*3.7.0*.*

See libarchive#1723
See libarchive#1919
See libarchive#1920
See libarchive#1921
See libarchive#1924

Signed-off-by: Wong Hoi Sing Edison <hswong3i@pantarei-design.com>
hswong3i added a commit to alvistack/libarchive-libarchive that referenced this issue Jul 20, 2023
    git clean -xdf
    ./build/autogen.sh && ./configure && make clean && git clean -xdf
    tar zcvf ../libarchive_3.7.0.orig.tar.gz --exclude=.git .
    debuild -uc -us
    cp libarchive.spec ../libarchive_3.7.0-1.spec
    cp ../libarchive*3.7.0*.{gz,xz,spec,dsc} /osc/home\:alvistack/libarchive-libarchive-3.7.0/
    rm -rf ../libarchive*3.7.0*.*

See libarchive#1723
See libarchive#1919
See libarchive#1920
See libarchive#1921
See libarchive#1924

Signed-off-by: Wong Hoi Sing Edison <hswong3i@pantarei-design.com>
hswong3i added a commit to alvistack/libarchive-libarchive that referenced this issue Jul 30, 2023
    git clean -xdf
    ./build/autogen.sh && ./configure && make clean && git clean -xdf
    tar zcvf ../libarchive_3.7.1.orig.tar.gz --exclude=.git .
    debuild -uc -us
    cp libarchive.spec ../libarchive_3.7.1-1.spec
    cp ../libarchive*3.7.1*.{gz,xz,spec,dsc} /osc/home\:alvistack/libarchive-libarchive-3.7.1/
    rm -rf ../libarchive*3.7.1*.*

See libarchive#1723
See libarchive#1919
See libarchive#1920
See libarchive#1921
See libarchive#1924

Signed-off-by: Wong Hoi Sing Edison <hswong3i@pantarei-design.com>
hswong3i added a commit to alvistack/libarchive-libarchive that referenced this issue Feb 6, 2024
    git clean -xdf
    ./build/autogen.sh && ./configure && make clean && git clean -xdf
    tar zcvf ../libarchive_3.7.0.orig.tar.gz --exclude=.git .
    debuild -uc -us
    cp libarchive.spec ../libarchive_3.7.0-1.spec
    cp ../libarchive*3.7.0*.{gz,xz,spec,dsc} /osc/home\:alvistack/libarchive-libarchive-3.7.0/
    rm -rf ../libarchive*3.7.0*.*

See libarchive#1723
See libarchive#1919
See libarchive#1920
See libarchive#1921
See libarchive#1924

Signed-off-by: Wong Hoi Sing Edison <hswong3i@pantarei-design.com>
hswong3i added a commit to alvistack/libarchive-libarchive that referenced this issue Feb 6, 2024
    git clean -xdf
    ./build/autogen.sh && ./configure && make clean && git clean -xdf
    tar zcvf ../libarchive_3.7.1.orig.tar.gz --exclude=.git .
    debuild -uc -us
    cp libarchive.spec ../libarchive_3.7.1-1.spec
    cp ../libarchive*3.7.1*.{gz,xz,spec,dsc} /osc/home\:alvistack/libarchive-libarchive-3.7.1/
    rm -rf ../libarchive*3.7.1*.*

See libarchive#1723
See libarchive#1919
See libarchive#1920
See libarchive#1921
See libarchive#1924

Signed-off-by: Wong Hoi Sing Edison <hswong3i@pantarei-design.com>
hswong3i added a commit to alvistack/libarchive-libarchive that referenced this issue Feb 25, 2024
    git clean -xdf
    ./build/autogen.sh && ./configure && make clean && git clean -xdf
    tar zcvf ../libarchive_3.7.0.orig.tar.gz --exclude=.git .
    debuild -uc -us
    cp libarchive.spec ../libarchive_3.7.0-1.spec
    cp ../libarchive*3.7.0*.{gz,xz,spec,dsc} /osc/home\:alvistack/libarchive-libarchive-3.7.0/
    rm -rf ../libarchive*3.7.0*.*

See libarchive#1723
See libarchive#1919
See libarchive#1920
See libarchive#1921
See libarchive#1924

Signed-off-by: Wong Hoi Sing Edison <hswong3i@pantarei-design.com>
hswong3i added a commit to alvistack/libarchive-libarchive that referenced this issue Feb 25, 2024
    git clean -xdf
    ./build/autogen.sh && ./configure && make clean && git clean -xdf
    tar zcvf ../libarchive_3.7.1.orig.tar.gz --exclude=.git .
    debuild -uc -us
    cp libarchive.spec ../libarchive_3.7.1-1.spec
    cp ../libarchive*3.7.1*.{gz,xz,spec,dsc} /osc/home\:alvistack/libarchive-libarchive-3.7.1/
    rm -rf ../libarchive*3.7.1*.*

See libarchive#1723
See libarchive#1919
See libarchive#1920
See libarchive#1921
See libarchive#1924

Signed-off-by: Wong Hoi Sing Edison <hswong3i@pantarei-design.com>
hswong3i added a commit to alvistack/libarchive-libarchive that referenced this issue Apr 25, 2024
    git clean -xdf
    ./build/autogen.sh && ./configure && make clean && git clean -xdf
    tar zcvf ../libarchive_3.7.1.orig.tar.gz --exclude=.git .
    debuild -uc -us
    cp libarchive.spec ../libarchive_3.7.1-1.spec
    cp ../libarchive*3.7.1*.{gz,xz,spec,dsc} /osc/home\:alvistack/libarchive-libarchive-3.7.1/
    rm -rf ../libarchive*3.7.1*.*

See libarchive#1723
See libarchive#1919
See libarchive#1920
See libarchive#1921
See libarchive#1924

Signed-off-by: Wong Hoi Sing Edison <hswong3i@pantarei-design.com>
hswong3i added a commit to alvistack/libarchive-libarchive that referenced this issue Apr 25, 2024
    git clean -xdf
    ./build/autogen.sh && ./configure && make clean && git clean -xdf
    tar zcvf ../libarchive_3.7.1.orig.tar.gz --exclude=.git .
    debuild -uc -us
    cp libarchive.spec ../libarchive_3.7.1-1.spec
    cp ../libarchive*3.7.1*.{gz,xz,spec,dsc} /osc/home\:alvistack/libarchive-libarchive-3.7.1/
    rm -rf ../libarchive*3.7.1*.*

See libarchive#1723
See libarchive#1919
See libarchive#1920
See libarchive#1921
See libarchive#1924

Signed-off-by: Wong Hoi Sing Edison <hswong3i@pantarei-design.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants