Query of type of memcpy (and sys_errlist) on Cygwin
Tatsuro MATSUOKA
tmacchant2@yahoo.co.jp
Mon Apr 11 08:13:00 GMT 2016
> From: Csaba Raduly
> To: Tatsuro MATSUOKA ; cygwin list
> Cc: Marco Atzeri ; Hans-Bernhard Bröker
> Date: 2016/4/11, Mon 16:52
> Subject: Re: Query of type of memcpy (and sys_errlist) on Cygwin
>
> Hi,
>
> On Mon, Apr 11, 2016 at 1:20 AM, Tatsuro MATSUOKA wrote:
>
>> The zipped config.log is placed here:
>> http://www.geocities.jp/tmacchant2/config.log.20160411.zip
>> The previous reply to Hans I made a mistake to extract the memcpy related
> part.
>> I apologize for that.
>> configure:9591: result: no
>> configure:9591: checking for memcpy
>> configure:9591: gcc -o conftest.exe -g -O2 -I/usr/local/include
> -L/usr/local/lib -lcerf conftest.c >&5
>> conftest.c:86:6: warning: conflicting types for built-in function
> 'memcpy'
>> char memcpy ();
>>
>
> You forgot to copy the important line from config.log:
>
> /usr/lib/gcc/x86_64-pc-cygwin/5.3.0/../../../../x86_64-pc-cygwin/bin/ld:
> cannot find -lcerf
>
> Why on earth does a test for memcpy try to link to libcerf?
>
> Csaba
Ah!
I configured with
LIBCERF_CFLAGS='-I/usr/local/include' \
LIBCERF_LIBS='-L/usr/local/lib -lcerf' \
../gnuplot/configure --prefix=/opt/gp510 --without-qt --with-caca --with-readline=builtin
I do not why configure add -lcerf.
Without
LIBCERF_CFLAGS='-I/usr/local/include' \
LIBCERF_LIBS='-L/usr/local/lib -lcerf' \
memcpy and other functions are correctly recognized
and make was went well.
But libcerf was not recognised.
This is gnuplot issue but not the Cygwin.
I will be back gnuplot ML and leave from the Cygwin list on this matter.
Thanks!
Tatsuro
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
More information about the Cygwin
mailing list