Skip to content

Instantly share code, notes, and snippets.

@jperkin
Created December 20, 2023 17:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jperkin/253ab95b37d4cd154cd90a35df76717a to your computer and use it in GitHub Desktop.
Save jperkin/253ab95b37d4cd154cd90a35df76717a to your computer and use it in GitHub Desktop.
--- pkg_io.o ---
pkg_io.c:81:20: error: incomplete definition of type 'struct url'
if (strcasecmp(url->scheme, SCHEME_HTTP) == 0 ||
~~~^
./lib.h:342:8: note: forward declaration of 'struct url'
struct url *find_best_package(const char *, const char *, int);
^
pkg_io.c:82:20: error: incomplete definition of type 'struct url'
strcasecmp(url->scheme, SCHEME_FTP) == 0)
~~~^
./lib.h:342:8: note: forward declaration of 'struct url'
struct url *find_best_package(const char *, const char *, int);
^
pkg_io.c:81:30: error: use of undeclared identifier 'SCHEME_HTTP'
if (strcasecmp(url->scheme, SCHEME_HTTP) == 0 ||
^
pkg_io.c:82:30: error: use of undeclared identifier 'SCHEME_FTP'
strcasecmp(url->scheme, SCHEME_FTP) == 0)
^
4 errors generated.
*** [pkg_io.o] Error code 1
bmake[1]: stopped in /tmp/pkgsrc-macos11-trunk-arm64/pkg_install/lib
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment