Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Dec 2023 14:34:52 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 273479] devel/glib20: silent grab libelf.so.1 from devel/elfutils
Message-ID:  <bug-273479-7788-ptV8v11uo1@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-273479-7788@https.bugs.freebsd.org/bugzilla/>
References:  <bug-273479-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D273479

--- Comment #6 from Vladimir Druzenko <vvd@FreeBSD.org> ---
(In reply to Ivan Rozhuk from comment #5)
[ 84% 503/592] cc -Igio/gresource.p -Igio -I../gio -I. -I.. -Iglib -I../glib
-Igmodule -I../gmodule -Igobject -I../gobject -fdiagnostics-color=3Dnever
-D_FILE_OFFSET_BITS=3D64 -Wall -Winvalid-pch -Wextra -Wpedantic -std=3Dgnu99
-D_GNU_SOURCE -fno-strict-aliasing -DG_ENABLE_DEBUG -Wimplicit-fallthrough
-Wmisleading-indentation -Wmissing-field-initializers -Wnonnull -Wunused
-Wno-unused-parameter -Wno-cast-function-type -Wno-pedantic
-Wno-format-zero-length -Wno-variadic-macros -Werror=3Dformat=3D2 -Werror=
=3Dinit-self
-Werror=3Dmissing-include-dirs -Werror=3Dpointer-arith -Werror=3Dunused-res=
ult
-Wstrict-prototypes -Wno-bad-function-cast
-Werror=3Dimplicit-function-declaration -Werror=3Dmissing-prototypes
-Werror=3Dpointer-sign -Wno-string-plus-int -O2 -pipe -march=3Dcore2
-fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing
-isystem /usr/local/include -MD -MQ gio/gresource.p/gresource-tool.c.o -MF
gio/gresource.p/gresource-tool.c.o.d -o gio/gresource.p/gresource-tool.c.o =
-c
../gio/gresource-tool.c
FAILED: gio/gresource.p/gresource-tool.c.o
cc -Igio/gresource.p -Igio -I../gio -I. -I.. -Iglib -I../glib -Igmodule
-I../gmodule -Igobject -I../gobject -fdiagnostics-color=3Dnever
-D_FILE_OFFSET_BITS=3D64 -Wall -Winvalid-pch -Wextra -Wpedantic -std=3Dgnu99
-D_GNU_SOURCE -fno-strict-aliasing -DG_ENABLE_DEBUG -Wimplicit-fallthrough
-Wmisleading-indentation -Wmissing-field-initializers -Wnonnull -Wunused
-Wno-unused-parameter -Wno-cast-function-type -Wno-pedantic
-Wno-format-zero-length -Wno-variadic-macros -Werror=3Dformat=3D2 -Werror=
=3Dinit-self
-Werror=3Dmissing-include-dirs -Werror=3Dpointer-arith -Werror=3Dunused-res=
ult
-Wstrict-prototypes -Wno-bad-function-cast
-Werror=3Dimplicit-function-declaration -Werror=3Dmissing-prototypes
-Werror=3Dpointer-sign -Wno-string-plus-int -O2 -pipe -march=3Dcore2
-fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing
-isystem /usr/local/include -MD -MQ gio/gresource.p/gresource-tool.c.o -MF
gio/gresource.p/gresource-tool.c.o.d -o gio/gresource.p/gresource-tool.c.o =
-c
../gio/gresource-tool.c
../gio/gresource-tool.c:176:38: error: unknown type name 'GElf_Shdr'; did y=
ou
mean 'Elf_Nhdr'?
typedef gboolean (*SectionCallback) (GElf_Shdr   *shdr,
                                     ^~~~~~~~~
                                     Elf_Nhdr
/usr/include/sys/elf_common.h:55:18: note: 'Elf_Nhdr' declared here
typedef Elf_Note Elf_Nhdr;
                 ^
../gio/gresource-tool.c:189:3: error: unknown type name 'GElf_Shdr'; did you
mean 'Elf_Nhdr'?
  GElf_Shdr *shdr, shdr_mem;
  ^~~~~~~~~
  Elf_Nhdr
/usr/include/sys/elf_common.h:55:18: note: 'Elf_Nhdr' declared here
typedef Elf_Note Elf_Nhdr;
                 ^
../gio/gresource-tool.c:204:14: error: implicit declaration of function
'gelf_getshdr' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
      shdr =3D gelf_getshdr (scn, &shdr_mem);
             ^
../gio/gresource-tool.c:204:12: warning: incompatible integer to pointer
conversion assigning to 'Elf_Nhdr *' (aka 'Elf_Note *') from 'int'
[-Wint-conversion]
      shdr =3D gelf_getshdr (scn, &shdr_mem);
           ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../gio/gresource-tool.c:208:17: error: no member named 'sh_type' in 'Elf_No=
te';
did you mean 'n_type'?
      if (shdr->sh_type !=3D SHT_PROGBITS)
                ^~~~~~~
                n_type
/usr/include/sys/elf_common.h:53:12: note: 'n_type' declared here
        u_int32_t       n_type;         /* Type of this note. */
                        ^
../gio/gresource-tool.c:211:55: error: no member named 'sh_name' in 'Elf_No=
te'
      section_name =3D elf_strptr (elf, shstrndx, shdr->sh_name);
                                                ~~~~  ^
../gio/gresource-tool.c:222:24: error: unknown type name 'GElf_Shdr'; did y=
ou
mean 'Elf_Nhdr'?
resource_from_section (GElf_Shdr *shdr,
                       ^~~~~~~~~
                       Elf_Nhdr
/usr/include/sys/elf_common.h:55:18: note: 'Elf_Nhdr' declared here
typedef Elf_Note Elf_Nhdr;
                 ^
../gio/gresource-tool.c:232:23: error: no member named 'sh_offset' in
'Elf_Note'
  page_offset =3D shdr->sh_offset % page_size;
                ~~~~  ^
../gio/gresource-tool.c:233:33: error: no member named 'sh_size' in 'Elf_No=
te'
  contents =3D mmap (NULL,  shdr->sh_size + page_offset,
                          ~~~~  ^
../gio/gresource-tool.c:234:54: error: no member named 'sh_offset' in
'Elf_Note'
                   PROT_READ, MAP_PRIVATE, fd, shdr->sh_offset - page_offse=
t);
                                               ~~~~  ^
../gio/gresource-tool.c:240:65: error: no member named 'sh_size' in 'Elf_No=
te'
      bytes =3D g_bytes_new_static (contents + page_offset, shdr->sh_size);
                                                          ~~~~  ^
../gio/gresource-tool.c:267:20: error: unknown type name 'GElf_Shdr'; did y=
ou
mean 'Elf_Nhdr'?
list_resources_cb (GElf_Shdr   *shdr,
                   ^~~~~~~~~
                   Elf_Nhdr
/usr/include/sys/elf_common.h:55:18: note: 'Elf_Nhdr' declared here
typedef Elf_Note Elf_Nhdr;
                 ^
../gio/gresource-tool.c:314:22: error: unknown type name 'GElf_Shdr'; did y=
ou
mean 'Elf_Nhdr'?
extract_resource_cb (GElf_Shdr   *shdr,
                     ^~~~~~~~~
                     Elf_Nhdr
/usr/include/sys/elf_common.h:55:18: note: 'Elf_Nhdr' declared here
typedef Elf_Note Elf_Nhdr;
                 ^
../gio/gresource-tool.c:356:21: error: unknown type name 'GElf_Shdr'; did y=
ou
mean 'Elf_Nhdr'?
print_section_name (GElf_Shdr   *shdr,
                    ^~~~~~~~~
                    Elf_Nhdr
/usr/include/sys/elf_common.h:55:18: note: 'Elf_Nhdr' declared here
typedef Elf_Note Elf_Nhdr;
                 ^
1 warning and 13 errors generated.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-273479-7788-ptV8v11uo1>