bug-apl
[Top][All Lists]
Advanced

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

[Bug-apl] When compiling on Debian 13.10, get link error


From: Elias Mårtenson
Subject: [Bug-apl] When compiling on Debian 13.10, get link error
Date: Wed, 25 Dec 2013 02:29:57 +0800

On one of the systems I'm using (the only Debian 13.10 system), I'm always getting an error when linking. On other Linuxes (for example, my Arch system at work) this does not happen. The link error is below.

I usually work around the problem by manually adding -lreadline to the link flags in the generated Makefile, but I'm sure there is a proper solution. Unfortunately I'm not good enough with autoconf to figure out why it fails.

Regards,
Elias

g++ -rdynamic  -DSYSCONFDIR=\"/home/elias/src/apl/dist/etc\" -g -O2  -lncurses -lpthread -lrt -lm -lblas -llapack  -lreadline -lncurses  -o apl apl-Archive.o apl-ArrayIterator.o apl-Assert.o apl-Avec.o apl-Backtrace.o apl-Bif_OPER1_COMMUTE.o apl-Bif_OPER1_EACH.o apl-Bif_OPER2_PRODUCT.o apl-Bif_OPER1_RANK.o apl-Bif_OPER1_REDUCE.o apl-Bif_OPER1_SCAN.o apl-CDR.o apl-Cell.o apl-CharCell.o apl-CollatingCache.o apl-Command.o apl-Common.o apl-ComplexCell.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-Input.o apl-IntCell.o apl-LApack.o apl-LibPaths.o apl-Logging.o apl-LvalCell.o apl-main.o apl-Malloc_hooks.o apl-Nabla.o apl-NamedObject.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_RL.o apl-Quad_SVx.o apl-Quad_TF.o apl-RealCell.o apl-Shape.o apl-SkalarFunction.o apl-StateIndicator.o apl-StaticObjects.o apl-Svar_DB.o apl-Symbol.o apl-SymbolTable.o apl-SystemVariable.o apl-TestFiles.o apl-Token.o apl-Tokenizer.o apl-UCS_string.o apl-UdpSocket.o apl-UserFunction.o apl-UTF8_string.o apl-Value.o apl-ValueHistory.o apl-Workspace.o  -lncurses -lpthread -lrt -lm -lblas -llapack 
apl-Input.o: In function `Input::init()':
/home/elias/src/apl/src/Input.cc:98: undefined reference to `rl_initialize'
/home/elias/src/apl/src/Input.cc:99: undefined reference to `stifle_history'
apl-Input.o: In function `Input::readline_version()':
/home/elias/src/apl/src/Input.cc:114: undefined reference to `rl_readline_version'
apl-Input.o: In function `Input::get_user_line(UCS_string const*)':
/home/elias/src/apl/src/Input.cc:243: undefined reference to `readline'
/home/elias/src/apl/src/Input.cc:258: undefined reference to `add_history'
/home/elias/src/apl/src/Input.cc:247: undefined reference to `readline'
apl-Input.o: In function `Input::get_user_line_1(UCS_string const*)':
/home/elias/src/apl/src/Input.cc:319: undefined reference to `rl_stuff_char'
/home/elias/src/apl/src/Input.cc:322: undefined reference to `readline'
apl-Input.o: In function `Input::get_quad_cr_line(UCS_string)':
/home/elias/src/apl/src/Input.cc:365: undefined reference to `rl_stuff_char'
/home/elias/src/apl/src/Input.cc:368: undefined reference to `readline'
apl-Input.o: In function `Input::init()':
/home/elias/src/apl/src/Input.cc:100: undefined reference to `read_history'
apl-Input.o: In function `Input::exit_readline()':
/home/elias/src/apl/src/Input.cc:225: undefined reference to `write_history'
collect2: error: ld returned 1 exit status
make[3]: *** [apl] Error 1
make[3]: Leaving directory `/home/elias/src/apl/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/elias/src/apl/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/elias/src/apl'
make: *** [all] Error 2


reply via email to

[Prev in Thread] Current Thread [Next in Thread]