bug-commoncpp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: IRIX build


From: David Sugar
Subject: Re: IRIX build
Date: Wed, 2 Jan 2002 15:08:01 -0500 (EST)

In regard to snprintf, is not the use of #include <cstdio> or
stdio.h later in the include list sufficient?
Putting stdio.h as the first include is bad at least for glibc because a
number of special things happen in "features.h" which is based on things
set in config.h first, unless another header (like stdio.h) gets to it
first, at which case it becomes broken.  The other issues I am going to
work thru also...

David


On Wed, 2 Jan 2002, Anders Backman wrote:

> 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
>
>
> _______________________________________________
> Bug-commoncpp mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp
>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]