pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: leif@danmos.dk
To: pgsql-interfaces@postgreSQL.org
Subject: Re: [INTERFACES] crypt not included when compiling libpgtcl !!!!!!!
Date: Sun, 8 Nov 98 16:54 WST
Message-ID: <m0zcXKy-000G4UC@danmos> (raw)



   Hi,

   I've just downloaded the new pgaccess 0.92b. Of course I experienced
the 'unresolved crypt' problem. I made a mod. both in the Makefile
for libpq and libpgtcl as follows:

diff on libpq/Makefile:

35,37d34
< 
< LIBS			= -lcrypt
< 
42c39
<     LDFLAGS_SL = -Bdynamic -shared -soname libpq.so.$(SO_MAJOR_VERSION)
---
>     LDFLAGS_SL = -shared -soname libpq.so.$(SO_MAJOR_VERSION)
100c97
< 	$(LD) $(LDFLAGS_SL) -o $@ $(OBJS) $(LIBS)
---
> 	$(LD) $(LDFLAGS_SL) -o $@ $(OBJS) 

diff on libpgtcl/Makefile:

42c42
<     LDFLAGS_SL		= -Bdynamic -shared
---
>     LDFLAGS_SL		= -shared

After compiling and installing this resulted in the following ourput from
'ldd libpgtcl.so':

	libpq.so.1 => /usr/local/pgsql/lib/libpq.so.1 (0x4000b000)
	libcrypt.so.1 => /lib/libcrypt.so.1 (0x40018000)
	libc.so.6 => /lib/libc.so.6 (0x40045000)
	/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x00000000)

Finally PgAccess could start, but ... when I load a database I do get the
tables shown, but I also get:

Error in startup script: First argument is not a valid query result
    while executing
"pg_result $pgres -numTuples"
    (procedure "open_database" line 31)
    invoked from within
"open_database"
    (procedure "main" line 18)
    invoked from within
"main $argc $argv"
    (file "pgaccess.tcl" line 4831)

I am using Tcl/Tk 8.0, but I am using PostgreSQL 6.3.2. Is this a
6.3.2/6.4 compatibility issue?


    Greetings,

___________________________________________________________________________
                                             /
       _/                            _/_/   /  Leif Jensen (leif@danmos.dk)
      _/                _/         _/      /
     _/        _/_/             _/_/_/    /
    _/       _/   _/   _/        _/      / Linux 2.0.33, gcc 2.7.2, wxWin 1.68C
   _/       _/ _/_/   _/        _/      /
  _/       _/        _/   _/   _/      /
 _/_/_/_/   _/_/      _/_/    _/      /         (and Windows 95 :-(
___________________________________________________________________________




view thread (25+ messages)  latest in thread

Message-ID: <m0zcXKy-000G4UC@danmos>
Permalink:  ../m0zcXKy-000G4UC@danmos/
Also on:    postgresql.org/message-id/m0zcXKy-000G4UC@danmos

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: leif@danmos.dk
  Subject: Re: [INTERFACES] crypt not included when compiling libpgtcl !!!!!!!
  In-Reply-To: <m0zcXKy-000G4UC@danmos>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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