Обсуждение: PostgreSQL 7.4RC2 compile faliure on Solaris

Поиск
Список
Период
Сортировка

PostgreSQL 7.4RC2 compile faliure on Solaris

От
Mark Round
Дата:
Hello,

I am having trouble building PostgreSQL 7.4RC2 on Solaris. I have tried
on 5 different systems - running Solaris 8 (Sparc and Intel), and
Solaris 9 (Intel). I have also tried building with 2 versions of gcc and
Sun's Sun ONE Compiler - all result in the same error being produced.

I attempt to build it with a simple ./configure && gmake, and each time,
I get the following error :

Undefined                       first referenced
symbol                             in file
PQparameterStatus                   pg_backup_db.o
ld: fatal: Symbol referencing errors. No output written to pg_dump
collect2: ld returned 1 exit status
gmake[3]: *** [pg_dump] Error 1


My software versions are :-

Solaris 8 and 9 on both Sparc and Intel
Gnu Make 3.80
Gcc 2.95.3 , 3.3.2. and Sun One Studio 8 Compiler  8.0,REV=2003.03.13
Bison 1.875
Flex 2.5.4

I don't know if it's something that I'm doing wrong, or if it is a
genuine bug in the build process - either way, I thought it was best to
notify someone! If you need any further information regarding my build
environments, or if you need me to run any tests I'd be happy to oblige.
Also, if you have any information as to what I'm doing wrong it would be
appreciated

Thanks,

-Mark Round
mark@markround.com




Re: PostgreSQL 7.4RC2 compile faliure on Solaris

От
Tom Lane
Дата:
Mark Round <mark@markround.com> writes:
> I am having trouble building PostgreSQL 7.4RC2 on Solaris.

> Undefined                       first referenced
> symbol                             in file
> PQparameterStatus                   pg_backup_db.o

It looks like the linker is trying to link pg_dump to an old (7.3 or
before) version of libpq --- presumably one that you already have
installed somewhere.  Perhaps you have some environment setting
that is forcing the linker to look in system directories before it
looks in the intended place in the build tree?  I dunno anything about
linker search rules on Solaris ...

If worst comes to worst you could probably go ahead and install the
already-made libpq.so (see src/interfaces/libpq), but I'm sure there
is a cleaner way.

            regards, tom lane

Re: PostgreSQL 7.4RC2 compile faliure on Solaris

От
Mark Round
Дата:
>It looks like the linker is trying to link pg_dump to an old (7.3 or
>before) version of libpq --- presumably one that you already have
>installed somewhere.
>
Bingo ! Solved the problem. I just moved the old libraries out of the
way whilst building - thanks!

-Mark