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

7.0beta1: bugs appearing on cygwin

From: Marko Kreen <marko(at)l-t(dot)ee>
To: pgsql-bugs(at)postgresql(dot)org
Subject: 7.0beta1: bugs appearing on cygwin
Date: 2000-02-28 11:07:26
Message-ID: 20000228130726.B30339@l-t.ee (view raw or flat)
Thread:
Lists: pgsql-bugs
============================================================================
                        POSTGRESQL BUG REPORT TEMPLATE
============================================================================


Your name               :       Marko Kreen
Your email address      :       marko(at)l-t(dot)ee


System Configuration
---------------------
  Architecture (example: Intel Pentium)         : Intel Pentium 100

  Operating System (example: Linux 2.0.26 ELF)  : winnt4/cygwin 20.1

  PostgreSQL version (example: PostgreSQL-6.5.2): PostgreSQL-7.0beta1

  Compiler used (example:  gcc 2.8.0)           : egcs-2.91.57 (cygwin default)

Please enter a FULL description of your problem:
------------------------------------------------

1) ecpg does not honour HAVE_SNPRINTF being undefined.  make fails :(
----
gcc -o ecpg preproc.o pgc.o type.o ecpg.o ecpg_keywords.o output.o keywords.o c_keywords.o ../lib/typename.o descriptor.o variable.
  -L/usr/local/lib -lcrypt -lm -lreadline -ltermcap -lncurses -lcygipc -g
descriptor.o: In function `ECPGnumeric_lvalue':
/home/src/pgsql/src/interfaces/ecpg/preproc/descriptor.c:55: undefined reference to `snprintf'
descriptor.o: In function `ECPGstring_buffer':
/home/src/pgsql/src/interfaces/ecpg/preproc/descriptor.c:78: undefined reference to `snprintf'
descriptor.o: In function `ECPGstring_length':
/home/src/pgsql/src/interfaces/ecpg/preproc/descriptor.c:94: undefined reference to `snprintf'
/home/src/pgsql/src/interfaces/ecpg/preproc/descriptor.c:101: undefined reference to `snprintf'
descriptor.o: In function `ECPGdata_assignment':
/home/src/pgsql/src/interfaces/ecpg/preproc/descriptor.c:152: undefined reference to `snprintf'
descriptor.o:/home/src/pgsql/src/interfaces/ecpg/preproc/descriptor.c:165: more undefined references to `snprintf' follow
collect2: ld returned 1 exit status
make[3]: *** [ecpg] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all] Error 2
make: *** [all] Error 2
----

2) gcc warns about redefine of CURRENT_TIME. Nothing
serious (I mean the compile does not fail..), I just thought I mention.

defined in backend/parse.h & <sys/ipc.h> (cygwin32_ipc-1.03)

ok, I chacked.  In different .c files they are included in different
order.

ipc.h:	 #define CURRENT_TIME	time(0)
parse.h: #define CURRENT_TIME	287

How it affects the program, I do not know.  Maybe this is serious...


Please describe a way to repeat the problem.   Please try to provide a
concise reproducible example, if at all possible: 
----------------------------------------------------------------------

snoopy$ uname -a
CYGWIN_NT-4.0 SNOOPY 20.1 (0.3/1/1) 1998-12-3 20:39:18 i586 unknown
snoopy$ make


If you know how this problem might be fixed, list the solution below:
---------------------------------------------------------------------

Somebody with a clue should look into it.



pgsql-bugs by date

Next:From: Marko KreenDate: 2000-02-28 11:41:24
Subject: 7.0beta1: bugs appearing on cygwin
Previous:From: mailDate: 2000-02-25 19:44:11
Subject:

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