bug-apl
[Top][All Lists]
Advanced

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

Re:


From: Dr . Jürgen Sauermann
Subject: Re:
Date: Mon, 21 Jun 2021 13:39:16 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0

As to your test file, you should use g++ instead of gcc.

On my box the following:

// compile with: g++ -o test test.c -L /usr/local/lib/apl -lapl

#include <stdio.h>
#include <stdlib.h>
#include <apl/libapl.h>

int main (int argc, char * argv[])
{
init_libapl(argv[0], false);

apl_exec("''");
apl_exec("'a'");

return 0;
}

works just fine:

eedjsa@server68:/tmp$ cp /usr/local/bin/APserver .
eedjsa@server68:/tmp$ g++ -o test test.c -L /usr/local/lib/apl -lapl
eedjsa@server68:/tmp$ ./test

a
eedjsa@server68:/tmp$


On 6/20/21 11:59 PM, enztec@gmx.com wrote:
Hi 

Jürgen - thanks for fixing the previous problem so quickly - my code are all running pretty nice

--

now with the libapl - isn't the apl program dependent on the libapl (i think like curl is with libcurl - though could be wrong)

configure --with-libapl --without-gtk3 --without-sqlite3 --without-postgresql --without-pcre

--

// libapl_test.c

#include <stdio.h>
#include <stdlib.h>
#include <apl/libapl.h>
//#include "/usr/local/include/apl/libapl.h"

int main (int argc, char * argv[])
{
init_libapl(argv[0], ;

apl_exec("''");        -> strace-log1.txt
apl_exec("'a'");      -> strace-log2.txt

return 0;
}

--

gcc libapl_test.c -L /usr/local/lib/apl -lapl -o libapl_test -O2 

--

libapl-test
Floating point exception

--

i have attached the strace logs 
strace-log1.txt   from  ''
and strace-log2.txt from 'a'


as you can see '' is good bu 'a' crashes it
I'm not sure what is wrong with the system that this is crashing on as i have others with good libapl

Thank you





reply via email to

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