Skip site navigation (1) Skip section navigation (2)

Re: Win98/Cygwin make failure

From: Jason Tishler <Jason(dot)Tishler(at)dothill(dot)com>
To: "Jari Aalto+tpu(dot)misc" <posting-list(at)MailAndNews(dot)com>
Cc: pgsql-ports(at)postgresql(dot)org
Subject: Re: Win98/Cygwin make failure
Date: 2001-02-08 02:32:17
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-ports

On Thu, Feb 08, 2001 at 12:45:17AM +0200, Jari Aalto+tpu.misc wrote:
> //jaalto(at)PICASSO /usr/local/lib $ ls -la
> total 1037
> ...

The output from the following would better enable me to help debug your

    $ ls -l /usr/lib/*read*

> //jaalto(at)PICASSO /usr/local/lib $ 
>     line -ltermcap -lcygipc -o psql

I would have preferred not to have to guess at the entire psql link line
but I presume that it is the following:

    gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations \
    -L/usr/local/lib -g  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 -L../../../src/interfaces/libpq -lpq -lz \
    -lcrypt -lreadline -ltermcap -lncurses -lcygipc -o psql

>     /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2-6/../../../../i686-pc-cygwin/bin/ld: warning: cannot find entry symbol _WinMainCRTStartup; defaulting to 00401000

Hmm...seems unrelated to your readline link problem, but something that
you should investigate.

>     input.o(.text+0x49):input.c: undefined reference to `_imp__readline'
>     input.o(.text+0x1cc):input.c: undefined reference to `_imp__add_history'
>     input.o(.text+0x2f3):input.c: undefined reference to `_imp__using_history'
> ...

I believe that your problem is somehow you are linking with the static
readline library (i.e. /usr/lib/libreadline.a) and not the readline import
library (i.e., /usr/lib/libreadline.dll.a) needed to resolve the imports
from the Cygwin readline DLL.  However, I'm not sure how you managed to
accomplish this.


Jason Tishler
Director, Software Engineering       Phone: +1 (732) 264-8770 x235
Dot Hill Systems Corp.               Fax:   +1 (732) 264-8798
82 Bethany Road, Suite 7             Email: Jason(dot)Tishler(at)dothill(dot)com
Hazlet, NJ 07730 USA                 WWW:

In response to

pgsql-ports by date

Next:From: Fabio NanniDate: 2001-02-08 10:55:48
Subject: SELECT with regular pattern '~' delivers wrong output
Previous:From: Jari Aalto+tpu.miscDate: 2001-02-07 22:45:17
Subject: Win98/Cygwin make failure

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group