@Xwang: you need to install java 8 and/or enable the java version. learn more: https://wiki.archlinux.org/index.php/Java#Switching_between_JVM
for build of jgraphx 3.7.4
on manjaro I adjusted simply the pkgver
and the value of sha256sums
in the build script:
pkgname=jgraphx
pkgver=3.7.4
pkgrel=1
pkgdesc="Open source graph drawing component."
arch=('any')
url="https://github.com/jgraph/jgraphx"
license=('BSD')
depends=('java-runtime')
source=( "${pkgname}-v${pkgver}.tar.gz::https://github.com/jgraph/jgraphx/archive/v${pkgver}.tar.gz"
)
sha256sums=('e73f5ee1d8a380992206fa9fe19279c6ceff4c31172b188d268203888e65dfc3')
package() {
cd "${srcdir}/jgraphx-${pkgver}"
install -Dm644 "license.txt" \
"${pkgdir}/usr/share/licenses/${pkgname}/license.txt"
install -Dm644 "lib/jgraphx.jar" \
"${pkgdir}/usr/share/java/${pkgname}/${pkgname}.jar"
}
# vim:set ts=2 sw=2 et:
that compiled without problems
@bartus Thank you very much for this advice! jgraphx is now accepted by scilab build script.
But unfortunately it failed again to build scilab 6.1.0-2
.
Cause I assume the code is correct I don't know where to look at, again.
Here is a snippet, may someone knows more than me (thank you in advance!):
[...]
Making all in functions_manager
make[2]: Entering directory '/var/tmp/pamac-build-mes/scilab/src/scilab-6.1.0/modules/functions_manager'
/bin/sh ../../libtool --tag=CXX --mode=compile g++ -std=c++17 -DHAVE_CONFIG_H -I. -I../../modules/core/includes -I./includes/ -I../../modules/ast/includes/ast/ -I../../modules/ast/includes/exps/ -I../../modules/ast/includes/operations/ -I../../modules/ast/includes/parse/ -I../../modules/ast/includes/symbol/ -I../../modules/ast/includes/system_env/ -I../../modules/ast/includes/types/ -I../../modules/ast/includes/analysis/ -I../../modules/dynamic_link/includes -I../../modules/api_scilab/includes/ -I../../modules/console/includes/ -I../../modules/core/includes/ -I../../modules/elementary_functions/includes/ -I../../modules/fileio/includes/ -I../../modules/jvm/includes/ -I../../modules/localization/includes/ -I../../modules/output_stream/includes/ -I../../modules/signal_processing/includes/ -I../../modules/string/includes/ -I../../modules/threads/includes/ -I/usr/include/libxml2 -D_FORTIFY_SOURCE=2 -DNDEBUG -g1 -O2 -fno-stack-protector -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -MT src/cpp/libscifunctions_manager_la-funcmanager.lo -MD -MP -MF src/cpp/.deps/libscifunctions_manager_la-funcmanager.Tpo -c -o src/cpp/libscifunctions_manager_la-funcmanager.lo `test -f 'src/cpp/funcmanager.cpp' || echo './'`src/cpp/funcmanager.cpp
/bin/sh ../../libtool --tag=CXX --mode=compile g++ -std=c++17 -DHAVE_CONFIG_H -I. -I../../modules/core/includes -I./includes/ -I../../modules/ast/includes/ast/ -I../../modules/ast/includes/exps/ -I../../modules/ast/includes/operations/ -I../../modules/ast/includes/parse/ -I../../modules/ast/includes/symbol/ -I../../modules/ast/includes/system_env/ -I../../modules/ast/includes/types/ -I../../modules/ast/includes/analysis/ -I../../modules/dynamic_link/includes -I../../modules/api_scilab/includes/ -I../../modules/console/includes/ -I../../modules/core/includes/ -I../../modules/elementary_functions/includes/ -I../../modules/fileio/includes/ -I../../modules/jvm/includes/ -I../../modules/localization/includes/ -I../../modules/output_stream/includes/ -I../../modules/signal_processing/includes/ -I../../modules/string/includes/ -I../../modules/threads/includes/ -I/usr/include/libxml2 -D_FORTIFY_SOURCE=2 -DNDEBUG -g1 -O2 -fno-stack-protector -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -MT src/cpp/libscifunctions_manager_la-dynamic_modules.lo -MD -MP -MF src/cpp/.deps/libscifunctions_manager_la-dynamic_modules.Tpo -c -o src/cpp/libscifunctions_manager_la-dynamic_modules.lo `test -f 'src/cpp/dynamic_modules.cpp' || echo './'`src/cpp/dynamic_modules.cpp
/bin/sh ../../libtool --tag=CXX --mode=compile g++ -std=c++17 -DHAVE_CONFIG_H -I. -I../../modules/core/includes -I./includes/ -I../../modules/ast/includes/ast/ -I../../modules/ast/includes/exps/ -I../../modules/ast/includes/operations/ -I../../modules/ast/includes/parse/ -I../../modules/ast/includes/symbol/ -I../../modules/ast/includes/system_env/ -I../../modules/ast/includes/types/ -I../../modules/ast/includes/analysis/ -I../../modules/dynamic_link/includes -I../../modules/api_scilab/includes/ -I../../modules/console/includes/ -I../../modules/core/includes/ -I../../modules/elementary_functions/includes/ -I../../modules/fileio/includes/ -I../../modules/jvm/includes/ -I../../modules/localization/includes/ -I../../modules/output_stream/includes/ -I../../modules/signal_processing/includes/ -I../../modules/string/includes/ -I../../modules/threads/includes/ -I/usr/include/libxml2 -D_FORTIFY_SOURCE=2 -DNDEBUG -g1 -O2 -fno-stack-protector -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -MT src/cpp/libscifunctions_manager_la-functions_manager.lo -MD -MP -MF src/cpp/.deps/libscifunctions_manager_la-functions_manager.Tpo -c -o src/cpp/libscifunctions_manager_la-functions_manager.lo `test -f 'src/cpp/functions_manager.cpp' || echo './'`src/cpp/functions_manager.cpp
libtool: compile: g++ -std=c++17 -DHAVE_CONFIG_H -I. -I../../modules/core/includes -I./includes/ -I../../modules/ast/includes/ast/ -I../../modules/ast/includes/exps/ -I../../modules/ast/includes/operations/ -I../../modules/ast/includes/parse/ -I../../modules/ast/includes/symbol/ -I../../modules/ast/includes/system_env/ -I../../modules/ast/includes/types/ -I../../modules/ast/includes/analysis/ -I../../modules/dynamic_link/includes -I../../modules/api_scilab/includes/ -I../../modules/console/includes/ -I../../modules/core/includes/ -I../../modules/elementary_functions/includes/ -I../../modules/fileio/includes/ -I../../modules/jvm/includes/ -I../../modules/localization/includes/ -I../../modules/output_stream/includes/ -I../../modules/signal_processing/includes/ -I../../modules/string/includes/ -I../../modules/threads/includes/ -I/usr/include/libxml2 -D_FORTIFY_SOURCE=2 -DNDEBUG -g1 -O2 -fno-stack-protector -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -MT src/cpp/libscifunctions_manager_la-functions_manager.lo -MD -MP -MF src/cpp/.deps/libscifunctions_manager_la-functions_manager.Tpo -c src/cpp/functions_manager.cpp -fPIC -DPIC -o src/cpp/.libs/libscifunctions_manager_la-functions_manager.o
libtool: compile: g++ -std=c++17 -DHAVE_CONFIG_H -I. -I../../modules/core/includes -I./includes/ -I../../modules/ast/includes/ast/ -I../../modules/ast/includes/exps/ -I../../modules/ast/includes/operations/ -I../../modules/ast/includes/parse/ -I../../modules/ast/includes/symbol/ -I../../modules/ast/includes/system_env/ -I../../modules/ast/includes/types/ -I../../modules/ast/includes/analysis/ -I../../modules/dynamic_link/includes -I../../modules/api_scilab/includes/ -I../../modules/console/includes/ -I../../modules/core/includes/ -I../../modules/elementary_functions/includes/ -I../../modules/fileio/includes/ -I../../modules/jvm/includes/ -I../../modules/localization/includes/ -I../../modules/output_stream/includes/ -I../../modules/signal_processing/includes/ -I../../modules/string/includes/ -I../../modules/threads/includes/ -I/usr/include/libxml2 -D_FORTIFY_SOURCE=2 -DNDEBUG -g1 -O2 -fno-stack-protector -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -MT src/cpp/libscifunctions_manager_la-funcmanager.lo -MD -MP -MF src/cpp/.deps/libscifunctions_manager_la-funcmanager.Tpo -c src/cpp/funcmanager.cpp -fPIC -DPIC -o src/cpp/.libs/libscifunctions_manager_la-funcmanager.o
libtool: compile: g++ -std=c++17 -DHAVE_CONFIG_H -I. -I../../modules/core/includes -I./includes/ -I../../modules/ast/includes/ast/ -I../../modules/ast/includes/exps/ -I../../modules/ast/includes/operations/ -I../../modules/ast/includes/parse/ -I../../modules/ast/includes/symbol/ -I../../modules/ast/includes/system_env/ -I../../modules/ast/includes/types/ -I../../modules/ast/includes/analysis/ -I../../modules/dynamic_link/includes -I../../modules/api_scilab/includes/ -I../../modules/console/includes/ -I../../modules/core/includes/ -I../../modules/elementary_functions/includes/ -I../../modules/fileio/includes/ -I../../modules/jvm/includes/ -I../../modules/localization/includes/ -I../../modules/output_stream/includes/ -I../../modules/signal_processing/includes/ -I../../modules/string/includes/ -I../../modules/threads/includes/ -I/usr/include/libxml2 -D_FORTIFY_SOURCE=2 -DNDEBUG -g1 -O2 -fno-stack-protector -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -MT src/cpp/libscifunctions_manager_la-dynamic_modules.lo -MD -MP -MF src/cpp/.deps/libscifunctions_manager_la-dynamic_modules.Tpo -c src/cpp/dynamic_modules.cpp -fPIC -DPIC -o src/cpp/.libs/libscifunctions_manager_la-dynamic_modules.o
mv -f src/cpp/.deps/libscifunctions_manager_la-functions_manager.Tpo src/cpp/.deps/libscifunctions_manager_la-functions_manager.Plo
In file included from /usr/include/unicode/uenum.h:23,
from /usr/include/unicode/ucnv.h:53,
from /usr/include/libxml2/libxml/encoding.h:31,
from /usr/include/libxml2/libxml/parser.h:810,
from /usr/include/libxml2/libxml/xmlerror.h:10,
from /usr/include/libxml2/libxml/xpath.h:26,
from src/cpp/dynamic_modules.cpp:27:
/usr/include/unicode/localpointer.h:67:1: error: template with C linkage
67 | template<typename T>
| ^~~~~~~~
src/cpp/dynamic_modules.cpp:21:1: note: ‘extern "C"’ linkage started here
21 | extern "C"
| ^~~~~~~~~~
In file included from /usr/include/unicode/uenum.h:23,
from /usr/include/unicode/ucnv.h:53,
from /usr/include/libxml2/libxml/encoding.h:31,
from /usr/include/libxml2/libxml/parser.h:810,
from /usr/include/libxml2/libxml/xmlerror.h:10,
from /usr/include/libxml2/libxml/xpath.h:26,
from src/cpp/dynamic_modules.cpp:27:
/usr/include/unicode/localpointer.h:190:1: error: template with C linkage
190 | template<typename T>
| ^~~~~~~~
src/cpp/dynamic_modules.cpp:21:1: note: ‘extern "C"’ linkage started here
21 | extern "C"
| ^~~~~~~~~~
In file included from /usr/include/unicode/uenum.h:23,
from /usr/include/unicode/ucnv.h:53,
from /usr/include/libxml2/libxml/encoding.h:31,
from /usr/include/libxml2/libxml/parser.h:810,
from /usr/include/libxml2/libxml/xmlerror.h:10,
from /usr/include/libxml2/libxml/xpath.h:26,
from src/cpp/dynamic_modules.cpp:27:
/usr/include/unicode/localpointer.h:365:1: error: template with C linkage
365 | template<typename T>
| ^~~~~~~~
src/cpp/dynamic_modules.cpp:21:1: note: ‘extern "C"’ linkage started here
21 | extern "C"
| ^~~~~~~~~~
In file included from /usr/include/unicode/uenum.h:23,
from /usr/include/unicode/ucnv.h:53,
from /usr/include/libxml2/libxml/encoding.h:31,
from /usr/include/libxml2/libxml/parser.h:810,
from /usr/include/libxml2/libxml/xmlerror.h:10,
from /usr/include/libxml2/libxml/xpath.h:26,
from src/cpp/dynamic_modules.cpp:27:
/usr/include/unicode/ucnv.h:585:1: error: conflicting declaration of C function ‘void icu_67::swap(icu_67::LocalUConverterPointer&, icu_67::LocalUConverterPointer&)’
585 | U_DEFINE_LOCAL_OPEN_POINTER(LocalUConverterPointer, UConverter, ucnv_close);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/unicode/uenum.h:68:1: note: previous declaration ‘void icu_67::swap(icu_67::LocalUEnumerationPointer&, icu_67::LocalUEnumerationPointer&)’
68 | U_DEFINE_LOCAL_OPEN_POINTER(LocalUEnumerationPointer, UEnumeration, uenum_close);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [Makefile:883: src/cpp/libscifunctions_manager_la-dynamic_modules.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
mv -f src/cpp/.deps/libscifunctions_manager_la-funcmanager.Tpo src/cpp/.deps/libscifunctions_manager_la-funcmanager.Plo
make[2]: Leaving directory '/var/tmp/pamac-build-mes/scilab/src/scilab-6.1.0/modules/functions_manager'
make[1]: *** [Makefile:844: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/pamac-build-mes/scilab/src/scilab-6.1.0/modules'
make: *** [Makefile:1608: all-recursive] Error 1
==> ERROR: A failure occurred in build().
Aborting...
Pinned Comments
carlosal1015 commented on 2024-11-17 18:01 (UTC)
Open issue https://gitlab.com/scilab/scilab/-/issues/16429