Thread: 8.0 Setup problems

8.0 Setup problems

From
"DEV"
Date:

Hello,

 

I am trying build and install 8.0 on RedHat 9.0 the configure runs with out a problem and when I type make I get:

gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wendif-labels -fno-strict-aliasing zic.o ialloc.o scheck.o localtime.o -L../../src/port  -Wl,-rpath,/usr/local/pgsql/lib -lpgport -lz -lreadline -ltermcap -lcrypt -lresolv -lnsl -ldl -lm -lbsd  -o zic

zic.o: In function `lowerit':

zic.o(.text+0x3c40): undefined reference to `__ctype_b'

zic.o(.text+0x3c5b): undefined reference to `__ctype_tolower'

zic.o: In function `getfields':

zic.o(.text+0x3e36): undefined reference to `__ctype_b'

zic.o(.text+0x3eb0): undefined reference to `__ctype_b'

zic.o(.text+0x3ec3): undefined reference to `__ctype_b'

collect2: ld returned 1 exit status

make[2]: *** [zic] Error 1

make[2]: Leaving directory `/home/doyleb/postgresql-8.0.1/src/timezone'

make[1]: *** [all] Error 2

make[1]: Leaving directory `/home/doyleb/postgresql-8.0.1/src'

make: *** [all] Error 2

 

What do I need to do to fix this?

 

Currently I am running 7.3.2 and need to get some of the functionality that is in 8.0

 

 

 

 

Re: 8.0 Setup problems

From
Tom Lane
Date:
"DEV" <dev@umpa-us.com> writes:
> zic.o(.text+0x3c40): undefined reference to `__ctype_b'
> zic.o(.text+0x3c5b): undefined reference to `__ctype_tolower'

Apparently your /usr/include/ctype.h file doesn't agree with your libc.
Some googling on __ctype_tolower suggests that there were changes in
that part of glibc a couple years ago.  I think you've probably updated
the library and not the header file, or perhaps vice versa.

            regards, tom lane