473,472 Members | 1,702 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

PG 7.4 on Tru64 UNIX 4.0 + threads

Hi guys.

Building 7.4 "as we speak". I've run into one minor building bug.

HW: DEC AlphaStation 200
OS: Digital UNIX 4.0D + SP9
PG: 7.4 sources

When I choose to build "with threading support", "configure" selects following
from OSF1 template:

THREAD_SUPPORT=yes
NEED_REENTRANT_FUNCS=no # 4.0 2003-09-13
THREAD_LIBS="-pthread"

Well, this breaks to compile, since ${THREAD_LIBS} will be added as an option of
"/usr/bin/ld", which doesn't like it on 4.0D. I would propose to change it to:

THREAD_SUPPORT=yes
NEED_REENTRANT_FUNCS=no # 4.0 2003-09-13
THREAD_CPPFLAGS="-pthread"
THREAD_LIBS="-lpthread"

I'm building with the new flags and I'll see if it comes up, runs and survives
the tests. If I'm successful, what is the proper channel for getting this update
into the sources?

Note: this is for 4.0 version, it might work flawlessly on Tru64 UNIX 5.x

Nix.
---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to ma*******@postgresql.org)

Nov 12 '05 #1
2 1602

Yes, please tell use if your changed fixed your threading problem on OSF.

---------------------------------------------------------------------------

Nikola Milutinovic wrote:
Hi guys.

Building 7.4 "as we speak". I've run into one minor building bug.

HW: DEC AlphaStation 200
OS: Digital UNIX 4.0D + SP9
PG: 7.4 sources

When I choose to build "with threading support", "configure" selects following
from OSF1 template:

THREAD_SUPPORT=yes
NEED_REENTRANT_FUNCS=no # 4.0 2003-09-13
THREAD_LIBS="-pthread"

Well, this breaks to compile, since ${THREAD_LIBS} will be added as an option of
"/usr/bin/ld", which doesn't like it on 4.0D. I would propose to change it to:

THREAD_SUPPORT=yes
NEED_REENTRANT_FUNCS=no # 4.0 2003-09-13
THREAD_CPPFLAGS="-pthread"
THREAD_LIBS="-lpthread"

I'm building with the new flags and I'll see if it comes up, runs and survives
the tests. If I'm successful, what is the proper channel for getting this update
into the sources?

Note: this is for 4.0 version, it might work flawlessly on Tru64 UNIX 5.x

Nix.
---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to ma*******@postgresql.org)


--
Bruce Momjian | http://candle.pha.pa.us
pg***@candle.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 1: subscribe and unsubscribe commands go to ma*******@postgresql.org

Nov 12 '05 #2
Nikola Milutinovic wrote:
Hi guys.

Building 7.4 "as we speak". I've run into one minor building bug.

HW: DEC AlphaStation 200
OS: Digital UNIX 4.0D + SP9
PG: 7.4 sources

When I choose to build "with threading support", "configure" selects following
from OSF1 template:

THREAD_SUPPORT=yes
NEED_REENTRANT_FUNCS=no # 4.0 2003-09-13
THREAD_LIBS="-pthread"

Well, this breaks to compile, since ${THREAD_LIBS} will be added as an option of
"/usr/bin/ld", which doesn't like it on 4.0D. I would propose to change it to:

THREAD_SUPPORT=yes
NEED_REENTRANT_FUNCS=no # 4.0 2003-09-13
THREAD_CPPFLAGS="-pthread"
THREAD_LIBS="-lpthread"

I'm building with the new flags and I'll see if it comes up, runs and survives
the tests. If I'm successful, what is the proper channel for getting this update
into the sources?

Note: this is for 4.0 version, it might work flawlessly on Tru64 UNIX 5.x


Is this for a non-gcc compiler? Strange you use -pthread for compile
and -lpthread for link. Is that correct?

--
Bruce Momjian | http://candle.pha.pa.us
pg***@candle.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

Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: the_rev_dharma_roadkill | last post by:
I've have some fun getting DCOracle2 (python-to-oracle interface) going on HP/Compaq Tru64 with Oracle8i Release 3 (oracle 8.1.7). I'd like to share an answer/bug-fix with you: After un-tarring...
5
by: Heuguette Bostic | last post by:
I am attempting to compile Python 2-3.4 on Tru64 UNIX V4.0F. Whenever Iissue the make command, the following errors are output: -pthread -ieee -std -Olimit 1500 -DNDEBUG -O -I. -I./Include...
2
by: jose luis fernandez diaz | last post by:
Hi, When I run the program below on Tru64: #include <string> int main() { char *cad="hola"; string s1 = 1 ? string(cad, 0, 2) : "";
2
by: William Rusch | last post by:
Im having issues getting mod_jk2 for Apache and tomcat to compile using, cygnus's gcc on tru64 5.1a from the looks of it I dont understand why this is an issue. here is the error: gcc -g...
3
by: Nikola Milutinovic | last post by:
Hi guys. I have just had some problems resolved while building PostgreSQL 7.4.2 on Tru64 UNIX 5.1B. File "./src/backend/utils/adt/float.c" uses "NAN" on two spots. It ahs a fall-back...
0
by: avidamani | last post by:
Hi, I have a c++ application in which I am using stringstream to convert integer/long to string. std::stringstream x; int y = 5; x << y; Whenever I do that I get an unalignedd access...
2
by: avidamani | last post by:
Hi, I have a c++ application compiled using Compaq C++ V6.5-014 for Compaq Tru64 UNIX V5.1A (Rev. 1885) Compiler Driver V6.5-014 (cxx) cxx Driver The problem is that the application is...
2
by: anand.ba | last post by:
Hi all I need to find equivalent windows libraries for the following unix ones. #include <sys/prctl.h> #include <sys/ioctl.h> #include <unistd.h>
2
by: awalter1 | last post by:
Hi, I have a Python application that runs under HPUX 11.11 (then unix). It uses threads : from threading import Thread # Class Main class RunComponent(Thread): My application should run under...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.