You are not logged in.

#1 2024-07-15 08:55:29

leonamS
Member
Registered: 2024-07-15
Posts: 11

[Solved] Error installing avro-c (yay and make)

Hi. Linux newbie here smile

I'm having this error below when I try to install kcat/avro-c. Someone can help? $ yay avro-c (cmd) " [ 59%] Building C object examples/CMakeFiles/quickstop.dir/quickstop.c.o In file included from /var/tmp/pamac-build-myyser/avro-c/src/avro-release-1.11.3/lang/c/src/avro/legacy.h:33, from /var/tmp/pamac-build-myyser/avro-c/src/avro-release-1.11.3/lang/c/src/avro/io.h:31, from /var/tmp/pamac-build-myyser/avro-c/src/avro-release-1.11.3/lang/c/src/avro/consumer.h:30, from /var/tmp/pamac-build-myyser/avro-c/src/avro-release-1.11.3/lang/c/src/avro.h:28, from /var/tmp/pamac-build-myyser/avro-c/src/avro-release-1.11.3/lang/c/examples/quickstop.c:18: /var/tmp/pamac-build-myyser/avro-c/src/avro-release-1.11.3/lang/c/examples/quickstop.c: In function ‘print_person’: /var/tmp/pamac-build-myyser/avro-c/src/avro-release-1.11.3/lang/c/examples/quickstop.c:123:61: error: passing argument 3 of ‘first_value.iface->get_string’ from incompatible pointer type [-Wincompatible-pointer-types] 123 | avro_value_get_string(&first_value, &p, &size); | ^~ | | | int32_t ** {aka int **} "

https://aur.archlinux.org/packages/avro-c


/tmp/avro-release-1.11.3/lang/c/examples/quickstop.c:123:61: error: passing argument 3 of ‘first_value.iface->get_string’ from incompatible pointer type [-Wincompatible-pointer-types]
  123 |                         avro_value_get_string(&first_value, &p, &size);
      |                                                             ^~
      |                                                             |
      |                                                             int32_t ** {aka int **}
"

