Port Bug Report: compile errors for embedded sql (in c) - Mailing list pgsql-ports

From Unprivileged user
Subject Port Bug Report: compile errors for embedded sql (in c)
Date
Msg-id 199906012340.TAA62115@hub.org
Whole thread Raw
Responses Re: [PORTS] Port Bug Report: compile errors for embedded sql (in c)
List pgsql-ports
============================================================================
                        POSTGRESQL BUG REPORT TEMPLATE
============================================================================


Your name               : Nathan
Your email address      : nathan@khmere.com

Category                : unknown
Severity                : non-critical

Summary: compile errors for embedded sql (in c)

System Configuration
--------------------
  Operating System   : Linux 2.2.5-15smp i586 (redHat 6.0)

  PostgreSQL version : 6.4.2-3

  Compiler used      : gcc 2.7

Hardware:
---------
Linux ns4.khmere.com 2.2.5-15smp #1 SMP Mon Apr 19 22:03:51 EDT 1999 i586 unknown


Versions of other tools:
------------------------
make and just straight gcc

--------------------------------------------------------------------------

Problem Description:
--------------------
I get this error when I complie ?
(I am  not a new 'c' programmer but I am new to embedded sql)
/usr/lib/libecpg.so: undefined reference to `crypt'
collect2: ld returned 1 exit status

--------------------------------------------------------------------------

Test Case:
----------
This is what I use to compile
 gcc -g -o 2easql 2easql.c -I /usr/include/pgsql/
-L /usr/include/pgsql/lib -lecpg -lpq


--------------------------------------------------------------------------

Solution:
---------


--------------------------------------------------------------------------


pgsql-ports by date:

Previous
From: The Hermit Hacker
Date:
Subject: Re: [GENERAL] RE: [PORTS] AIX-4.2.1 binaries ? more info. PLEASE !
Next
From: Unprivileged user
Date:
Subject: Port Bug Report: Insertion of line return character inconsistent.