Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

ruby.h does not load extconf.h #281

Closed
antage opened this Issue May 11, 2010 · 1 comment

Comments

Projects
None yet
2 participants

antage commented May 11, 2010

Ruby 1.8's ruby.h consists following lines:
#ifdef RUBY_EXTCONF_H
#include RUBY_EXTCONF_H
#endif

Rubinius's ruby.h does not. Some C-extensions aren't built because this.
For example, pg-0.9.0 gem:
gcc -I. -I. -I/opt/rubinius/include -I. -DRUBY_EXTCONF_H="extconf.h" -I/usr/include/postgresql -ggdb3 -O2 -fPIC -Wall -c compat.c
In file included from compat.c:16:
compat.h:38:2: error: #error PostgreSQL client version too old, requires 7.3 or later.
.... skipped many lines ...

compat.h:
#ifndef HAVE_PQESCAPESTRINGCONN
#define PG_BEFORE_070300
#error PostgreSQL client version too old, requires 7.3 or later.
#endif

Although extconf.h consists define for PQESCAPESTRINGCONN:
#ifndef EXTCONF_H
#define EXTCONF_H
#define HAVE_LIBPQ_FE_H 1
#define HAVE_LIBPQ_LIBPQ_FS_H 1
#define HAVE_PQCONNECTIONUSEDPASSWORD 1
#define HAVE_PQISTHREADSAFE 1
#define HAVE_PQPREPARE 1
#define HAVE_PQEXECPARAMS 1
#define HAVE_PQESCAPESTRING 1
#define HAVE_PQESCAPESTRINGCONN 1
#define HAVE_LO_CREATE 1
#define HAVE_PG_ENCODING_TO_CHAR 1
#define HAVE_PQSETCLIENTENCODING 1
#define HAVE_UNISTD_H 1
#endif

Owner

evanphx commented May 12, 2010

Include RUBY_EXTCONF_H. Closed by 616705d.

This issue was closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment