On Dec 26, 4:01 pm, yudi <yudi....@gmail.com> wrote:
> [Note: parts of this message were removed to make it a legal post.]
> I had exactly the same problem.installing readline with ./configure
> --prefix=/usr/local --with-readline-dir=/usr/local
> shows a incompatibility with dynamic library, then I followed here:http://www.weblogs.uhi.ac.uk/sm00sm/?p=291
> with make static and sudo make static-install
> With readline 'properly' installed, the same error still pop up. (readline.o
> )
> I assume it's the problem with gcc ?
> Yudi
> On Dec 24, 2007 10:00 PM, Han Kessels <han.kess...@gmail.com> wrote:
> > On Dec 25, 4:57am, James Herdman <james.herd...@gmail.com> wrote:
> > > I'm having a little trouble building Ruby 1.9. I'm building on
> > > Leopard and using "--prefix=/usr/local/ruby1.9" when running config,
> > > but I'm getting the following output after running 'make':
> > > gcc -I. -I../../.ext/include/i686-darwin9.1.0 -I../.././include
> > > -I../.././ext/readline -DRUBY_EXTCONF_H=\"extconf.h\" -fno-common
> > > -g -O2 -pipe -fno-common -o readline.o -c readline.c
> > > readline.c: In function 'filename_completion_proc_call':
> > > readline.c:659: error: 'filename_completion_function' undeclared
> > > (first use in this function)
> > > readline.c:659: error: (Each undeclared identifier is reported only once
> > > readline.c:659: error: for each function it appears in.)
> > > readline.c:659: warning: assignment makes pointer from integer without a
> > cast
> > > readline.c: In function 'username_completion_proc_call':
> > > readline.c:684: error: 'username_completion_function' undeclared
> > > (first use in this function)
> > > readline.c:684: warning: assignment makes pointer from integer without a
> > cast
> > > make[1]: *** [readline.o] Error 1
> > > make: *** [all] Error 1
> > > Any ideas on what's wrong?
> > > James H.
> > Install the latest readline (5.2) in /usr/local and rerun ./configure:
> > ./configure --prefix=/usr/local --with-readline-dir=/usr/local
> > Cheers,
> > Han
> --
> Do not be afraid of Change.
Building readline5.2 on Leopard is broken. It checks for the OS
explicitly, but this check does not exclude darwin9 (Leopard). It is
easily fixed though, by patching support/shobj-conf:
--- support/shobj-conf 2007-12-26 18:30:46.000000000 +0900
+++ support/shobj-conf.new 2007-12-26 18:30:39.000000000 +0900
@@ -142,7 +142,7 @@
;;
# Darwin/MacOS X
-darwin8*)
+darwin89*)
SHOBJ_STATUS=supported
SHLIB_STATUS=supported
@@ -171,7 +171,7 @@
SHLIB_LIBSUFF='dylib'
case "${host_os}" in
- darwin[78]*) SHOBJ_LDFLAGS=''
+ darwin[789]*) SHOBJ_LDFLAGS=''
SHLIB_XLDFLAGS='-dynamiclib -arch_only `/usr/bin/arch` -
install_name $(libdir)/$@ -current_version $(SHLIB_MAJOR)$
(SHLIB_MINOR) -compatibility_version $(SHLIB_MAJOR) -v'
;;
*) SHOBJ_LDFLAGS='-dynamic'
Cheers,
Han