Hi Paul, Mike,

thanks, fixed in *SVN 1913*.

Best Regards,
Jürgen


On 11/20/25 18:53, Paul Rockwell wrote:
It's not you, Mike. I got the same error.

There appears to be an extraneous definition of the variable "var" at line 1433 of src/UserFunction.cc <http://UserFunction.cc> that is being flagged by the compiler. Just FYI - I'm running macOS 26.1 on Apple Silicon using the compiler in Xcode 26.1.1. The compiler is Apple clang version 17.0.0 (clang 1700.4.4.1)

Looking over the code, there is no use of that variable in the scope in which it's defined. I compiled SVN 1912 on Linux (Fedora 43, gcc 15.2.1) and get no error or warning displayed.

I simply commented the extraneous definition out. The compilation succeeded and I've not found any ill effects.

Here's the diff:

Index: src/UserFunction.cc

===================================================================

--- src/UserFunction.cc(revision 1912)

+++ src/UserFunction.cc(working copy)

@@ -1430,7 +1430,7 @@

       }

 vector<Symbol *> local_vars;

-UCS_string var;

+// UCS_string var;

    while (body.size() >= 2)

       {

         const Token & Tsem = body[body.size() - 2];


See if this works for you.

- Paul Rockwell

On Nov 20, 2025, at 11:39 AM, M.Hall <[email protected]> wrote:

I'm getting a compile error with SVN 1912; not sure what is goofy about my setup to cause it.

MacBook M3 running Sequoia 15.7.1
$  svn up
Updating '.':
At revision 1912.
$ ./configure --without-x
$ make clean
$ make
...
g++ -DHAVE_CONFIG_H -I. -I..    -Wall  -I sql -I /Volumes/ARCHIVE/Language/APL/gnu-apl/SVN  -g -O2 -I /Volumes/ARCHIVE/Language/APL/gnu-apl/SVN -MT apl-UserFunction.o -MD -MP -MF .deps/apl-UserFunction.Tpo -c -o apl-UserFunction.o `test -f 'UserFunction.cc' || echo './'`UserFunction.cc UserFunction.cc:1433:12: error: redefinition of 'var' with a different type: 'UCS_string' vs 'Symbol &'
 1433 | UCS_string var;
      |            ^
UserFunction.cc:1347:35: note: previous definition is here
 1347 | UserFunction::fix_lambda(Symbol & var, const UCS_string & text)
      |                                   ^
1 error generated.
make[3]: *** [apl-UserFunction.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

$ uname -a
Darwin MK3 24.6.0 Darwin Kernel Version 24.6.0: Mon Aug 11 21:16:31 PDT 2025; root:xnu-11417.140.69.701.11~1/RELEASE_ARM64_T6030 arm64

$ svn info
Path: .
Working Copy Root Path: /Volumes/XYZ/Language/APL/gnu-apl/SVN
URL: http://svn.savannah.gnu.org/svn/apl/trunk
Relative URL: ^/trunk
Repository Root: http://svn.savannah.gnu.org/svn/apl
Repository UUID: bd74f7bd-1a55-4bac-9fab-68015b139e80
Revision: 1912
Node Kind: directory
Schedule: normal
Last Changed Author: j_sauermann
Last Changed Rev: 1912
Last Changed Date: 2025-11-17 10:50:50 -0600 (Mon, 17 Nov 2025)

I'm happy to provide more info if needed.
Thanks!
--
Mike Hall



  • Compile error ... M.Hall
    • Re: Compi... Paul Rockwell
      • Re: C... Dr . Jürgen Sauermann via Bugs and suggestions for GNU APL
        • R... Blake McBride
          • ... M.Hall
            • ... Henrik Moller
            • ... Dr . Jürgen Sauermann via Bugs and suggestions for GNU APL

Reply via email to