On Wed, 27 Dec 2017, Riccardo (Jack) Lucchetti wrote:
On Tue, 26 Dec 2017, Allin Cottrell wrote:
> On Tue, 26 Dec 2017, Ignacio Diaz-Emparanza wrote:
>
>> Hi, I am obtaining this errors in trying to build gretl
>>
>> "Makefile:96: fallo en las instrucciones para el objetivo
'gretlcli'
>> make[1]: se sale del directorio '/home/ignacio/gretlcomp/gretl/cli'
>> Makefile:64: fallo en las instrucciones para el objetivo 'cli'
>> ../lib/.libs/libgretl-1.0.so: undefined reference to `shm_unlink'
>> ../lib/.libs/libgretl-1.0.so: undefined reference to `shm_open'
>> collect2: error: ld returned 1 exit status"
>>
>> Do you know why?
>
> Ah, looks like we need to add "-lrt" to the linker line for some systems.
> Is this on Ubuntu, Ignacio?
Happening on Debian too.
And yes, adding manually "-lrt" to the
LDFLAGS=
line in gui2/Makefile (line 10) fixes the issue. But of course this is not
the proper solution.
-------------------------------------------------------
Riccardo (Jack) Lucchetti
Dipartimento di Scienze Economiche e Sociali (DiSES)
Università Politecnica delle Marche
(formerly known as Università di Ancona)
r.lucchetti(a)univpm.it
http://www2.econ.univpm.it/servizi/hpp/lucchetti
-------------------------------------------------------