Opened 16 years ago

Closed 16 years ago

Last modified 14 years ago

#15200 closed defect (worksforme)

BUG: ./configure --enable-readline broken when using readline from MacPorts

Reported by: raimue (Rainer Müller) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: base Version: 1.6.0
Keywords: base readline Cc:
Port:

Description

On Mac OS X 10.5 Leopard:

$ ./configure --enable-readline
...
checking for readline in -lreadline... yes
checking whether rl_username_completion_function is declared... no
checking whether rl_filename_completion_function is declared... no
checking whether rl_completion_matches is declared... no
checking whether username_completion_function is declared... yes
checking whether filename_completion_function is declared... yes
checking whether completion_matches is declared... yes
...
$ make

...

gcc -c -DUSE_TCL_STUBS -g -O2 -W -Wall -pedantic  -g -Os -DHAVE_CONFIG_H -I.. -I.  -I"/usr/include" -I/opt/local/include   -DTCL_THREADS=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DHAVE_PTHREAD_ATTR_SETSTACKSIZE=1 -DHAVE_PTHREAD_ATFORK=1 -DHAVE_READDIR_R=1 -DMAC_OSX_TCL=1 -DHAVE_CFBUNDLE=1 -DUSE_VFORK=1 -DTCL_DEFAULT_ENCODING=\"utf-8\" -DHAVE_GETCWD=1 -DHAVE_OPENDIR=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOLL=1 -DHAVE_STRTOULL=1 -DHAVE_TMPNAM=1 -DHAVE_WAITPID=1 -DNO_VALUES_H=1 -DHAVE_LIMITS_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_TM_ZONE=1 -DHAVE_GMTIME_R=1 -DHAVE_LOCALTIME_R=1 -DHAVE_TM_GMTOFF=1 -DHAVE_TIMEZONE_VAR=1 -DHAVE_ST_BLKSIZE=1 -DSTDC_HEADERS=1 -DHAVE_SIGNED_CHAR=1 -DHAVE_LANGINFO=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_FILIO_H=1 -include tclArch.h  -fno-common readline.c -o readline.o
readline.c: In function ‘attempted_completion_function’:
readline.c:131: error: ‘filename_completion_function’ undeclared (first use in this function)
readline.c:131: error: (Each undeclared identifier is reported only once
readline.c:131: error: for each function it appears in.)
readline.c:133: error: ‘username_completion_function’ undeclared (first use in this function)
readline.c:139: warning: implicit declaration of function ‘completion_matches’
readline.c:139: warning: assignment makes pointer from integer without a cast
make[2]: *** [readline.o] Error 1
make[1]: *** [all] Error 1
make: *** [all] Error 1

Change History (3)

comment:1 Changed 16 years ago by raimue (Rainer Müller)

Resolution: worksforme
Status: newclosed

I don't know where this issue came from, but I can't reproduce it any more.

comment:2 Changed 15 years ago by tobypeterson

Milestone: MacPorts base bugsMacPorts Future

Milestone MacPorts base bugs deleted

comment:3 Changed 14 years ago by jmroot (Joshua Root)

Milestone: MacPorts Future
Note: See TracTickets for help on using tickets.