pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/55400: bootstrap broken on FreeBSD following libarchive update



The following reply was made to PR pkg/55400; it has been noted by GNATS.

From: Sevan Janiyan <venture37%geeklan.co.uk@localhost>
To: "gnats-bugs%netbsd.org@localhost" <gnats-bugs%NetBSD.org@localhost>
Cc: 
Subject: Re: pkg/55400: bootstrap broken on FreeBSD following libarchive
 update
Date: Fri, 19 Jun 2020 23:34:17 +0100

 On 19/06/2020 16:38, Sevan Janiyan wrote:
 > The linker needs to told to use libmd (-lmd) now?
 
 bodged it forward by adding -lmd to pkg_create's Makefile.in and
 libarchive's to CFLAGS and LDFLAGS.
 
 Things still come tumbling down due to configure issues, can't find
 sha2.h and it goes down hill from there (missing definition).
 
 
 The API in libarchive has changed also changed and
 pkgtools/pkg_install/files/lib/vulnerabilities-file.c is calling
 functions that do not exist now
 
 From macos 10.15 (same warnings also on FreeBSD):
 
 --- vulnerabilities-file.o ---
 cc -isystem /usr/include -DHAVE_CONFIG_H
 -DDEF_LOG_DIR=\"/tmp/pkg/pkgdb\"
 -I/opt/pkgsrc/bootstrap/work/libnbcompat
 -I/opt/pkgsrc/bootstrap/work/libarchive/libarchive -I. -I.
 -DSYSCONFDIR=\"/tmp/pkg/etc\" -DBOOTSTRAP -g -O2 -c vulnerabilities-file.c
 vulnerabilities-file.c:83:22: warning: implicit declaration of function
 'archive_read_new' is invalid in C99 [-Wimplicit-function-declaration]
         struct archive *a = archive_read_new();
                             ^
 vulnerabilities-file.c:83:18: warning: incompatible integer to pointer
 conversion initializing 'struct archive *' with an expression of type
 'int' [-Wint-conversion]
         struct archive *a = archive_read_new();
                         ^   ~~~~~~~~~~~~~~~~~~
 vulnerabilities-file.c:87:2: warning: implicit declaration of function
 'archive_read_support_filter_gzip' is invalid in C99
 [-Wimplicit-function-declaration]
         archive_read_support_filter_gzip(a);
         ^
 vulnerabilities-file.c:88:2: warning: implicit declaration of function
 'archive_read_support_filter_bzip2' is invalid in C99
 [-Wimplicit-function-declaration]
         archive_read_support_filter_bzip2(a);
         ^
 vulnerabilities-file.c:89:2: warning: implicit declaration of function
 'archive_read_support_filter_xz' is invalid in C99
 [-Wimplicit-function-declaration]
         archive_read_support_filter_xz(a);
         ^
 vulnerabilities-file.c:90:2: warning: implicit declaration of function
 'archive_read_support_format_raw' is invalid in C99
 [-Wimplicit-function-declaration]
         archive_read_support_format_raw(a);
         ^
 


Home | Main Index | Thread Index | Old Index