pg.ddx.io pgsql-ports@postgresql.org mailing list archive
help / color / mirror / Atom feedcompilation problem
5+ messages / 4 participants
[nested] [flat]
* compilation problem
@ 2003-11-11 16:38 stsd@lehigh.edu
2003-11-11 18:13 ` Re: compilation problem Peter Eisentraut <peter_e@gmx.net>
0 siblings, 1 reply; 5+ messages in thread
From: stsd@lehigh.edu @ 2003-11-11 16:38 UTC (permalink / raw)
To: pgsql-ports
Dear Sir/Madam,
I am trying to compile postgresql-6.2.1 on my solaris 8 machine. Here is the
error message that I am getting. Any ideas. Thanks in advance.
Stephane
gmake all
gmake -C lextest all
gmake[1]: Entering directory `/export/opt2/postgresql-6.2.1/src/lextest'
gmake[1]: Nothing to be done for `all'.
gmake[1]: Leaving directory `/export/opt2/postgresql-6.2.1/src/lextest'
gmake -C utils all
gmake[1]: Entering directory `/export/opt2/postgresql-6.2.1/src/utils'
gmake[1]: Nothing to be done for `all'.
gmake[1]: Leaving directory `/export/opt2/postgresql-6.2.1/src/utils'
gmake -C backend all
gmake[1]: Entering directory `/export/opt2/postgresql-6.2.1/src/backend'
gmake -C access all PORTNAME=sparc_solaris
gmake[2]: Entering directory `/export/opt2/postgresql-6.2.1/src/backend/access'
gmake -C common SUBSYS.o
gmake[3]: Entering directory
`/export/opt2/postgresql-6.2.1/src/backend/access/common'
gmake[3]: `SUBSYS.o' is up to date.
gmake[3]: Leaving directory
`/export/opt2/postgresql-6.2.1/src/backend/access/common'
gmake -C gist SUBSYS.o
gmake[3]: Entering directory
`/export/opt2/postgresql-6.2.1/src/backend/access/gist'
gmake[3]: `SUBSYS.o' is up to date.
gmake[3]: Leaving directory
`/export/opt2/postgresql-6.2.1/src/backend/access/gist'
gmake -C hash SUBSYS.o
gmake[3]: Entering directory
`/export/opt2/postgresql-6.2.1/src/backend/access/hash'
gmake[3]: `SUBSYS.o' is up to date.
gmake[3]: Leaving directory
`/export/opt2/postgresql-6.2.1/src/backend/access/hash'
gmake -C heap SUBSYS.o
gmake[3]: Entering directory
`/export/opt2/postgresql-6.2.1/src/backend/access/heap'
gmake[3]: `SUBSYS.o' is up to date.
gmake[3]: Leaving directory
`/export/opt2/postgresql-6.2.1/src/backend/access/heap'
gmake -C index SUBSYS.o
gmake[3]: Entering directory
`/export/opt2/postgresql-6.2.1/src/backend/access/index'
gmake[3]: `SUBSYS.o' is up to date.
gmake[3]: Leaving directory
`/export/opt2/postgresql-6.2.1/src/backend/access/index'
gmake -C rtree SUBSYS.o
gmake[3]: Entering directory
`/export/opt2/postgresql-6.2.1/src/backend/access/rtree'
gmake[3]: `SUBSYS.o' is up to date.
gmake[3]: Leaving directory
`/export/opt2/postgresql-6.2.1/src/backend/access/rtree'
gmake -C nbtree SUBSYS.o
gmake[3]: Entering directory
`/export/opt2/postgresql-6.2.1/src/backend/access/nbtree'
gmake[3]: `SUBSYS.o' is up to date.
gmake[3]: Leaving directory
`/export/opt2/postgresql-6.2.1/src/backend/access/nbtree'
gmake -C transam SUBSYS.o
gmake[3]: Entering directory
`/export/opt2/postgresql-6.2.1/src/backend/access/transam'
gmake[3]: `SUBSYS.o' is up to date.
gmake[3]: Leaving directory
`/export/opt2/postgresql-6.2.1/src/backend/access/transam'
gmake[2]: Leaving directory `/export/opt2/postgresql-6.2.1/src/backend/access'
gmake -C bootstrap all PORTNAME=sparc_solaris
gmake[2]: Entering directory
`/export/opt2/postgresql-6.2.1/src/backend/bootstrap'
/usr/local/bin/bison -y -d bootparse.y
gmake[2]: *** [bootparse.c] Broken Pipe
gmake[2]: Leaving directory
`/export/opt2/postgresql-6.2.1/src/backend/bootstrap'
gmake[1]: *** [bootstrap.dir] Error 2
gmake[1]: Leaving directory `/export/opt2/postgresql-6.2.1/src/backend'
gmake: *** [all] Error 2
-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: compilation problem
2003-11-11 16:38 compilation problem stsd@lehigh.edu
@ 2003-11-11 18:13 ` Peter Eisentraut <peter_e@gmx.net>
0 siblings, 0 replies; 5+ messages in thread
From: Peter Eisentraut @ 2003-11-11 18:13 UTC (permalink / raw)
To: stsd@lehigh.edu; +Cc: pgsql-ports
stsd@lehigh.edu writes:
> I am trying to compile postgresql-6.2.1 on my solaris 8 machine. Here is the
> error message that I am getting. Any ideas. Thanks in advance.
6.2.1 is over six years old. Try using a newer version or an older
Solaris.
--
Peter Eisentraut peter_e@gmx.net
^ permalink raw reply [nested|flat] 5+ messages in thread
* compilation problem
@ 2005-10-12 09:03 HS <mhossein@gmail.com>
2005-10-12 23:12 ` Re: compilation problem Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 5+ messages in thread
From: HS @ 2005-10-12 09:03 UTC (permalink / raw)
To: pgsql-ports
Hi:
I'm doing a university project with postgres. I need to add a C++ file to
the postgres optimizer. When I added this file (XXX.cc), I got make errors.
To figure out the problem I did some simple tests. I removed everything in
the file except for a simple function and changed the CPP variable in
Makefile.gloabl from gcc to g++ and it worked. However, when I add #include
<iostream> or calls to cout, etc to my file, I get link errors. I'd
appreciate it if anyone could help me with this problem (adding a C++ file
that uses some C++ libraries to postrges). I'm using postgres 8 on Debian.
Thanks,
HSA
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: compilation problem
2005-10-12 09:03 compilation problem HS <mhossein@gmail.com>
@ 2005-10-12 23:12 ` Tom Lane <tgl@sss.pgh.pa.us>
2005-10-13 03:53 ` Re: compilation problem HS <mhossein@gmail.com>
0 siblings, 1 reply; 5+ messages in thread
From: Tom Lane @ 2005-10-12 23:12 UTC (permalink / raw)
To: HS <mhossein@gmail.com>; +Cc: pgsql-ports
HS <mhossein@gmail.com> writes:
> I'd appreciate it if anyone could help me with this problem (adding a
> C++ file that uses some C++ libraries to postrges).
Learn to write plain C --- the backend is not a C++ program and cannot
readily be turned into one.
regards, tom lane
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: compilation problem
2005-10-12 09:03 compilation problem HS <mhossein@gmail.com>
2005-10-12 23:12 ` Re: compilation problem Tom Lane <tgl@sss.pgh.pa.us>
@ 2005-10-13 03:53 ` HS <mhossein@gmail.com>
0 siblings, 0 replies; 5+ messages in thread
From: HS @ 2005-10-13 03:53 UTC (permalink / raw)
To: pgsql-ports
The problem is that I have to use a statistical library which is written in
C++. My own code is in plain C.
If I compile the library source code separately and make the object file
using gcc, is there a way that I can change the postgres make files to link
that .o file to postgres (considering teh fact that the .o file's source
file was in C++)?
Thanks,
Hossein
On 10/12/05, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>
> HS <mhossein@gmail.com> writes:
> > I'd appreciate it if anyone could help me with this problem (adding a
> > C++ file that uses some C++ libraries to postrges).
>
> Learn to write plain C --- the backend is not a C++ program and cannot
> readily be turned into one.
>
> regards, tom lane
>
^ permalink raw reply [nested|flat] 5+ messages in thread
end of thread, other threads:[~2005-10-13 03:53 UTC | newest]
Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-11-11 16:38 compilation problem stsd@lehigh.edu
2003-11-11 18:13 ` Peter Eisentraut <peter_e@gmx.net>
2005-10-12 09:03 compilation problem HS <mhossein@gmail.com>
2005-10-12 23:12 ` Tom Lane <tgl@sss.pgh.pa.us>
2005-10-13 03:53 ` HS <mhossein@gmail.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox