![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
============== creating database "regression" ============== /usr/local/src/postgresql-7.4beta4/src/test/regress/./tmp_check/install//opt/doka//pgsql/bin/createdb: relocation error: /us/local/src/postgresql-7.4beta4/src/test/regress/./tmp_check/install//opt/doka//pgsql/bin/createdb: undefined symbol: get_proname pg_regress: createdb failed |
#3
| |||
| |||
|
|
Christoph Becker <CGBecker (AT) gmx (DOT) de> writes: ============== creating database "regression" ============== /usr/local/src/postgresql-7.4beta4/src/test/regress/./tmp_check/install//opt/doka//pgsql/bin/createdb: relocation error: /us/local/src/postgresql-7.4beta4/src/test/regress/./tmp_check/install//opt/doka//pgsql/bin/createdb: undefined symbol: get_proname pg_regress: createdb failed Hm. I have a feeling your temp installation is somehow linking to an old version of libpq, because that's the most common reason for link-time failures in "make check". But I don't understand the reference to 'get_proname'. There is no occurrence of that string in either current sources or any recent PG release. |
#4
| |||
| |||
|
|
I got the same error with beta1, but the symbol was "get_progname" not "get_proname". Perhaps the above is a typo. |
#5
| |||
| |||
|
|
ljb <ljb220 (AT) mindspring (DOT) com> writes: I got the same error with beta1, but the symbol was "get_progname" not "get_proname". Perhaps the above is a typo. "get_progname" would make sense, because that's a symbol defined in libpgport in 7.4 that did not exist in 7.3. So if the dynamic linker was finding your 7.3 PG library directory instead of 7.4, you'd likely get this error. |
#6
| |||
| |||
|
|
Confirmed. Perhaps this should be looked into. On my system, "make check" works fine if there is no existing PostgreSQL installation. But if there is, we seem to prefer the existing installation's libraries over what pg_regress sets LD_LIBRARY_PATH to (the newly built software). This means that "make check" will either fail in createdb (if the existing install is 7.3, for example) or work but actually be testing the newly built programs using the existing version's run-time libpq library. |
#7
| |||
| |||
|
|
Yeah, we have seen this before on various platforms. On some, LD_LIBRARY_PATH isn't actually anything the dynamic linker pays attention to, and on others, it is trumped by the installation rpath built into the executables. Not putting an rpath into the executables would make life better for "make check" at the cost of making the executables much more fragile in actual use. I don't see a good solution :-( but if you do, step right up to the plate ... |
![]() |
| Thread Tools | |
| Display Modes | |
| |