This is the mail archive of the
cygwin
mailing list for the Cygwin project.
R: Error when compiling mySQL client libraries
- From: Marco Atzeri <marco_atzeri at yahoo dot it>
- To: cygwin at cygwin dot com, Jurgen Defurne <jurgen dot defurne at gmail dot com>
- Date: Wed, 27 Jan 2010 13:49:24 +0000 (GMT)
- Subject: R: Error when compiling mySQL client libraries
--- Mer 27/1/10, Jurgen Defurne ha scritto:
> While trying to compile mySQL 5.1.34
> client libraries, I get the
> following errors :
>
> In file included from readline.c:54:
> readline/readline.h:70:29: error: sys/ttydefaults.h: No
> such file or directory
> make[2]: *** [readline.o] Error 1
> make[2]: Leaving directory
> `/home/beq00908/mv_builds/mysql-5.1.34/cmd-line-utils/libedit'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory
> `/home/beq00908/mv_builds/mysql-5.1.34/cmd-line-utils'
> make: *** [all-recursive] Error 1
>
> In which package is sys/ttydefaults.h supposed to be ?
>
> Regards,
>
> Jurgen
>
Hi Jurgen,
there is a fault in the editline/libedit package..
When I built it for another package from
http://thrysoee.dk/editline/
I modified as :
--- origsrc/libedit-20090923-3.0/src/editline/readline.h 2009-09-23 23:04:26.000000000 +0200
+++ src/libedit-20090923-3.0/src/editline/readline.h 2009-09-27 21:53:26.000000000 +0200
@@ -75,7 +75,7 @@ typedef KEYMAP_ENTRY *Keymap;
#ifndef CTRL
#include <sys/ioctl.h>
-#if !defined(__sun) && !defined(__hpux) && !defined(_AIX)
+#if !defined(__sun) && !defined(__hpux) && !defined(_AIX) && !defined(__CYGWIN__)
#include <sys/ttydefaults.h>
#endif
#ifndef CTRL
see attached the full patch.
Is someone interested to have libedit package
in cygwin ?
Regards
Marco
--- origsrc/libedit-20090923-3.0/src/editline/readline.h 2009-09-23 23:04:26.000000000 +0200
+++ src/libedit-20090923-3.0/src/editline/readline.h 2009-09-27 21:53:26.000000000 +0200
@@ -75,7 +75,7 @@ typedef KEYMAP_ENTRY *Keymap;
#ifndef CTRL
#include <sys/ioctl.h>
-#if !defined(__sun) && !defined(__hpux) && !defined(_AIX)
+#if !defined(__sun) && !defined(__hpux) && !defined(_AIX) && !defined(__CYGWIN__)
#include <sys/ttydefaults.h>
#endif
#ifndef CTRL
--- origsrc/libedit-20090923-3.0/src/vi.c 2009-09-23 23:04:26.000000000 +0200
+++ src/libedit-20090923-3.0/src/vi.c 2009-09-27 21:56:26.000000000 +0200
@@ -916,6 +916,11 @@ vi_comment_out(EditLine *el, int c)
* NB: posix implies that we should enter insert mode, however
* this is against historical precedent...
*/
+
+#ifdef __CYGWIN__
+#undef __weak_reference
+#endif
+
#ifdef __weak_reference
extern char *get_alias_text(const char *) __weak_reference(get_alias_text);
#endif
--
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