From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20075 invoked by alias); 10 Apr 2016 22:48:16 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 20060 invoked by uid 89); 10 Apr 2016 22:48:15 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.3 required=5.0 tests=AWL,BAYES_50,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 spammy=Related, freestanding, o2, H*MI:sk:5707F2F X-HELO: nh504-vm12.bullet.mail.kks.yahoo.co.jp Received: from nh504-vm12.bullet.mail.kks.yahoo.co.jp (HELO nh504-vm12.bullet.mail.kks.yahoo.co.jp) (183.79.57.98) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 10 Apr 2016 22:48:05 +0000 Received: from [183.79.100.141] by nh504.bullet.mail.kks.yahoo.co.jp with NNFMP; 10 Apr 2016 22:48:02 -0000 Received: from [183.79.101.63] by t504.bullet.mail.kks.yahoo.co.jp with NNFMP; 10 Apr 2016 22:48:02 -0000 Received: from [127.0.0.1] by omp507.mail.kks.yahoo.co.jp with NNFMP; 10 Apr 2016 22:48:02 -0000 Received: (qmail 85587 invoked by uid 60001); 10 Apr 2016 22:48:02 -0000 Message-ID: <80364.81544.qm@web101114.mail.kks.yahoo.co.jp> Received: from [133.6.57.2] by web101114.mail.kks.yahoo.co.jp via HTTP; Mon, 11 Apr 2016 07:48:01 JST X-YMail-JAS: UK7JFlkVM1kSvXyqdersZwJ9pci4CqM_3hGoKbC7ejk7vsO5qjYI.Br4H.U0ohfqdvsOYnAoCdWbVkuGHJFkuB7VIc275Cr1Rj44mD7VaKe9rJVnDYSFnTCSINjlU9x1P2f. References: <5707F2F0.9050702@gmail.com> <5708CDB6.1040500@iki.fi> <375427.72225.qm@web101113.mail.kks.yahoo.co.jp> <5709FC5D.3080603@t-online.de> Date: Sun, 10 Apr 2016 22:48:00 -0000 From: Tatsuro MATSUOKA Reply-To: Tatsuro MATSUOKA Subject: Re: Query of type of memcpy (and sys_errlist) on Cygwin To: =?utf-8?B?SGFucy1CZXJuaGFyZCBCcsO2a2Vy?= , cygwin@cygwin.com MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2016-04/txt/msg00195.txt.bz2 > From: Hans-Bernhard Br=C3=B6ker > To: cygwin@cygwin.com > Cc:=20 > Date: 2016/4/10, Sun 16:10 > Subject: Re: Query of type of memcpy (and sys_errlist) on Cygwin >=20 > Am 10.04.2016 um 05:14 schrieb Tatsuro MATSUOKA: >>=C2=A0 Hello >>=C2=A0 The topic was discussed on gnuplot mailing list. >>=20 > http://gnuplot.10905.n7.nabble.com/stdfn-h-error-conflicting-types-for-me= mcopy-and-sys-errlist-on-Cygwin-build-td20061.html >>=C2=A0 Frorm discussion there (the topic is now pending.) , >>=C2=A0 I decided ask here. >>=C2=A0 In compling gnuplot I have met errors: >>=C2=A0 ../../gnuplot/src/stdfn.h:67:8: error: conflicting types for=20 > 'memcpy' >> =C2=A0=C2=A0 char * memcpy __PROTO((char *, char *, size_t)); >=20 > Before everybody gets entirely confused, let me interject that this is qu= ite=20 > certainly not an actual problem about the memcpy() declaration itself, bu= t=20 > rather an extremely surprising failure of an autoconf-generated configure= =20 > script. >=20 > The configure script in question never failed like that in years of usage= .=C2=A0=20 > Well, setting aside occasional, remarkably stubborn rebase problems with= =20 > Cygwin's Perl DLLs, that is.=C2=A0 See the thread "makeinfo causes perl=20 > error ? Cygwin X86 download today=E2=80=8B" from last week, also started = by Tatsuro=20 > Matsuoka. The zipped config.log is=C2=A0available here: http://www.geocities.jp/tmacchant2/config.log.20160411.zip Related part of config.log configure:9591: checking for memcpy configure:9591: gcc -o conftest.exe -g -O2=C2=A0 -I/usr/local/include=C2=A0= -L/usr/local/lib -lcerf conftest.c=C2=A0 >&5 conftest.c:86:6: warning: conflicting types for built-in function 'memcpy' =C2=A0char memcpy (); =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ^ /usr/lib/gcc/x86_64-pc-cygwin/5.3.0/../../../../x86_64-pc-cygwin/bin/ld: ca= nnot find -lcerf collect2: error: ld returned 1 exit status configure:9591: $? =3D 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "gnuplot" | #define PACKAGE_TARNAME "gnuplot" | #define PACKAGE_VERSION "5.1" | #define PACKAGE_STRING "gnuplot 5.1" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define DEVELOPMENT_VERSION 1 | #define PACKAGE "gnuplot" | #define VERSION "5.1" | #define VERSION_MAJOR "5.1" | #define PATCHLEVEL "0" | #define PROTOTYPES 1 | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_STRINGIZE 1 | #define HAVE_OFF_T 1 | #define HAVE_FSEEKO 1 | #define X_DISPLAY_MISSING 1 | #define STDC_HEADERS 1 | #define HAVE_DIRENT_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_FLOAT_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LOCALE_H 1 | #define HAVE_MATH_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_TIME_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_SOCKET_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_SYS_TIMEB_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_MALLOC_H 1 | #define HAVE_POLL_H 1 | #define HAVE_TERMIOS_H 1 | #define HAVE_DIRENT_H 1 | #define HAVE_DLFCN_H 1 | #define HAVE__BOOL 1 | #define HAVE_STDBOOL_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_TIME_T_IN_TIME_H 1 | /* end confdefs.h.=C2=A0 */ | /* Define memcpy to an innocuous variant, in case declares mem= cpy. |=C2=A0=C2=A0=C2=A0 For example, HP-UX 11i declares gettimeofday= .=C2=A0 */ | #define memcpy innocuous_memcpy |=20 | /* System header to define __stub macros and hopefully few prototypes, |=C2=A0=C2=A0=C2=A0=C2=A0 which can conflict with char memcpy (); below. |=C2=A0=C2=A0=C2=A0=C2=A0 Prefer to if __STDC__ is de= fined, since |=C2=A0=C2=A0=C2=A0=C2=A0 exists even on freestanding compilers.= =C2=A0 */ |=20 | #ifdef __STDC__ | # include | #else | # include | #endif |=20 | #undef memcpy |=20 | /* Override any GCC internal prototype to avoid an error. |=C2=A0=C2=A0=C2=A0 Use char because int might match the return type of a G= CC |=C2=A0=C2=A0=C2=A0 builtin and then its argument prototype would still app= ly.=C2=A0 */ | #ifdef __cplusplus | extern "C" | #endif | char memcpy (); | /* The GNU C library defines this for functions which it implements |=C2=A0=C2=A0=C2=A0=C2=A0 to always fail with ENOSYS.=C2=A0 Some functions = are actually named |=C2=A0=C2=A0=C2=A0=C2=A0 something starting with __ and the normal name is= an alias.=C2=A0 */ | #if defined __stub_memcpy || defined __stub___memcpy | choke me | #endif |=20 | int | main () | { | return memcpy (); |=C2=A0=C2=A0 ; |=C2=A0=C2=A0 return 0; | } configure:9591: result: no 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