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

Compiling cvs code with Cygwin problems

From: Francisco Figueiredo Jr(dot) <fxjrlists(at)yahoo(dot)com(dot)br>
To: pgsql-cygwin(at)postgresql(dot)org
Subject: Compiling cvs code with Cygwin problems
Date: 2003-04-27 14:03:49
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-cygwin

Hi all,

I tried to compile 7.4 from cvs and I got some problems:

The first is the <port/win32defs.h> not found. I couldn't find it anywhere!
Where can I find it??

So I commented it out from the header and it started to compile.

Later I got linking problems in the ecpg with a lot of unresolved references.
I could get ride of some of them by including some .o from pgtypeslib dir in
the OBJS of Makefile, but it still gives me this error:

make -C ecpglib all
make[1]: Entering directory
dlltool --export-all --output-def ecpg.def execute.o typename.o descriptor.o
a.o error.o prepare.o memory.o connect.o misc.o ../pgtypeslib/numeric.o
eslib/datetime.o ../pgtypeslib/dt_common.o ../pgtypeslib/interval.o
b/timestamp.o ../pgtypeslib/common.o
dllwrap -o ecpg.dll --dllname ecpg.dll --def ecpg.def execute.o typename.o
iptor.o data.o error.o prepare.o memory.o connect.o misc.o
.o ../pgtypeslib/datetime.o ../pgtypeslib/dt_common.o ../pgtypeslib/interval.o
./pgtypeslib/timestamp.o ../pgtypeslib/common.o ../../../../src/utils/dllinit.o
-L../../../../src/port -L/usr/local/lib -L../../../../src/interfaces/libpq -lpq

descriptor.o(.text+0x102):descriptor.c: undefined reference to `__imp__sqlca'
descriptor.o(.text+0x7c6):descriptor.c: undefined reference to `__imp__sqlca'
data.o(.text+0x3ce):data.c: undefined reference to `__imp__sqlca'
data.o(.text+0x70c):data.c: undefined reference to `__imp__sqlca'
error.o(.text+0x596):error.c: undefined reference to `__imp__sqlca'
error.o(.text+0x606):error.c: more undefined references to `__imp__sqlca'

connect.o(.text+0xaed):connect.c: undefined reference to `_ecpg_compat_mode'
misc.o(.text+0x1a):misc.c: undefined reference to `__imp__sqlca'
collect2: ld returned 1 exit status
dllwrap: gcc exited with status 1


Ok, I removed this folder thinking that as it is an interface for embedding sql
in C, I won't use it for now. And it continued to compile...

Until the following line:

make[2]: Leaving directory `/home/voidmain/PostgresqlCVS/pgsql/src/bin'
make -C pl all
make[2]: Entering directory `/home/voidmain/PostgresqlCVS/pgsql/src/pl'
make[3]: Entering directory `/home/voidmain/PostgresqlCVS/pgsql/src/pl/plpgsql'
make -C src all
make[4]: Entering directory
bison -y -d  gram.y
NONE:0: /usr/bin/m4: ERROR: EOF in string
sed -e 's/yy/plpgsql_yy/g' -e 's/YY/PLPGSQL_YY/g' < > ./pl_gram.c
cannot open no such file
make[4]: *** [] Error 1
make[4]: Leaving directory
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/voidmain/PostgresqlCVS/pgsql/src/pl/plpgsql'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/voidmain/PostgresqlCVS/pgsql/src/pl'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/voidmain/PostgresqlCVS/pgsql/src'
make: *** [all] Error 2

I know this is cvs code and it is subjected to this type of problems.
I'd like to know if this is the case or it may be some problem of cygwin or my
setup here.

My setup:

Cygwin version(from setup.ini)
setup-timestamp: 1051174213
setup-version: 2.340.2.5

gcc (GCC) 3.2 20020927 (prerelease)
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO

Windows 2k sp3

Thanks in advance.

Francisco Figueiredo Jr.
"My grandfather once told me that there are two kinds of people: those
who work and those who take the credit. He told me to try to be in the
first group; there was less competition there."
- Indira Gandhi

Yahoo! Mail
O melhor e-mail gratuito da internet: 6MB de espaço, antivírus, acesso POP3, filtro contra spam.


pgsql-cygwin by date

Next:From: Jason TishlerDate: 2003-04-28 12:42:51
Subject: Re: installation problems
Previous:From: pgsqlDate: 2003-04-25 19:32:56
Subject: Re: installation problems

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