[MacPorts] #69693: libgit2-glib @1.2.0 does not build against libgit2-devel @1.8.0: error: implicit declaration of function 'git_error_set_str'

MacPorts noreply at macports.org
Sun Apr 7 20:09:20 UTC 2024


#69693: libgit2-glib @1.2.0 does not build against libgit2-devel @1.8.0: error:
implicit declaration of function 'git_error_set_str'
--------------------------+-----------------------------------------
 Reporter:  barracuda156  |      Owner:  (none)
     Type:  defect        |     Status:  new
 Priority:  Normal        |  Milestone:
Component:  ports         |    Version:  2.9.3
 Keywords:                |       Port:  libgit2-glib, libgit2-devel
--------------------------+-----------------------------------------
 {{{
 FAILED: libgit2-glib/libgit2-glib-1.0.0.dylib.p/ggit-clone-options.c.o
 /opt/local/bin/gcc-mp-13 -Ilibgit2-glib/libgit2-glib-1.0.0.dylib.p
 -Ilibgit2-glib -I../libgit2-glib-1.2.0/libgit2-glib -I.
 -I../libgit2-glib-1.2.0 -I/opt/local/include/glib-2.0
 -I/opt/local/lib/glib-2.0/include -I/opt/local/libexec/openssl3/include
 -I/opt/local/include -fdiagnostics-color=always -Wall -Winvalid-pch -O2 -g
 -ffast-math -fstrict-aliasing -Wpointer-arith -Wmissing-declarations
 -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs
 -Wold-style-definition -Wdeclaration-after-statement -Wunused
 -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute
 -Wredundant-decls -Wlogical-op -Wcast-align -Wno-unused-local-typedefs
 -Werror=implicit -Werror=init-self -Werror=main -Werror=missing-braces
 -Werror=return-type -Werror=array-bounds -Werror=write-strings
 -DLIBGIT2_GLIB_ENABLE_DEBUG -DG_DISABLE_CAST_CHECKS -pipe -Os -arch ppc
 -DGIT_SSH=1 '-DG_LOG_DOMAIN="Ggit"' -MD -MQ
 libgit2-glib/libgit2-glib-1.0.0.dylib.p/ggit-clone-options.c.o -MF
 libgit2-glib/libgit2-glib-1.0.0.dylib.p/ggit-clone-options.c.o.d -o
 libgit2-glib/libgit2-glib-1.0.0.dylib.p/ggit-clone-options.c.o -c
 ../libgit2-glib-1.2.0/libgit2-glib/ggit-clone-options.c
 ../libgit2-glib-1.2.0/libgit2-glib/ggit-clone-options.c: In function
 'create_repository_wrapper':
 ../libgit2-glib-1.2.0/libgit2-glib/ggit-clone-options.c:153:17: error:
 implicit declaration of function 'git_error_set_str'; did you mean
 'giterr_set_str'? [-Werror=implicit-function-declaration]
   153 |                 git_error_set_str (GIT_ERROR, error->message);
       |                 ^~~~~~~~~~~~~~~~~
       |                 giterr_set_str
 ../libgit2-glib-1.2.0/libgit2-glib/ggit-clone-options.c:153:17: warning:
 nested extern declaration of 'git_error_set_str' [-Wnested-externs]
 cc1: some warnings being treated as errors
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/69693>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list