bugConcurrent Versions System - Bugs: bug #15040, Trunk build fails on OpenBSD...

 
 

bug #15040: Trunk build fails on OpenBSD sparc64

Submitter:  Alexander Taler <dissent>
Submitted:  Wed 23 Nov 2005 01:15:42 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  mdb
Open/Closed:  Closed Release: 
Fixed Release:  None Fixed Feature Release:  1.12.14
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 30 Mar 2006 06:16:15 PM UTC, comment #5: 

stdint_.h has been fixed in GNULIB and picked up by the FEATURE
branch of CVS.

Mark D. Baushke <mdb>
Group administrator
Thu 16 Mar 2006 08:34:29 PM UTC, comment #4: 

config.h attached

sys/types.h includes machine/types.h which includes machine/int_types.h

stdio.h includes machine/types.h via machine/ansi.h and via sys/types.h

many files include sys/types.h, including unistd.h

Alexander Taler <dissent>
Thu 16 Mar 2006 06:07:36 PM UTC, comment #3: 

Could you please attach your config.h file?

Is the /usr/include/machine/int_types.h included in
sys/types.h or any other file than stddef.h ?

Mark D. Baushke <mdb>
Group administrator
Thu 16 Mar 2006 02:40:55 PM UTC, comment #2: 

My apologies for the excessively long response, but the build is still failing.  That did not correct the problem.

Alexander Taler <dissent>
Wed 07 Dec 2005 10:54:02 AM UTC, comment #1: 

GNULIB stdint_.h has been updated and I have checked in the
update to top-of-tree on the main trunk. I believe this
should fix your problem. Could you please update your tree
and verify that it is fixed?

Mark D. Baushke <mdb>
Group administrator
Wed 23 Nov 2005 01:15:42 PM UTC, original submission:  

Hi, I'm having a build failure for cvs 1.12 (trunk) on OpenBSD
Sparc64.  Support for inttypes is not being correctly detected.

Here's the tail of my build:

====================

if gcc -DHAVE_CONFIG_H -I. -I/home/cvstest/cvs-nightly/lib -I..    -Ino/include 
-g -O2 -MT md5.o -MD -MP -MF ".deps/md5.Tpo" -c -o md5.o /home/cvstest/cvs-nightl
y/lib/md5.c;  then mv -f ".deps/md5.Tpo" ".deps/md5.Po"; else rm -f ".deps/md5.Tp
o"; exit 1; fi
In file included from /home/cvstest/cvs-nightly/lib/md5.h:25,
                 from /home/cvstest/cvs-nightly/lib/md5.c:27:
stdint.h:62: warning: redefinition of `int8_t'
/usr/include/machine/int_types.h:53: warning: `int8_t' previously declared here
stdint.h:64: warning: redefinition of `uint8_t'
/usr/include/machine/int_types.h:54: warning: `uint8_t' previously declared here
stdint.h:67: warning: redefinition of `int16_t'
/usr/include/machine/int_types.h:56: warning: `int16_t' previously declared here
stdint.h:69: warning: redefinition of `uint16_t'
/usr/include/machine/int_types.h:57: warning: `uint16_t' previously declared here
stdint.h:72: warning: redefinition of `int32_t'
/usr/include/machine/int_types.h:59: warning: `int32_t' previously declared here
stdint.h:74: warning: redefinition of `uint32_t'
/usr/include/machine/int_types.h:60: warning: `uint32_t' previously declared here
stdint.h:78: error: conflicting types for `int64_t'
/usr/include/machine/int_types.h:69: error: previous declaration of `int64_t'
stdint.h:80: error: conflicting types for `uint64_t'
/usr/include/machine/int_types.h:70: error: previous declaration of `uint64_t'
stdint.h:136: warning: useless keyword or type name in empty declaration
stdint.h:136: warning: empty declaration
stdint.h:137: warning: useless keyword or type name in empty declaration
stdint.h:137: warning: empty declaration
In file included from /home/cvstest/cvs-nightly/lib/md5.h:25,
                 from /home/cvstest/cvs-nightly/lib/md5.c:27:
stdint.h:233:1: warning: "SIZE_MAX" redefined
In file included from /usr/include/sys/limits.h:45,
                 from /usr/include/limits.h:88,
                 from stdint.h:30,
                 from /home/cvstest/cvs-nightly/lib/md5.h:25,
                 from /home/cvstest/cvs-nightly/lib/md5.c:27:
/usr/include/machine/limits.h:41:1: warning: this is the location of the previous
 definition
* Error code 1

Stop in /tmp/cvs-nightly/lib.
* Error code 1

Stop in /tmp/cvs-nightly/lib (line 354 of Makefile).
* Error code 1

Stop in /tmp/cvs-nightly (line 418 of Makefile).
* Error code 1

Stop in /tmp/cvs-nightly (line 326 of Makefile).

====================

Here's a snippet of the configure output:

====================

checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... no
checking for unistd.h... yes

====================

and here's the complete (except the license)
/usr/include/machine/int_types.h, which is included from stddef.h

====================

#ifndef SPARC64_INT_TYPES_H
#define SPARC64_INT_TYPES_H

/*

  • 7.18.1 Integer types

 */

/* 7.18.1.1 Exact-width integer types */

typedef __signed char            int8_t;
typedef unsigned char           uint8_t;
typedef unsigned char          u_int8_t;
typedef short int               int16_t;
typedef unsigned short int     uint16_t;
typedef unsigned short int    u_int16_t;
typedef int                     int32_t;
typedef unsigned int           uint32_t;
typedef unsigned int          u_int32_t;

#ifdef _COMPILER_INT64_
typedef _COMPILER_INT64_      int64_t;
typedef _COMPILER_UINT64_    uint64_t;
typedef _COMPILER_UINT64_   u_int64_t;
#else
/* 64-bit compiler */
typedef long long int           int64_t;
typedef unsigned long long int  uint64_t;
typedef unsigned long long int  u_int64_t;
#endif /* !__COMPILER_INT64__ */

#define _BIT_TYPES_DEFINED_

/* 7.18.1.4 Integer types capable of holding object pointers */

typedef long int               __intptr_t;
typedef unsigned long int     __uintptr_t;

#endif  /* !_SPARC64_INT_TYPES_H_ */

====================



Alexander Taler <dissent>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #1489:  types.h added by dissent (7KiB - text/x-chdr - /usr/include/sys/types.h from OpenBSD 3.6 Sparc64)
file #1488:  int_types.h added by dissent (3KiB - text/x-chdr - /usr/include/machine/int_types.h from OpenBSD 3.6 Sparc64)
file #1503:  config.h added by dissent (42KiB - text/x-chdr)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

Follow 6 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2006-03-30 mdb Assigned toNone mdb
    Open/ClosedOpen Closed
    Fixed Feature ReleaseNone 1.12.14
2006-03-28 dissent Attached File- Added types.h, #3523
2006-03-28 dissent Attached File- Added int_types.h, #3522
2006-03-16 dissent Attached File- Added config.h, #3504

Back to the top

Powered by Savane 3.13-f8d8.
Corresponding source code