pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/59855: Unable to build emacs30-nox11 package on mac os



>Number:         59855
>Category:       pkg
>Synopsis:       Unable to build emacs30-nox11 package on mac os
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Dec 23 10:20:01 +0000 2025
>Originator:     Onur Tokan
>Release:        2025Q4
>Organization:
>Environment:
/Users/onur/Downloads/pkgsrc/editors/emacs30-nox11 % uname -a
Darwin 192.168.1.100 23.6.0 Darwin Kernel Version 23.6.0: Wed Oct 15 21:15:11 PDT 2025; root:xnu-10063.141.1.707.11~1/RELEASE_ARM64_T8103 arm64
/Users/onur/Downloads/pkgsrc/editors/emacs30-nox11 % clang --version
Apple clang version 16.0.0 (clang-1600.0.26.6)
Target: arm64-apple-darwin23.6.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
>Description:
I got the following error when building emacs30-nox11 package. emacs-nox11 works fine but it builds 29.4 version.

/Users/onur/Downloads/pkgsrc/editors/emacs30-nox11 % sudo bmake install clean
=> Bootstrap dependency digest>=20211023: found digest-20220214
===> Skipping vulnerability checks.
WARNING: No /opt/pkg/pkgdb/pkg-vulnerabilities file found.
WARNING: To fix run: `/opt/pkg/sbin/pkg_admin -K /opt/pkg/pkgdb fetch-pkg-vulnerabilities'.
===> Building for emacs30-nox11-30.2
/opt/pkg/bin/gmake actual-all || /opt/pkg/bin/gmake advice-on-failure make-target=all exit-status=$?
gmake[1]: Entering directory '/Users/onur/Downloads/pkgsrc/editors/emacs30-nox11/work/emacs-30.2'
/opt/pkg/bin/gmake -C lib all
gmake[2]: Entering directory '/Users/onur/Downloads/pkgsrc/editors/emacs30-nox11/work/emacs-30.2/lib'
  CC       getopt1.o
getopt1.c:28:50: error: expected ')'
   28 | getopt_long (int argc, char *__getopt_argv_const *argv, const char *options,
      |                                                  ^
getopt1.c:28:13: note: to match this '('
   28 | getopt_long (int argc, char *__getopt_argv_const *argv, const char *options,
      |             ^
getopt1.c:28:1: error: conflicting types for 'getopt_long'
   28 | getopt_long (int argc, char *__getopt_argv_const *argv, const char *options,
      | ^
/Users/onur/Downloads/pkgsrc/editors/emacs30-nox11/work/.buildlink/include/getopt.h:62:5: note: previous declaration is here
   62 | int getopt_long(int, char * const *, const char *,
      |     ^
getopt1.c:31:44: error: use of undeclared identifier 'argv'
   31 |   return _getopt_internal (argc, (char **) argv, options, long_options,
      |                                            ^
getopt1.c:31:50: error: use of undeclared identifier 'options'; did you mean 'optind'?
   31 |   return _getopt_internal (argc, (char **) argv, options, long_options,
      |                                                  ^~~~~~~
      |                                                  optind
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/unistd.h:512:12: note: 'optind' declared here
  512 | extern int optind, opterr, optopt;
      |            ^
getopt1.c:31:59: error: use of undeclared identifier 'long_options'
   31 |   return _getopt_internal (argc, (char **) argv, options, long_options,
      |                                                           ^
getopt1.c:32:7: error: use of undeclared identifier 'opt_index'; did you mean 'optind'?
   32 |                            opt_index, 0, 0);
      |                            ^~~~~~~~~
      |                            optind
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/unistd.h:512:12: note: 'optind' declared here
  512 | extern int optind, opterr, optopt;
      |            ^
getopt1.c:50:55: error: expected ')'
   50 | getopt_long_only (int argc, char *__getopt_argv_const *argv,
      |                                                       ^
getopt1.c:50:18: note: to match this '('
   50 | getopt_long_only (int argc, char *__getopt_argv_const *argv,
      |                  ^
getopt1.c:54:44: error: use of undeclared identifier 'argv'
   54 |   return _getopt_internal (argc, (char **) argv, options, long_options,
      |                                            ^
getopt1.c:54:50: error: use of undeclared identifier 'options'; did you mean 'optind'?
   54 |   return _getopt_internal (argc, (char **) argv, options, long_options,
      |                                                  ^~~~~~~
      |                                                  optind
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/unistd.h:512:12: note: 'optind' declared here
  512 | extern int optind, opterr, optopt;
      |            ^
getopt1.c:54:59: error: use of undeclared identifier 'long_options'
   54 |   return _getopt_internal (argc, (char **) argv, options, long_options,
      |                                                           ^
getopt1.c:55:7: error: use of undeclared identifier 'opt_index'; did you mean 'optind'?
   55 |                            opt_index, 1, 0);
      |                            ^~~~~~~~~
      |                            optind
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/unistd.h:512:12: note: 'optind' declared here
  512 | extern int optind, opterr, optopt;
      |            ^
11 errors generated.
gmake[2]: *** [Makefile:103: getopt1.o] Error 1
gmake[2]: Leaving directory '/Users/onur/Downloads/pkgsrc/editors/emacs30-nox11/work/emacs-30.2/lib'
gmake[1]: *** [Makefile:537: lib] Error 2
gmake[1]: Leaving directory '/Users/onur/Downloads/pkgsrc/editors/emacs30-nox11/work/emacs-30.2'
gmake[1]: Entering directory '/Users/onur/Downloads/pkgsrc/editors/emacs30-nox11/work/emacs-30.2'
***
*** "make all" failed with exit status 2.
***
*** You could try to:
*** - run "make bootstrap", which might fix the problem
*** - run "make V=1", which displays the full commands invoked by make,
***   to further investigate the problem
***
gmake[1]: *** [Makefile:418: advice-on-failure] Error 2
gmake[1]: Leaving directory '/Users/onur/Downloads/pkgsrc/editors/emacs30-nox11/work/emacs-30.2'
gmake: *** [Makefile:374: all] Error 2
*** Error code 2

Stop.
bmake[1]: stopped making "install" in /Users/onur/Downloads/pkgsrc/editors/emacs30-nox11
*** Error code 1

Stop.
bmake: stopped making "install clean" in /Users/onur/Downloads/pkgsrc/editors/emacs30-nox11

>How-To-Repeat:

>Fix:


Home | Main Index | Thread Index | Old Index