"""
I tried using yay and make (as the tip AGTT tip) but without success.



More detail:

╰─➤  cmake ../avro-release-1.11.3/lang/c -DCMAKE_BUILD_TYPE=None
-DCMAKE_INSTALL_PREFIX=/usr -DTHREADSAFE=true -Wno-dev
CMake Deprecation Warning at CMakeLists.txt:19 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- The C compiler identification is GNU 14.1.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Found ZLIB: /usr/lib/libz.so (found version "1.3.1")
Enabled deflate codec
-- Found Snappy: /lib/libsnappy.so
Enabled snappy codec
-- Found PkgConfig: /usr/bin/pkg-config (found version "2.1.1")
-- Checking for module 'liblzma'
--   Found liblzma, version 5.6.2
Enabled lzma codec
-- Checking for module 'jansson>=2.3'
--   Found jansson, version 2.14
-- Searching for asciidoc...
CMake Warning at docs/CMakeLists.txt:51 (message):
  asciidoc and/or source-highlight not found.  HTML documentation will *NOT*
  be built.


-- Configuring done (0.5s)
-- Generating done (0.0s)
-- Build files have been written to: /tmp/avro-c-1.11-3-build
zsh: no such file or directory: -DCMAKE_INSTALL_PREFIX=/usr
╭─myuser@mypc /tmp/avro-c-1.11-3-build  
╰─➤  make                                                                                                                                                                                                   127 ↵
[  1%] Building C object src/CMakeFiles/avro-static.dir/allocation.c.o
[  1%] Building C object src/CMakeFiles/avro-static.dir/array.c.o
[  2%] Building C object src/CMakeFiles/avro-static.dir/codec.c.o
[  3%] Building C object src/CMakeFiles/avro-static.dir/consumer.c.o
[  4%] Building C object src/CMakeFiles/avro-static.dir/consume-binary.c.o
[  4%] Building C object src/CMakeFiles/avro-static.dir/datafile.c.o
[  5%] Building C object src/CMakeFiles/avro-static.dir/datum.c.o
[  6%] Building C object src/CMakeFiles/avro-static.dir/datum_equal.c.o
[  7%] Building C object src/CMakeFiles/avro-static.dir/datum_read.c.o
[  7%] Building C object src/CMakeFiles/avro-static.dir/datum_size.c.o
[  8%] Building C object src/CMakeFiles/avro-static.dir/datum_skip.c.o
[  9%] Building C object src/CMakeFiles/avro-static.dir/datum_validate.c.o
[ 10%] Building C object src/CMakeFiles/avro-static.dir/datum_value.c.o
/tmp/avro-release-1.11.3/lang/c/src/datum_value.c: In function ‘avro_datum_value_get_type’:
/tmp/avro-release-1.11.3/lang/c/src/datum_value.c:86:2: warning: #warning "Bug: EINVAL is not of type avro_type_t." [-Wcpp]
   86 | #warning "Bug: EINVAL is not of type avro_type_t."
      |  ^~~~~~~
[ 10%] Building C object src/CMakeFiles/avro-static.dir/datum_write.c.o
[ 11%] Building C object src/CMakeFiles/avro-static.dir/dump.c.o
[ 12%] Building C object src/CMakeFiles/avro-static.dir/encoding_binary.c.o
[ 12%] Building C object src/CMakeFiles/avro-static.dir/errors.c.o
[ 13%] Building C object src/CMakeFiles/avro-static.dir/generic.c.o
[ 14%] Building C object src/CMakeFiles/avro-static.dir/io.c.o
[ 15%] Building C object src/CMakeFiles/avro-static.dir/map.c.o
[ 15%] Building C object src/CMakeFiles/avro-static.dir/memoize.c.o
[ 16%] Building C object src/CMakeFiles/avro-static.dir/resolved-reader.c.o
[ 17%] Building C object src/CMakeFiles/avro-static.dir/resolved-writer.c.o
[ 18%] Building C object src/CMakeFiles/avro-static.dir/resolver.c.o
[ 18%] Building C object src/CMakeFiles/avro-static.dir/schema.c.o
/tmp/avro-release-1.11.3/lang/c/src/schema.c: In function ‘avro_schema_from_json_t’:
/tmp/avro-release-1.11.3/lang/c/src/schema.c:882:3: warning: #warning "Bug: '0' is not of type avro_type_t." [-Wcpp]
  882 |  #warning "Bug: '0' is not of type avro_type_t."
      |   ^~~~~~~
[ 19%] Building C object src/CMakeFiles/avro-static.dir/schema_equal.c.o
[ 20%] Building C object src/CMakeFiles/avro-static.dir/st.c.o
/tmp/avro-release-1.11.3/lang/c/src/st.c: In function ‘st_foreach’:
/tmp/avro-release-1.11.3/lang/c/src/st.c:467:36: warning: this statement may fall through [-Wimplicit-fallthrough=]
  467 |                                 if (!tmp) {
      |                                    ^
/tmp/avro-release-1.11.3/lang/c/src/st.c:476:25: note: here
  476 |                         case ST_CONTINUE:
      |                         ^~~~
[ 21%] Building C object src/CMakeFiles/avro-static.dir/string.c.o
[ 21%] Building C object src/CMakeFiles/avro-static.dir/value.c.o
[ 22%] Building C object src/CMakeFiles/avro-static.dir/value-hash.c.o
/tmp/avro-release-1.11.3/lang/c/src/value-hash.c: In function ‘hash_buffer’:
/tmp/avro-release-1.11.3/lang/c/src/value-hash.c:109:28: warning: this statement may fall through [-Wimplicit-fallthrough=]
  109 |                 case 3: k1 ^= tail[2] << 16;
      |                         ~~~^~~~~~~~~~~~~~~~
/tmp/avro-release-1.11.3/lang/c/src/value-hash.c:110:17: note: here
  110 |                 case 2: k1 ^= tail[1] << 8;
      |                 ^~~~
/tmp/avro-release-1.11.3/lang/c/src/value-hash.c:110:28: warning: this statement may fall through [-Wimplicit-fallthrough=]
  110 |                 case 2: k1 ^= tail[1] << 8;
      |                         ~~~^~~~~~~~~~~~~~~
/tmp/avro-release-1.11.3/lang/c/src/value-hash.c:111:17: note: here
  111 |                 case 1: k1 ^= tail[0];
      |                 ^~~~
[ 23%] Building C object src/CMakeFiles/avro-static.dir/value-json.c.o
[ 24%] Building C object src/CMakeFiles/avro-static.dir/value-read.c.o
[ 24%] Building C object src/CMakeFiles/avro-static.dir/value-sizeof.c.o
[ 25%] Building C object src/CMakeFiles/avro-static.dir/value-write.c.o
[ 26%] Building C object src/CMakeFiles/avro-static.dir/wrapped-buffer.c.o
[ 26%] Linking C static library libavro.a
[ 26%] Built target avro-static
[ 26%] Building C object src/CMakeFiles/avro-shared.dir/allocation.c.o
[ 27%] Building C object src/CMakeFiles/avro-shared.dir/array.c.o
[ 28%] Building C object src/CMakeFiles/avro-shared.dir/codec.c.o
[ 28%] Building C object src/CMakeFiles/avro-shared.dir/consumer.c.o
[ 29%] Building C object src/CMakeFiles/avro-shared.dir/consume-binary.c.o
[ 30%] Building C object src/CMakeFiles/avro-shared.dir/datafile.c.o
[ 31%] Building C object src/CMakeFiles/avro-shared.dir/datum.c.o
[ 31%] Building C object src/CMakeFiles/avro-shared.dir/datum_equal.c.o
[ 32%] Building C object src/CMakeFiles/avro-shared.dir/datum_read.c.o
[ 33%] Building C object src/CMakeFiles/avro-shared.dir/datum_size.c.o
[ 34%] Building C object src/CMakeFiles/avro-shared.dir/datum_skip.c.o
[ 34%] Building C object src/CMakeFiles/avro-shared.dir/datum_validate.c.o
[ 35%] Building C object src/CMakeFiles/avro-shared.dir/datum_value.c.o
/tmp/avro-release-1.11.3/lang/c/src/datum_value.c: In function ‘avro_datum_value_get_type’:
/tmp/avro-release-1.11.3/lang/c/src/datum_value.c:86:2: warning: #warning "Bug: EINVAL is not of type avro_type_t." [-Wcpp]
   86 | #warning "Bug: EINVAL is not of type avro_type_t."
      |  ^~~~~~~
[ 36%] Building C object src/CMakeFiles/avro-shared.dir/datum_write.c.o
[ 37%] Building C object src/CMakeFiles/avro-shared.dir/dump.c.o
[ 37%] Building C object src/CMakeFiles/avro-shared.dir/encoding_binary.c.o
[ 38%] Building C object src/CMakeFiles/avro-shared.dir/errors.c.o
[ 39%] Building C object src/CMakeFiles/avro-shared.dir/generic.c.o
[ 39%] Building C object src/CMakeFiles/avro-shared.dir/io.c.o
[ 40%] Building C object src/CMakeFiles/avro-shared.dir/map.c.o
[ 41%] Building C object src/CMakeFiles/avro-shared.dir/memoize.c.o
[ 42%] Building C object src/CMakeFiles/avro-shared.dir/resolved-reader.c.o
[ 42%] Building C object src/CMakeFiles/avro-shared.dir/resolved-writer.c.o
[ 43%] Building C object src/CMakeFiles/avro-shared.dir/resolver.c.o
[ 44%] Building C object src/CMakeFiles/avro-shared.dir/schema.c.o
/tmp/avro-release-1.11.3/lang/c/src/schema.c: In function ‘avro_schema_from_json_t’:
/tmp/avro-release-1.11.3/lang/c/src/schema.c:882:3: warning: #warning "Bug: '0' is not of type avro_type_t." [-Wcpp]
  882 |  #warning "Bug: '0' is not of type avro_type_t."
      |   ^~~~~~~
[ 45%] Building C object src/CMakeFiles/avro-shared.dir/schema_equal.c.o
[ 45%] Building C object src/CMakeFiles/avro-shared.dir/st.c.o
/tmp/avro-release-1.11.3/lang/c/src/st.c: In function ‘st_foreach’:
/tmp/avro-release-1.11.3/lang/c/src/st.c:467:36: warning: this statement may fall through [-Wimplicit-fallthrough=]
  467 |                                 if (!tmp) {
      |                                    ^
/tmp/avro-release-1.11.3/lang/c/src/st.c:476:25: note: here
  476 |                         case ST_CONTINUE:
      |                         ^~~~
[ 46%] Building C object src/CMakeFiles/avro-shared.dir/string.c.o
[ 47%] Building C object src/CMakeFiles/avro-shared.dir/value.c.o
[ 48%] Building C object src/CMakeFiles/avro-shared.dir/value-hash.c.o
/tmp/avro-release-1.11.3/lang/c/src/value-hash.c: In function ‘hash_buffer’:
/tmp/avro-release-1.11.3/lang/c/src/value-hash.c:109:28: warning: this statement may fall through [-Wimplicit-fallthrough=]
  109 |                 case 3: k1 ^= tail[2] << 16;
      |                         ~~~^~~~~~~~~~~~~~~~
/tmp/avro-release-1.11.3/lang/c/src/value-hash.c:110:17: note: here
  110 |                 case 2: k1 ^= tail[1] << 8;
      |                 ^~~~
/tmp/avro-release-1.11.3/lang/c/src/value-hash.c:110:28: warning: this statement may fall through [-Wimplicit-fallthrough=]
  110 |                 case 2: k1 ^= tail[1] << 8;
      |                         ~~~^~~~~~~~~~~~~~~
/tmp/avro-release-1.11.3/lang/c/src/value-hash.c:111:17: note: here
  111 |                 case 1: k1 ^= tail[0];
      |                 ^~~~
[ 48%] Building C object src/CMakeFiles/avro-shared.dir/value-json.c.o
[ 49%] Building C object src/CMakeFiles/avro-shared.dir/value-read.c.o
[ 50%] Building C object src/CMakeFiles/avro-shared.dir/value-sizeof.c.o
[ 51%] Building C object src/CMakeFiles/avro-shared.dir/value-write.c.o
[ 51%] Building C object src/CMakeFiles/avro-shared.dir/wrapped-buffer.c.o
[ 52%] Linking C shared library libavro.so
[ 52%] Built target avro-shared
[ 53%] Building C object src/CMakeFiles/avrocat.dir/avrocat.c.o
[ 53%] Linking C executable avrocat
[ 53%] Built target avrocat
[ 54%] Building C object src/CMakeFiles/avroappend.dir/avroappend.c.o
[ 55%] Linking C executable avroappend
[ 55%] Built target avroappend
[ 56%] Building C object src/CMakeFiles/avropipe.dir/avropipe.c.o
[ 56%] Linking C executable avropipe
[ 56%] Built target avropipe
[ 57%] Building C object src/CMakeFiles/avromod.dir/avromod.c.o
[ 58%] Linking C executable avromod
[ 58%] Built target avromod
[ 59%] Building C object examples/CMakeFiles/quickstop.dir/quickstop.c.o
In file included from /tmp/avro-release-1.11.3/lang/c/src/avro/legacy.h:33,
                 from /tmp/avro-release-1.11.3/lang/c/src/avro/io.h:31,
                 from /tmp/avro-release-1.11.3/lang/c/src/avro/consumer.h:30,
                 from /tmp/avro-release-1.11.3/lang/c/src/avro.h:28,
                 from /tmp/avro-release-1.11.3/lang/c/examples/quickstop.c:18:
/tmp/avro-release-1.11.3/lang/c/examples/quickstop.c: In function ‘print_person’:
/tmp/avro-release-1.11.3/lang/c/examples/quickstop.c:123:61: error: passing argument 3 of ‘first_value.iface->get_string’ from incompatible pointer type [-Wincompatible-pointer-types]
  123 |                         avro_value_get_string(&first_value, &p, &size);
      |                                                             ^~
      |                                                             |
      |                                                             int32_t ** {aka int **}
/tmp/avro-release-1.11.3/lang/c/src/avro/value.h:408:60: note: in definition of macro ‘avro_value_call’
  408 |      (value)->iface->method((value)->iface, (value)->self, __VA_ARGS__))
      |                                                            ^~~~~~~~~~~
/tmp/avro-release-1.11.3/lang/c/examples/quickstop.c:123:25: note: in expansion of macro ‘avro_value_get_string’
  123 |                         avro_value_get_string(&first_value, &p, &size);
      |                         ^~~~~~~~~~~~~~~~~~~~~
/tmp/avro-release-1.11.3/lang/c/examples/quickstop.c:123:61: note: expected ‘const char **’ but argument is of type ‘int32_t **’ {aka ‘int **’}
  123 |                         avro_value_get_string(&first_value, &p, &size);
      |                                                             ^~
/tmp/avro-release-1.11.3/lang/c/src/avro/value.h:408:60: note: in definition of macro ‘avro_value_call’
  408 |      (value)->iface->method((value)->iface, (value)->self, __VA_ARGS__))
      |                                                            ^~~~~~~~~~~
/tmp/avro-release-1.11.3/lang/c/examples/quickstop.c:123:25: note: in expansion of macro ‘avro_value_get_string’
  123 |                         avro_value_get_string(&first_value, &p, &size);
      |                         ^~~~~~~~~~~~~~~~~~~~~
/tmp/avro-release-1.11.3/lang/c/examples/quickstop.c:124:45: warning: format ‘%s’ expects argument of type ‘char *’, but argument 3 has type ‘int32_t *’ {aka ‘int *’} [-Wformat=]
  124 |                         fprintf(stdout, "%15s | ", p);
      |                                          ~~~^      ~
      |                                             |      |
      |                                             char * int32_t * {aka int *}
      |                                          %15ls
/tmp/avro-release-1.11.3/lang/c/examples/quickstop.c:127:60: error: passing argument 3 of ‘last_value.iface->get_string’ from incompatible pointer type [-Wincompatible-pointer-types]
  127 |                         avro_value_get_string(&last_value, &p, &size);
      |                                                            ^~
      |                                                            |
      |                                                            int32_t ** {aka int **}
/tmp/avro-release-1.11.3/lang/c/src/avro/value.h:408:60: note: in definition of macro ‘avro_value_call’
  408 |      (value)->iface->method((value)->iface, (value)->self, __VA_ARGS__))
      |                                                            ^~~~~~~~~~~
/tmp/avro-release-1.11.3/lang/c/examples/quickstop.c:127:25: note: in expansion of macro ‘avro_value_get_string’
  127 |                         avro_value_get_string(&last_value, &p, &size);
      |                         ^~~~~~~~~~~~~~~~~~~~~
/tmp/avro-release-1.11.3/lang/c/examples/quickstop.c:127:60: note: expected ‘const char **’ but argument is of type ‘int32_t **’ {aka ‘int **’}
  127 |                         avro_value_get_string(&last_value, &p, &size);
      |                                                            ^~
/tmp/avro-release-1.11.3/lang/c/src/avro/value.h:408:60: note: in definition of macro ‘avro_value_call’
  408 |      (value)->iface->method((value)->iface, (value)->self, __VA_ARGS__))
      |                                                            ^~~~~~~~~~~
/tmp/avro-release-1.11.3/lang/c/examples/quickstop.c:127:25: note: in expansion of macro ‘avro_value_get_string’
  127 |                         avro_value_get_string(&last_value, &p, &size);
      |                         ^~~~~~~~~~~~~~~~~~~~~
/tmp/avro-release-1.11.3/lang/c/examples/quickstop.c:128:45: warning: format ‘%s’ expects argument of type ‘char *’, but argument 3 has type ‘int32_t *’ {aka ‘int *’} [-Wformat=]
  128 |                         fprintf(stdout, "%15s | ", p);
      |                                          ~~~^      ~
      |                                             |      |
      |                                             char * int32_t * {aka int *}
      |                                          %15ls
/tmp/avro-release-1.11.3/lang/c/examples/quickstop.c:131:61: error: passing argument 3 of ‘phone_value.iface->get_string’ from incompatible pointer type [-Wincompatible-pointer-types]
  131 |                         avro_value_get_string(&phone_value, &p, &size);
      |                                                             ^~
      |                                                             |
      |                                                             int32_t ** {aka int **}
/tmp/avro-release-1.11.3/lang/c/src/avro/value.h:408:60: note: in definition of macro ‘avro_value_call’
  408 |      (value)->iface->method((value)->iface, (value)->self, __VA_ARGS__))
      |                                                            ^~~~~~~~~~~
/tmp/avro-release-1.11.3/lang/c/examples/quickstop.c:131:25: note: in expansion of macro ‘avro_value_get_string’
  131 |                         avro_value_get_string(&phone_value, &p, &size);
      |                         ^~~~~~~~~~~~~~~~~~~~~
/tmp/avro-release-1.11.3/lang/c/examples/quickstop.c:131:61: note: expected ‘const char **’ but argument is of type ‘int32_t **’ {aka ‘int **’}
  131 |                         avro_value_get_string(&phone_value, &p, &size);
      |                                                             ^~
/tmp/avro-release-1.11.3/lang/c/src/avro/value.h:408:60: note: in definition of macro ‘avro_value_call’
  408 |      (value)->iface->method((value)->iface, (value)->self, __VA_ARGS__))
      |                                                            ^~~~~~~~~~~
/tmp/avro-release-1.11.3/lang/c/examples/quickstop.c:131:25: note: in expansion of macro ‘avro_value_get_string’
  131 |                         avro_value_get_string(&phone_value, &p, &size);
      |                         ^~~~~~~~~~~~~~~~~~~~~
/tmp/avro-release-1.11.3/lang/c/examples/quickstop.c:132:45: warning: format ‘%s’ expects argument of type ‘char *’, but argument 3 has type ‘int32_t *’ {aka ‘int *’} [-Wformat=]
  132 |                         fprintf(stdout, "%15s | ", p);
      |                                          ~~~^      ~
      |                                             |      |
      |                                             char * int32_t * {aka int *}
      |                                          %15ls
/tmp/avro-release-1.11.3/lang/c/examples/quickstop.c:95:55: warning: unused parameter ‘reader_schema’ [-Wunused-parameter]
   95 | int print_person(avro_file_reader_t db, avro_schema_t reader_schema)
      |                                         ~~~~~~~~~~~~~~^~~~~~~~~~~~~
make[2]: *** [examples/CMakeFiles/quickstop.dir/build.make:76: examples/CMakeFiles/quickstop.dir/quickstop.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:397: examples/CMakeFiles/quickstop.dir/all] Error 2
make: *** [Makefile:166: all] Error 2
"""

ps: I don't know if here is the right place for this question.

Last edited by leonamS (2024-07-23 11:22:42)

Offline

#2 2024-07-15 09:38:30

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,368
Website

Re: [Solved] Error installing avro-c (yay and make)

Please edit your post to make use of code tags.

https://wiki.archlinux.org/title/Genera … s_and_code

Mod note: moving to AUR Issues.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2024-07-19 08:23:31

leonamS
Member
Registered: 2024-07-15
Posts: 11

Re: [Solved] Error installing avro-c (yay and make)

Code tags add, tks.

I updated the system (using yay) and tried again today, but the problem still happens hmm

Offline

#4 2024-07-19 12:34:05

loqs
Member
Registered: 2014-03-06
Posts: 17,978

Re: [Solved] Error installing avro-c (yay and make)

The failure is addressed by upstream commit AVRO-3957: [C] Fix typos in docs and examples (#2795). See Patching_packages#Applying_patches for how to apply it.  Diff of the changes I made applying the commit:

diff --git a/PKGBUILD b/PKGBUILD
index 1569bc4..f3892f0 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -14,9 +14,15 @@ optdepends=('asciidoc: build with documentation'
 url="https://github.com/apache/avro"
 license=('Apache')
 
-source=(${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/release-${pkgver}.tar.gz)
+source=(${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/release-${pkgver}.tar.gz
+         https://github.com/apache/avro/commit/52f051dbeefad0b7e73187becad6c33747b047d3.patch)
 
-sha256sums=('da377ac1cf8b91458bf702cbcfb214eecb5c399b267f0ca9c0aade6cabaf126e')
+sha256sums=('da377ac1cf8b91458bf702cbcfb214eecb5c399b267f0ca9c0aade6cabaf126e'
+            '9408db802c6c3b85591e443714ad5fe9b43a15bc90fae77e8ff2caa6abd0cc39')
+
+prepare() {
+  patch -Np1 -i ../52f051dbeefad0b7e73187becad6c33747b047d3.patch -d avro-release-$pkgver
+}
 
 build() {
   cd "$srcdir/avro-release-$pkgver/lang/c"

Offline

#5 2024-07-19 13:20:13

leonamS
Member
Registered: 2024-07-15
Posts: 11

Re: [Solved] Error installing avro-c (yay and make)

btw: I commented in avro-c package too: Avro-C package

Offline

#6 2024-07-19 13:44:53

loqs
Member
Registered: 2014-03-06
Posts: 17,978

Re: [Solved] Error installing avro-c (yay and make)

Did applying the patch resolve the issue for you?  With respect to why it is en error and not a warning,  the warning was converted to an error in gcc 14 see porting to gcc 14.

Offline

#7 2024-07-22 08:28:46

leonamS
Member
Registered: 2024-07-15
Posts: 11

Re: [Solved] Error installing avro-c (yay and make)

"Did applying the patch resolve the issue for you?"
No, I tried based on the AGTT comment:

https://aur.archlinux.org/packages/avro-c
AGTT commented on 2024-07-13 04:05 (WEST)
Hi @leonamS, Welcome to Linux!

I tried a plain compilation and it succeeded for me. That error should normally just be a warning, and it should not stop the compilation. I'm thinking that the bug could be in yay. Would you be able to try this to test it (for example)? (This is taken from PKGBUILD:build()):

$ wget -O /tmp/avro-1.11.3.tar.gz https://github.com/apache/avro/archive/refs/tags/release-1.11.3.tar.gz; $ tar -f /tmp/avro-1.11.3.tar.gz -C /tmp -x; $ mkdir /tmp/avro-c-1.11-3-build; $ cd /tmp/avro-c-1.11.3-build; $ cmake ../avro-release-1.11.3/lang/c -DCMAKE_BUILD_TYPE=None -DCMAKE_INSTALL_PREFIX=/usr -DTHREADSAFE=true -Wno-dev; $ make;

It this successfully compiles, then the problem could be in yay, and the next step would be to try to compile and create the AUR package by using makepkg and to try to install the created package by using pacman as described in the Wiki: https://wiki.archlinux.org/title/Arch_User_Repository#Installing_and_upgrading_packages

I hope this helps! If you need more help, I would say post a more detailed discussion in the forums (for example, in the Newbie Corner: https://bbs.archlinux.org/viewforum.php?id=23)? Post the link here to follow-up, if you would like. See you there!

I already read the Patching packages, I understood the idea of diff command, but I could not understand how to proceed, what I should being comparing?

Offline

#8 2024-07-22 10:08:16

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 12,873

Re: [Solved] Error installing avro-c (yay and make)

Loqs did the work for you and created the patch, all you need to do is apply it and report back.

Copy the diff loqs posted in #4 to a file (like avro-c-by-logs-v1.patch ), then apply it.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#9 2024-07-22 12:32:36

leonamS
Member
Registered: 2024-07-15
Posts: 11

Re: [Solved] Error installing avro-c (yay and make)

Sry, but how can I do this?

I have to create the PKGBUILD file with this content?

diff --git a/PKGBUILD b/PKGBUILD
index 1569bc4..f3892f0 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -14,9 +14,15 @@ optdepends=('asciidoc: build with documentation'
 url="https://github.com/apache/avro"
 license=('Apache')
 
-source=(${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/release-${pkgver}.tar.gz)
+source=(${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/release-${pkgver}.tar.gz
+         https://github.com/apache/avro/commit/52f051dbeefad0b7e73187becad6c33747b047d3.patch)
 
-sha256sums=('da377ac1cf8b91458bf702cbcfb214eecb5c399b267f0ca9c0aade6cabaf126e')
+sha256sums=('da377ac1cf8b91458bf702cbcfb214eecb5c399b267f0ca9c0aade6cabaf126e'
+            '9408db802c6c3b85591e443714ad5fe9b43a15bc90fae77e8ff2caa6abd0cc39')
+
+prepare() {
+  patch -Np1 -i ../52f051dbeefad0b7e73187becad6c33747b047d3.patch -d avro-release-$pkgver
+}
 
 build() {
   cd "$srcdir/avro-release-$pkgver/lang/c"

Offline

#10 2024-07-22 12:47:11

loqs
Member
Registered: 2014-03-06
Posts: 17,978

Re: [Solved] Error installing avro-c (yay and make)

leonamS wrote:

Sry, but how can I do this?

I have to create the PKGBUILD file with this content?

I provided a patch you have to apply to the PKGBUILD for example if you named the patch PKGBUILD.patch then:

git clone https://aur.archlinux.org/avro-c.git
cd avro-c.git
$ git apply -v path/to/PKGBUILD.patch

Offline

#11 2024-07-22 12:54:24

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 12,873

Re: [Solved] Error installing avro-c (yay and make)

Incase you encounter issues following loqs post, here's a more elaborate description .

in the folder where the PKGBUILD resides :

$ touch avro-c-by-logs-v1.patch

to create a new empty file .

Open avro-c-by-logs-v1.patch in your favorite text editor and copy the entire content of the patch into it.

run

$ patch -Np1 -i avro-c-by-logs-v1.patch

The changes from loqs will now have been applied to the PKGBUILD .

try to build it with this changed PKGBUILD and let us know how it goes.

Last edited by Lone_Wolf (2024-07-22 12:56:04)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#12 2024-07-22 13:22:31

leonamS
Member
Registered: 2024-07-15
Posts: 11

Re: [Solved] Error installing avro-c (yay and make)

  
git apply --verbose PKGBUILD_leo.patch                                                                                                                                                                 130 ↵
error: No valid patches in input (allow with "--allow-empty")

... trying

Last edited by leonamS (2024-07-22 13:51:38)

Offline

#13 2024-07-22 13:25:52

loqs
Member
Registered: 2014-03-06
Posts: 17,978

Re: [Solved] Error installing avro-c (yay and make)

╰─➤  git apply --verbose PKGBUILD_leo.patch                                                                                                                                                                 130 ↵
error: No valid patches in input (allow with "--allow-empty")

Please post the contents of PKGBUILD_leo.patch

Offline

#14 2024-07-22 13:26:56

leonamS
Member
Registered: 2024-07-15
Posts: 11

Re: [Solved] Error installing avro-c (yay and make)

I was looking to the wrong file loqs (facepalm), sry about that, I'll try again.

Last edited by leonamS (2024-07-22 13:29:55)

Offline

#15 2024-07-22 13:27:36

leonamS
Member
Registered: 2024-07-15
Posts: 11

Re: [Solved] Error installing avro-c (yay and make)

Now I got the right response:

╰─➤  git apply --verbose PKGBUILD_leo.patch                                                                                                                                                                 130 ↵
Checking patch PKGBUILD...
Applied patch PKGBUILD cleanly.

Offline

#16 2024-07-22 13:41:43

leonamS
Member
Registered: 2024-07-15
Posts: 11

Re: [Solved] Error installing avro-c (yay and make)

The makepkg worked, I'll add a new post here with all steps I take.
I'll try to install the kcat (finally).

Thank you!


makepkg                                                                                                                                                                                                130 ↵
==> Making package: avro-c 1.11.3-1 (seg 22 jul 2024 14:31:13)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found avro-c-1.11.3.tar.gz
  -> Downloading 52f051dbeefad0b7e73187becad6c33747b047d3.patch...


.....
==> Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Stripping unneeded symbols from binaries and libraries...
  -> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "avro-c"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: avro-c 1.11.3-1 (seg 22 jul 2024 14:36:46)

Offline

#17 2024-07-22 13:50:41

leonamS
Member
Registered: 2024-07-15
Posts: 11

Re: [Solved] Error installing avro-c (yay and make)

After this PKGBUILD being generated, I used on yay instead the PKGBUILD default and worked perfectly.

kcat installed and tested.


Thank you all!

Offline

#18 2024-07-23 11:08:12

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 12,873

Re: [Solved] Error installing avro-c (yay and make)

If you're satisfied with the outcome, please prepend [Solved] to the thread title (edit first post) .


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#19 2024-07-23 11:23:36

leonamS
Member
Registered: 2024-07-15
Posts: 11

Re: [Solved] Error installing avro-c (yay and make)

Done!
And tks again.

Offline

#20 2024-07-28 04:52:36

dhararon
Member
Registered: 2024-07-28
Posts: 1

Re: [Solved] Error installing avro-c (yay and make)

Thanks i follow the steps and its working.

I left my steps using paru if any else have the same thing.

 cd /tmp/ && paru -G avro-c && cd avro-c/ && touch avro-c-by-logs-v1.patch

then i added the loqs content to avro-c-by-logs-v1.patch

index 1569bc4..f3892f0 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -14,9 +14,15 @@ optdepends=('asciidoc: build with documentation'
 url="https://github.com/apache/avro"
 license=('Apache')
 
-source=(${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/release-${pkgver}.tar.gz)
+source=(${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/release-${pkgver}.tar.gz
+         https://github.com/apache/avro/commit/52f051dbeefad0b7e73187becad6c33747b047d3.patch)
 
-sha256sums=('da377ac1cf8b91458bf702cbcfb214eecb5c399b267f0ca9c0aade6cabaf126e')
+sha256sums=('da377ac1cf8b91458bf702cbcfb214eecb5c399b267f0ca9c0aade6cabaf126e'
+            '9408db802c6c3b85591e443714ad5fe9b43a15bc90fae77e8ff2caa6abd0cc39')
+
+prepare() {
+  patch -Np1 -i ../52f051dbeefad0b7e73187becad6c33747b047d3.patch -d avro-release-$pkgver
+}
 
 build() {
   cd "$srcdir/avro-release-$pkgver/lang/c"

and finally i run

patch -Np1 -i avro-c-by-logs-v1.patch && paru -Ui

Offline

Board footer

Powered by FluxBB