[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
IRIX build
From: |
Anders Backman |
Subject: |
IRIX build |
Date: |
Wed, 2 Jan 2002 20:38:47 +0100 |
Hi there.
Im trying to build 1.9.3 under irix 6.5 on an SGI machine.
It seems to be some problems here.
---------------------------
1. I still have to (since long back in CC++) include the following three
lines in the beginning of config.h
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/inet.h>
To get it to work.
The u_short is missing somewhere in a file later on otherwise.
c++ -DHAVE_CONFIG_H -I. -I. -I. -I../src -I../src -g -O2 -D_GNU_SOURCE
-D_REENTRANT -D_THREAD_SAFE -c thread.cpp -DPIC -o .libs/thread.lo
In file included from config.h:555,
from thread.cpp:41:
/usr/include/netinet/in_systm.h:34: syntax error before `;'
----------------------------
2. in the file.cpp there is problems:
c++ -DHAVE_CONFIG_H -I. -I. -I. -I../src -I../src -g -O2 -D_GNU_SOURCE
-D_REENTRANT -D_THREAD_SAFE -c file.cpp -DPIC -o .libs/file.lo
file.cpp: In method `enum ost::fileerror_t ost::ThreadFile::Open(const
char *)':
file.cpp:333: no matching function for call to `flock::flock (int &,
int)'
/usr/include/sys/fcntl.h:156: candidates are: flock::flock(const flock
&)
/usr/include/sys/fcntl.h:156: flock::flock()
file.cpp: In method `enum ost::fileerror_t ost::SharedFile::Open(const
char *)':
file.cpp:558: no matching function for call to `flock::flock (int &,
int)'
/usr/include/sys/fcntl.h:156: candidates are: flock::flock(const flock
&)
/usr/include/sys/fcntl.h:156: flock::flock()
This is due to that the flock function is defined in
SYNOPSIS
#include <sys/file.h>
int flock(int fd, int operation);
So its colliding with the system defined function.
------------------
3. The function snprintf doesn't seem to be defined in keydata.cpp.
If I include the <stdio.h> as the first includefile in keydata.cpp it
works.
c++ -DHAVE_CONFIG_H -I. -I. -I. -I../src -I../src -g -O2 -D_GNU_SOURCE
-D_REENTR
ANT -D_THREAD_SAFE -c keydata.cpp -DPIC -o .libs/keydata.lo
keydata.cpp: In method `void ost::Keydata::LoadPrefix(const char *,
const char *
, const char * = "CONFIG_KEYDATA")':
keydata.cpp:398: implicit declaration of function `int
ost::snprintf(...)'
-----------------------
4. The same snprintf problem for groups.cpp
________________________________________________________________
Anders Backman Email: address@hidden
HPC2N/VRlab Phone: +46 (0)90-786 9936
Umea university Cellular: +46 (0)70-392 64 67
S-901 87 UMEA SWEDEN Fax: +46 90-786 6126
http://www.cs.umu.se/~andersb
- IRIX build,
Anders Backman <=