Обсуждение: Compilation on Solaris 2.8
Hi : I am having problems in compiling Postgres 7.1. I am using the following compilers on Solaris 2.8 on a Sparc Ultra 60 machine. Sun WorkShop 6 update 1 C++ 5.2 2000/09/11 Sun WorkShop 6 update 1 C 5.2 2000/09/11 Is there a port available for this configuration ? Thanks, Manoj Nair
Hi, Postgres 7.1.2 is runing fine at my site (Solaris 2.6 ans Solaris 2.6). I used gcc-2.95.3 and make-3.79.1 (both downloaded from www.sunfreeware.com). I had just one problem: during compilation you need the ar - command in your PATH. Look at the manpages of ar for the proper Path. CU Andre ----- Original Message ----- From: Manoj Nair To: pgsql-bugs@postgresql.org ; pgsql-ports@postgresql.org Sent: Monday, July 09, 2001 1:41 PM Subject: [PORTS] Compilation on Solaris 2.8 Hi : I am having problems in compiling Postgres 7.1. I am using the following compilers on Solaris 2.8 on a Sparc Ultra 60 machine. Sun WorkShop 6 update 1 C++ 5.2 2000/09/11 Sun WorkShop 6 update 1 C 5.2 2000/09/11 Is there a port available for this configuration ? Thanks, Manoj Nair ---------------------------(end of broadcast)--------------------------- TIP 5: Have you checked our extensive FAQ? http://www.postgresql.org/users-lounge/docs/faq.html
[bringing the thread back into pgsql-ports, my bad in the first place that it was left out...] Andre Schnabel wrote: >>> Postgres 7.1.2 is runing fine at my site (Solaris 2.6 ans >>> Solaris 2.6). >> Hi - I've got a similar setup (as you might have seen in my >> previous >> post), and I have no problems compiling. >> However, the libpq.so is screwed up. Is everything ok your >> libpq.so? (# >> ldd -r libpq.so) >> >> What linker are you using? GNU? > I'll have to check that at work. > I have no problems yet. ... But I use only psql and ODBC from > NT-clients to connect to the server. But maybe we'll build up a > web-interface with php4 an run in the same problem. You might have, yes. I assume pgsql.so is the client library, as php is trying to use it. The problem with pgsql.so showed up in v7.1. In v7.0.3 everything is fine (I've tested both of these). --- -- Øyvind Hallsteinsen, HIST AITeL --
Hi Andre, We have also compiled postgres with gcc. Our development environment uses Solaris Workshop, and we tried some test programs, compiled with Sun's Forte compiler, and using the gcc compiled postgres libraries. This did not work. We got linker errors like the following.... Undefined first referenced symbol in file PgConnection::PgConnection #Nvariant 1(const char*) testlibpq0.o PgConnection::~PgConnection #Nvariant 1() testlibpq0.o int PgConnection::ConnectionBad() testlibpq0.o void PgDatabase::DisplayTuples(__FILE*,int,const char*,int,int) testlibpq0.o ExecStatusType PgConnection::Exec(const char*) testlibpq0.o const char*PgConnection::ErrorMessage() testlibpq0.o ld: fatal: Symbol referencing errors. No output written to testlibpq0 make: *** [testlibpq0] Error 1 Hence our attempt to compile Postgres with Sun's compiler... Thanks, Manoj Andre Schnabel wrote: > Hi, > > Postgres 7.1.2 is runing fine at my site (Solaris 2.6 ans Solaris 2.6). > I used gcc-2.95.3 and make-3.79.1 (both downloaded from > www.sunfreeware.com). > I had just one problem: > during compilation you need the ar - command in your PATH. > Look at the manpages of ar for the proper Path. > > CU > Andre > > ----- Original Message ----- > From: Manoj Nair > To: pgsql-bugs@postgresql.org ; pgsql-ports@postgresql.org > Sent: Monday, July 09, 2001 1:41 PM > Subject: [PORTS] Compilation on Solaris 2.8 > > Hi : > > I am having problems in compiling Postgres 7.1. > I am using the following compilers on Solaris 2.8 on a Sparc Ultra 60 > machine. > > Sun WorkShop 6 update 1 C++ 5.2 2000/09/11 > Sun WorkShop 6 update 1 C 5.2 2000/09/11 > > Is there a port available for this configuration ? > > Thanks, > Manoj Nair > > ---------------------------(end of broadcast)--------------------------- > TIP 5: Have you checked our extensive FAQ? > > http://www.postgresql.org/users-lounge/docs/faq.html