Skip to content

Build fails #12

@Tchekda

Description

@Tchekda

Hi,
I am trying to port your package to NixOS but currently facing some issues at build time :

internal/unsafeheader
runtime/internal/sys
github.com/gotk3/gotk3/internal/slab
unicode
math/bits
unicode/utf8
internal/race
encoding
runtime/internal/atomic
sync/atomic
internal/cpu
runtime/cgo
runtime/internal/math
internal/bytealg
math
runtime
internal/reflectlite
sync
internal/testlog
github.com/gotk3/gotk3/internal/callback
errors
sort
internal/oserror
path
io
strconv
syscall
bytes
strings
reflect
bufio
regexp/syntax
internal/syscall/execenv
internal/syscall/unix
time
regexp
context
io/fs
internal/poll
embed
os
internal/fmtsort
path/filepath
fmt
io/ioutil
os/exec
github.com/gotk3/gotk3/internal/closure
log
net/url
text/template/parse
encoding/xml
github.com/gotk3/gotk3/glib
text/template
github.com/oxplot/pdfrankenstein/session
# github.com/oxplot/pdfrankenstein/session
session/session.go:21:61: undefined: any
note: module requires Go 1.18
# github.com/gotk3/gotk3/glib
cgo-gcc-prolog: In function '_cgo_26ff448d08b0_Cfunc_g_binding_get_source':
cgo-gcc-prolog:71:2: warning: 'g_binding_get_source' is deprecated: Use 'g_binding_dup_source' instead [-Wdeprecated-declarations]
In file included from /nix/store/9hvamg7jyhmcww590z2g0gy1f8rkil6m-glib-2.70.1-dev/include/glib-2.0/glib-object.h:22,
                 from /nix/store/9hvamg7jyhmcww590z2g0gy1f8rkil6m-glib-2.70.1-dev/include/glib-2.0/gio/gioenums.h:28,
                 from /nix/store/9hvamg7jyhmcww590z2g0gy1f8rkil6m-glib-2.70.1-dev/include/glib-2.0/gio/giotypes.h:28,
                 from /nix/store/9hvamg7jyhmcww590z2g0gy1f8rkil6m-glib-2.70.1-dev/include/glib-2.0/gio/gio.h:26,
                 from vendor/github.com/gotk3/gotk3/glib/gbinding.go:3:
/nix/store/9hvamg7jyhmcww590z2g0gy1f8rkil6m-glib-2.70.1-dev/include/glib-2.0/gobject/gbinding.h:113:23: note: declared here
  113 | GObject *             g_binding_get_source          (GBinding *binding);
      |                       ^~~~~~~~~~~~~~~~~~~~
cgo-gcc-prolog: In function '_cgo_26ff448d08b0_Cfunc_g_binding_get_target':
cgo-gcc-prolog:107:2: warning: 'g_binding_get_target' is deprecated: Use 'g_binding_dup_target' instead [-Wdeprecated-declarations]
In file included from /nix/store/9hvamg7jyhmcww590z2g0gy1f8rkil6m-glib-2.70.1-dev/include/glib-2.0/glib-object.h:22,
                 from /nix/store/9hvamg7jyhmcww590z2g0gy1f8rkil6m-glib-2.70.1-dev/include/glib-2.0/gio/gioenums.h:28,
                 from /nix/store/9hvamg7jyhmcww590z2g0gy1f8rkil6m-glib-2.70.1-dev/include/glib-2.0/gio/giotypes.h:28,
                 from /nix/store/9hvamg7jyhmcww590z2g0gy1f8rkil6m-glib-2.70.1-dev/include/glib-2.0/gio/gio.h:26,
                 from vendor/github.com/gotk3/gotk3/glib/gbinding.go:3:
/nix/store/9hvamg7jyhmcww590z2g0gy1f8rkil6m-glib-2.70.1-dev/include/glib-2.0/gobject/gbinding.h:117:23: note: declared here
  117 | GObject *             g_binding_get_target          (GBinding *binding);
      |                       ^~~~~~~~~~~~~~~~~~~~
github.com/gotk3/gotk3/cairo
github.com/gotk3/gotk3/pango
github.com/gotk3/gotk3/gdk
github.com/gotk3/gotk3/gtk

Please note that i'm not very experienced with Go and so this might be a stupid mistake from my side.

Installed dependencies : gtk3 glib gdk-pixbuf inkscape poppler_utils qpdf

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions