[torqueusers] Compiling Torque under IRIX64

Rushton Martin JMRUSHTON at qinetiq.com
Wed Sep 17 10:06:31 MDT 2008


I have come across the following problems compiling both
Torque 2.2.1 and 2.3.3 under Irix on an Origin 2000:

1) Incorrect detection of word length

Problem: Configure compiles a test progam (conftest) to
determine the machine's type.  This defaults to compiling
with the n32 interface, and as a result some parts are
compiled -n32 and some -64.

Solution: Always use "export CFLAGS=-64" before starting
configure.

2) Incorrectly defined functions index() and rindex()

Problem: Type mismatch.  The man page for string(3C) states
"index (rindex) are included as duplicates of strchr (strrchr)
for compatibility" and later "Declarations for index and
rindex are specifically omitted from <string.h> due to
possible naming conflicts. Instead, they are declared in
<strings.h>."

Solution: Add the line "include <strings.h>" to the top of
src/server/array_func.c and src/server/job_func.c

Martin Rushton
HPC Facility

QinetiQ
Bldg H4 Rm 6
MoD Fort Halstead
Sevenoaks
Kent, TN14 7BP

Tel:    01959 514777
Email:  jmrushton at QinetiQ.com
Mobile: 07939 219057
Fax:    01959 51 6050
Web:    www.QinetiQ.com

QinetiQ - The Global Defence and Security Experts

* Please consider the environment before printing this email.
The information contained in this E-Mail and any subsequent 
correspondence is private and is intended solely for the intended 
recipient(s).  The information in this communication may be 
confidential and/or legally privileged.  Nothing in this e-mail is 
intended to conclude a contract on behalf of QinetiQ or make QinetiQ 
subject to any other legally binding commitments, unless the e-mail 
contains an express statement to the contrary or incorporates a formal Purchase Order.

For those other than the recipient any disclosure, copying, 
distribution, or any action taken or omitted to be taken in reliance 
on such information is prohibited and may be unlawful.

Emails and other electronic communication with QinetiQ may be 
monitored and recorded for business purposes including security, audit 
and archival purposes.  Any response to this email indicates consent 
to this.

Telephone calls to QinetiQ may be monitored or recorded for quality 
control, security and other business purposes.

QinetiQ Limited
Registered in England & Wales: Company Number:3796233
Registered office: 85 Buckingham Gate, London SW1E 6PD, United Kingdom
Trading address: Cody Technology Park, Cody Building, Ively Road, Farnborough, Hampshire, GU14 0LX, United Kingdom 
http://www.qinetiq.com/home/notices/legal.html


More information about the torqueusers mailing list