This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Query of type of memcpy (and sys_errlist) on Cygwin
- From: Tatsuro MATSUOKA <tmacchant2 at yahoo dot co dot jp>
- To: Csaba Raduly <rcsaba at gmail dot com>, matsuoka at nuce dot nagoya-u dot ac dot jp, cygwin at cygwin dot com
- Cc: Marco Atzeri <marco dot atzeri at gmail dot com>, Hans-Bernhard Bröker <HBBroeker at t-online dot de>, sfeam <sfeam at users dot sourceforge dot net>
- Date: Mon, 11 Apr 2016 17:13:40 +0900 (JST)
- Subject: Re: Query of type of memcpy (and sys_errlist) on Cygwin
- Authentication-results: sourceware.org; auth=none
- References: <5707F2F0 dot 9050702 at gmail dot com> <5708CDB6 dot 1040500 at iki dot fi> <375427 dot 72225 dot qm at web101113 dot mail dot kks dot yahoo dot co dot jp> <5709FCDF dot 5010107 at gmail dot com> <173197 dot 72557 dot qm at web101116 dot mail dot kks dot yahoo dot co dot jp> <CAEhDDbCU_8C_mNw=fW4Gzp70URp8mgdeMhOARq-OOyO4vH5bXw at mail dot gmail dot com>
- Reply-to: Tatsuro MATSUOKA <matsuoka at nuce dot nagoya-u dot ac dot jp>
> 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