From: Ben Schumacher Date: 2005-07-16T01:41:32+09:00 Subject: Re: make fail; ruby v182 not finding readline ? On 7/15/05, OpenMacNews wrote: > ENV includes: > > setenv LDFLAGS "-L/usr/local -lreadline" > setenv CPPFLAGS "-I/usr/local" On 7/15/05, OpenMacNews wrote: > hi all, > > bldg ruby v182 on OSX 10.4.2 > > libreadline v50 is correctly built into /usr/local. > > ENV includes: > > setenv LDFLAGS "-L/usr/local -lreadline" > setenv CPPFLAGS "-I/usr/local" Have you tried doing this with this environment as well? setenv CFLAGS "-I/usr/local" Cause it looks like that -I/usr/local isn't being used as part of the build parameters here: > but, 'make' fails @: > > ... > cc -dynamic -bundle -undefined suppress -flat_namespace -L"../../.." -o > cparse.bundle cparse.o -lruby -lpthread -ldl -lcrypt -lobjc > compiling readline > gcc -fno-common -g -O2 -fno-common -pipe -fno-common > -DREADLINE_21_OR_LATER -I. -I../.. -I../../. -I../.././ext/readline > -DHAVE_READLINE_READLINE_H -DHAVE_READLINE_HISTORY_H -c readline.c > readline.c: In function 'filename_completion_proc_call': > readline.c:646: error: 'filename_completion_function' undeclared (first use > in this function) > readline.c:646: error: (Each undeclared identifier is reported only once > readline.c:646: error: for each function it appears in.) > readline.c:646: warning: assignment makes pointer from integer without a > cast > readline.c: In function 'username_completion_proc_call': > readline.c:673: error: 'username_completion_function' undeclared (first use > in this function) > readline.c:673: warning: assignment makes pointer from integer without a > cast > make[1]: *** [readline.o] Error 1 > make: *** [all] Error 1 > > > NOTE: no trace of "-lreadline" ... Cheers, bs.