tsearch2 installation

Started by Jiri Chaloupkaover 22 years ago5 messagesgeneral
Jump to latest
#1Jiri Chaloupka
konf@chalu.cz

Well,
now I tried to compile with tsearch2.

I do in src direcotry:
./configure

then change into contrib/tsearch2 and do
make (as I read in manual)

and I got:
$ make
make: Fatal error in reader: ../../src/Makefile.global, line 23: Illegal
dependencies for target `.SILENT'

Where is my mistake? what is the correct way to compile tsearch2? When I try to
make tsearch2 before ./configure of main source, it causes error, becouse
Makefile.global does not exist yet

Thanks for help,
Jiri

-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/

#2Teodor Sigaev
teodor@sigaev.ru
In reply to: Jiri Chaloupka (#1)
Re: tsearch2 installation

konf@chalu.cz wrote:

Well,
now I tried to compile with tsearch2.

I do in src direcotry:
./configure

do make

then change into contrib/tsearch2 and do
make (as I read in manual)

and I got:
$ make
make: Fatal error in reader: ../../src/Makefile.global, line 23: Illegal
dependencies for target `.SILENT'

Where is my mistake? what is the correct way to compile tsearch2? When I try to
make tsearch2 before ./configure of main source, it causes error, becouse
Makefile.global does not exist yet

Thanks for help,
Jiri

-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo@postgresql.org)

--
Teodor Sigaev E-mail: teodor@sigaev.ru

#3Jiri Chaloupka
konf@chalu.cz
In reply to: Teodor Sigaev (#2)
Re: tsearch2 installation

when I do
./configure --prefix=/opt/pgsql_7.4 --with-perl --with-java --without-readline
--with-openssl --enable-nls='cs'

make

I got:

make[5]: Leaving directory
`/data/usersdata/smartm/srcs/pg_source/postgresql-7.4/src/port'
gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes -Wmissing-declarations
command.o common.o help.o input.o stringutils.o mainloop.o copy.o startup.o
prompt.o variables.o large_obj.o print.o describe.o tab-complete.o mbprint.o
-L../../../src/interfaces/libpq -lpq -L../../../src/port -L/usr/local/ssl/lib
-R/opt/pgsql_7.4/lib -lssl -lcrypto -lz -lrt -lresolv -lgen -lsocket -lnsl -ldl
-lm -lpgport -o psql
Undefined first referenced
symbol in file
PQgetssl startup.o
ld: fatal: Symbol referencing errors. No output written to psql
collect2: ld returned 1 exit status
make[4]: *** [psql] Error 1
make[4]: Leaving directory
`/data/usersdata/smartm/srcs/pg_source/postgresql-7.4/src/bin/psql'
make[3]: *** [all] Error 2
make[3]: Leaving directory
`/data/usersdata/smartm/srcs/pg_source/postgresql-7.4/src/bin'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/data/usersdata/smartm/srcs/pg_source/postgresql-7.4/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/data/usersdata/smartm/srcs/pg_source/postgresql-7.4'
*** Error code 2
make: Fatal error: Command failed for target `all'

What is wrong?

Cituji z emailu od Teodor Sigaev <teodor@sigaev.ru>:

konf@chalu.cz wrote:

Well,
now I tried to compile with tsearch2.

I do in src direcotry:
./configure

do make

then change into contrib/tsearch2 and do
make (as I read in manual)

and I got:
$ make
make: Fatal error in reader: ../../src/Makefile.global, line 23: Illegal
dependencies for target `.SILENT'

Where is my mistake? what is the correct way to compile tsearch2? When I

try to

make tsearch2 before ./configure of main source, it causes error, becouse
Makefile.global does not exist yet

Thanks for help,
Jiri

-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo@postgresql.org)

--
Teodor Sigaev E-mail: teodor@sigaev.ru

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/

#4Tom Lane
tgl@sss.pgh.pa.us
In reply to: Jiri Chaloupka (#1)
Re: tsearch2 installation

konf@chalu.cz writes:

$ make
make: Fatal error in reader: ../../src/Makefile.global, line 23: Illegal
dependencies for target `.SILENT'

I think you need to use gmake (GNU make) not your vendor's make.

There is a hack in the top-level makefiles so that invoking plain make
will work at the top level, but if you make in a lower-level directory
like tsearch2, you must actually invoke gmake.

regards, tom lane

#5Jiri Chaloupka
konf@chalu.cz
In reply to: Jiri Chaloupka (#1)
Re: tsearch2 installation

OK, thank you.
I was create symbolic link gmake to make and it works.

Jiri