Hi,
how about make clean before make?
/// Jürgen
On 4/30/19 2:17 AM, Christian Robert
wrote:
Can no
longer build on on Fedora 28 at svn 1146
address@hidden:/home/xtian/gnuapl] $ make -j3
[...]
mv -f .deps/apl-Workspace.Tpo .deps/apl-Workspace.Po
/bin/sh ../libtool --tag=CXX --mode=link g++ -Wall -I sql
-Werror -rdynamic -g -O2 -o apl apl-main.o apl-Archive.o
apl-ArrayIterator.o apl-Assert.o apl-Avec.o apl-Backtrace.o
apl-Bif_F12_FORMAT.o apl-Bif_F12_SORT.o apl-Bif_OPER1_COMMUTE.o
apl-Bif_OPER1_EACH.o apl-Bif_OPER2_POWER.o apl-Bif_OPER2_INNER.o
apl-Bif_OPER2_OUTER.o apl-Bif_OPER2_RANK.o apl-Bif_OPER1_REDUCE.o
apl-Bif_OPER1_SCAN.o apl-CDR.o apl-Cell.o apl-Doxy.o
apl-CharCell.o apl-Command.o apl-Common.o apl-ComplexCell.o
apl-configure_args.o apl-DiffOut.o apl-DynamicObject.o apl-Error.o
apl-Executable.o apl-FloatCell.o apl-Function.o
apl-DerivedFunction.o apl-Id.o apl-IndexExpr.o apl-IndexIterator.o
apl-InputFile.o apl-IntCell.o apl-IO_Files.o apl-LApack.o
apl-LibPaths.o apl-LineInput.o apl-Logging.o apl-LvalCell.o
apl-Malloc_hooks.o apl-Nabla.o apl-Macro.o apl-NamedObject.o
apl-NativeFunction.o apl-NumericCell.o apl-Output.o apl-Parser.o
apl-Prefix.o apl-PointerCell.o apl-PrimitiveFunction.o
apl-PrimitiveOperator.o apl-PrintBuffer.o apl-QuadFunction.o
apl-ProcessorID.o apl-Quad_CR.o apl-Quad_DLX.o apl-Quad_FFT.o
apl-Quad_FIO.o apl-Quad_FX.o apl-Quad_GTK.o apl-Quad_PLOT.o
apl-Quad_RE.o apl-Quad_RL.o apl-Quad_SQL.o apl-Quad_SVx.o
apl-Quad_TF.o apl-Quad_WA.o apl-Parallel.o apl-Performance.o
apl-RealCell.o apl-sbrk.o apl-Shape.o apl-ScalarFunction.o
apl-Security.o apl-StateIndicator.o apl-Svar_DB.o
apl-Svar_record.o apl-Symbol.o apl-SymbolTable.o
apl-SystemVariable.o apl-TabExpansion.o apl-Thread_context.o
apl-Token.o apl-Tokenizer.o apl-UCS_string.o
apl-UCS_string_vector.o apl-UserFunction.o
apl-UserFunction_header.o apl-UserPreferences.o apl-UTF8_string.o
apl-Value.o apl-ValueHistory.o apl-Workspace.o
apl-static_Objects.o -ldl -lpthread -lm -ldl -lpthread -lm
libtool: link: g++ -Wall -I sql -Werror -rdynamic -g -O2 -o apl
apl-main.o apl-Archive.o apl-ArrayIterator.o apl-Assert.o
apl-Avec.o apl-Backtrace.o apl-Bif_F12_FORMAT.o apl-Bif_F12_SORT.o
apl-Bif_OPER1_COMMUTE.o apl-Bif_OPER1_EACH.o apl-Bif_OPER2_POWER.o
apl-Bif_OPER2_INNER.o apl-Bif_OPER2_OUTER.o apl-Bif_OPER2_RANK.o
apl-Bif_OPER1_REDUCE.o apl-Bif_OPER1_SCAN.o apl-CDR.o apl-Cell.o
apl-Doxy.o apl-CharCell.o apl-Command.o apl-Common.o
apl-ComplexCell.o apl-configure_args.o apl-DiffOut.o
apl-DynamicObject.o apl-Error.o apl-Executable.o apl-FloatCell.o
apl-Function.o apl-DerivedFunction.o apl-Id.o apl-IndexExpr.o
apl-IndexIterator.o apl-InputFile.o apl-IntCell.o apl-IO_Files.o
apl-LApack.o apl-LibPaths.o apl-LineInput.o apl-Logging.o
apl-LvalCell.o apl-Malloc_hooks.o apl-Nabla.o apl-Macro.o
apl-NamedObject.o apl-NativeFunction.o apl-NumericCell.o
apl-Output.o apl-Parser.o apl-Prefix.o apl-PointerCell.o
apl-PrimitiveFunction.o apl-PrimitiveOperator.o apl-PrintBuffer.o
apl-QuadFunction.o apl-ProcessorID.o apl-Quad_CR.o apl-Quad_DLX.o
apl-Quad_FFT.o apl-Quad_FIO.o apl-Quad_FX.o apl-Quad_GTK.o
apl-Quad_PLOT.o apl-Quad_RE.o apl-Quad_RL.o apl-Quad_SQL.o
apl-Quad_SVx.o apl-Quad_TF.o apl-Quad_WA.o apl-Parallel.o
apl-Performance.o apl-RealCell.o apl-sbrk.o apl-Shape.o
apl-ScalarFunction.o apl-Security.o apl-StateIndicator.o
apl-Svar_DB.o apl-Svar_record.o apl-Symbol.o apl-SymbolTable.o
apl-SystemVariable.o apl-TabExpansion.o apl-Thread_context.o
apl-Token.o apl-Tokenizer.o apl-UCS_string.o
apl-UCS_string_vector.o apl-UserFunction.o
apl-UserFunction_header.o apl-UserPreferences.o apl-UTF8_string.o
apl-Value.o apl-ValueHistory.o apl-Workspace.o
apl-static_Objects.o -ldl -lpthread -lm
apl-Quad_PLOT.o: In function
`__static_initialization_and_destruction_0':
/home/xtian/gnuapl/src/Quad_PLOT.cc:25: undefined reference to
`Quad_PLOT::Quad_PLOT()'
/home/xtian/gnuapl/src/Quad_PLOT.cc:25: undefined reference to
`Quad_PLOT::~Quad_PLOT()'
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:940: apl] Error 1
make[3]: Leaving directory '/home/xtian/gnuapl/src'
make[2]: *** [Makefile:3448: all-recursive] Error 1
make[2]: Leaving directory '/home/xtian/gnuapl/src'
make[1]: *** [Makefile:522: all-recursive] Error 1
make[1]: Leaving directory '/home/xtian/gnuapl'
make: *** [Makefile:409: all] Error 2
address@hidden:/home/xtian/gnuapl] $ cat ../gnuapl.prepare
#!/bin/bash
cd ~/gnuapl
make distclean
./configure DYNAMIC_LOG_WANTED=yes
address@hidden:/home/xtian/gnuapl] $
On 2019-04-29 12:41, Dr. Jürgen Sauermann wrote:
Hi,
after investigating the link below that was kindly provided by
Jay, it seems like
*sem_init()* is not only deprecated on Darwin, but entirely
broken.
I have changed the implementation in *SVN 1144* to use named
semaphores on
all systems that raise a warning when *sem_init()* is being used
(supposedly including
Darwin but maybe other Apples as well).
In order to to properly detect if *sem_init()* works on your
system, the warning
*-Wdeprecated* *MUST NOT BE DISABLED *(e.g. by means
of*-Wno**deprecated*
or similar).
For this change, .*/configure* is needed after updating from
SVN.
GNU/Linux systems are not affected by this problem.
Best Regards,
/// Jürgen
On 4/29/19 11:36 AM, Dr. Jürgen Sauermann wrote:
Hi Jay,
thanks a lot. I will look into using sem_open() instead of
sem_init().
/// Jürgen
On 4/29/19 10:15 AM, Jay Foad wrote:
According to stackoverflow, Darwin
doesn't support unnamed semaphores, so sem_init is
deprecated and always returns failure, and you should use
named semaphores (sem_open) instead.
https://stackoverflow.com/questions/1413785/sem-init-on-os-x/1452182
Jay.
|