[Bug 1969227] [NEW] scilab 6.1.1+dfsg2-3 fail to build

Launchpad Bug Tracker 1969227 at bugs.launchpad.net
Fri Apr 15 14:33:02 UTC 2022


You have been subscribed to a public bug by Matthieu Clemenceau (mclemenceau):

scilab 6.1.1+dfsg2-3 was uploaded on Nov 11 2021 and has failed to build
ever since

https://launchpad.net/ubuntu/+source/scilab/6.1.1+dfsg2-3/+build/22400494

https://launchpadlibrarian.net/596601979/buildlog_ubuntu-jammy-
amd64.scilab_6.1.1+dfsg2-3_BUILDING.txt.gz

Here is the build error
../../modules/core/includes/pause.h:18:18: error: conflicting declaration of C function ‘void pause()’
   18 | CORE_IMPEXP void pause(void);
      |                  ^~~~~
In file included from /usr/include/x86_64-linux-gnu/bits/sigstksz.h:24,
                 from /usr/include/signal.h:328,
                 from ../../modules/threads/includes/Thread_Wrapper.h:53,
                 from ../../modules/ast/includes/system_env/threadmanagement.hxx:21,
                 from src/cpp/pause.cpp:15:
/usr/include/unistd.h:489:12: note: previous declaration ‘int pause()’
  489 | extern int pause (void);
      |            ^~~~~
src/cpp/pause.cpp:22:6: error: ambiguating new declaration of ‘void pause()’
   22 | void pause(void)
      |      ^~~~~
In file included from /usr/include/x86_64-linux-gnu/bits/sigstksz.h:24,
                 from /usr/include/signal.h:328,
                 from ../../modules/threads/includes/Thread_Wrapper.h:53,
                 from ../../modules/ast/includes/system_env/threadmanagement.hxx:21,
                 from src/cpp/pause.cpp:15:
/usr/include/unistd.h:489:12: note: old declaration ‘int pause()’
  489 | extern int pause (void);
      |            ^~~~~

It appears scilab core module has a function called pause that conflicts
with the standard unistd pause function.

I made a patch that allow scilab to build and I tested from my ppa.
This patch simply rename the function to scipause. This doesn't feel very elegant and there might be a better solution. I'll leave it up to more experience folks to decide if this needs rework :)

** Affects: scilab (Ubuntu)
     Importance: Undecided
         Status: New

-- 
scilab 6.1.1+dfsg2-3 fail to build 
https://bugs.launchpad.net/bugs/1969227
You received this bug notification because you are a member of Ubuntu Sponsors Team, which is subscribed to the bug report.




More information about the Ubuntu-sponsors mailing list