dbTalk Databases Forums  

[BUGS] Build problems for PostgreSQL v7.4 on FreeBSD v4.1

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] Build problems for PostgreSQL v7.4 on FreeBSD v4.1 in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Richard Scranton
 
Posts: n/a

Default [BUGS] Build problems for PostgreSQL v7.4 on FreeBSD v4.1 - 11-18-2003 , 01:58 PM







In file postgresql-7.4/src/interfaces/ecpg/ecpglib/misc.c, this version
of FreeBSD has no definition of LONG_LONG_MIN, although it does
support an int64_t integral type. Compilation was successful after
inserting
a definition immediately following the block of included files:

/* XXX */
#define LONG_LONG_MIN (1LL << 63)


In file
postgresql-7.4/src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1ResultSet.java,
the JDBC version 1 driver cannot be built with JDK v1.1.8 because that
version of the Double class does not include a static parseDouble(String)
method, which first appeared in JDK 1.2. The driver will compile if
line 836 is
modified as below.

// XXX if (Double.parseDouble(s)==1)
if (Double.valueOf(s).doubleValue()==1)


--
__________________________________________________ _____
When you can see a light at the end of the tunnel, it
will be a guy with a flashlight bringing more bad news.





---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match

Reply With Quote
  #2  
Old   
Bruce Momjian
 
Posts: n/a

Default Re: [BUGS] Build problems for PostgreSQL v7.4 on FreeBSD v4.1 - 11-29-2003 , 09:28 PM






Richard Scranton wrote:
Quote:
In file postgresql-7.4/src/interfaces/ecpg/ecpglib/misc.c, this version
of FreeBSD has no definition of LONG_LONG_MIN, although it does
support an int64_t integral type. Compilation was successful after
inserting
a definition immediately following the block of included files:

/* XXX */
#define LONG_LONG_MIN (1LL << 63)
I am not sure it was reported to you but this was fixed and is in 7.4:

revision 1.16
date: 2003/10/21 15:34:34; author: tgl; state: Exp; lines: +5 -1
branches: 1.16.2;
Cope with platforms that offer LONGLONG_MIN in place of the C99-spec
LLONG_MIN. One example is AIX, per report from Andreas.


--
Bruce Momjian | http://candle.pha.pa.us
pgman (AT) candle (DOT) pha.pa.us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.