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: 20010207213217.T980@dothill.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-ports

Jari,

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
problem:

$ 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

--
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: http://www.dothill.com

In response to

Browse pgsql-ports by date

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