Error building nspr during Gnome-Control Center install

Mark HerrPoetry at HailMail.net
Mon Jan 19 13:28:30 PST 2009


Joshua Root wrote:
> Mark wrote:
>   
>> Joshua Root wrote:
>>     
>>> Mark wrote:
>>>   
>>>       
>>>> Back to nspr. I did what you said. Here's the entire nspr build phase
>>>> output:
>>>>         
>>> [...]
>>>   
>>>       
>>>> /usr/include/mach/host_info.h:70:26: error: /usr/include/mach/machine.h: Input/output error
>>>>         
>>> That looks fairly dire.
>>>
>>> - Josh
>>>       
>> Is there anything I can do about it? Put more locks on my house? Buy
>> small handgun? /Any/thing computer-related? I'm mostly a newbie: I know
>> that ".h" signifies header file, but I couldn't read through one with
>> any comprehension.
>>     
>
> The particular file isn't important, what's worrying is the
> "Input/output error", which means the OS could not read it. Worst case,
> it means you have a corrupted filesystem or your hard drive is dying.
>
> Can you open that file at all?
>
> - Josh

Oh, !#^% me. I'm taking deep breaths. Okay, a preliminary question: what 
low-impact tool(s) can I use to check out my file system & hard drive? 
(I'm doing a full backup as I type.)

Back to machine.h. When I select the file in Path Finder (which I use 
instead of Finder), I cannot get a preview of the text. However, I can 
open the file in BBedit. But notice what happens to the text at line 202 
(I added line numbers just for your reading convenience) -- I'm guessing 
that kind of goop is not normal? Here's the entire machine.h file:

> 1 /*
> 2  * Copyright (c) 2000-2007 Apple Computer, Inc. All rights reserved.
> 3  *
> 4  * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
> 5  *
> 6  * This file contains Original Code and/or Modifications of Original 
> Code
> 7  * as defined in and that are subject to the Apple Public Source License
> 8  * Version 2.0 (the 'License'). You may not use this file except in
> 9  * compliance with the License. The rights granted to you under the 
> License
> 10  * may not be used to create, or enable the creation or 
> redistribution of,
> 11  * unlawful or unlicensed copies of an Apple operating system, or to
> 12  * circumvent, violate, or enable the circumvention or violation 
> of, any
> 13  * terms of an Apple operating system software license agreement.
> 14  *
> 15  * Please obtain a copy of the License at
> 16  * http://www.opensource.apple.com/apsl/ and read it before using 
> this file.
> 17  *
> 18  * The Original Code and all software distributed under the License are
> 19  * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, 
> EITHER
> 20  * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
> 21  * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
> 22  * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR 
> NON-INFRINGEMENT.
> 23  * Please see the License for the specific language governing 
> rights and
> 24  * limitations under the License.
> 25  *
> 26  * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
> 27  */
> 28 /*
> 29  * Mach Operating System
> 30  * Copyright (c) 1991,1990,1989,1988,1987 Carnegie Mellon University
> 31  * All Rights Reserved.
> 32  *
> 33  * Permission to use, copy, modify and distribute this software and its
> 34  * documentation is hereby granted, provided that both the copyright
> 35  * notice and this permission notice appear in all copies of the
> 36  * software, derivative works or modified versions, and any portions
> 37  * thereof, and that both notices appear in supporting documentation.
> 38  *
> 39  * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
> 40  * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
> 41  * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
> 42  *
> 43  * Carnegie Mellon requests users of this software to return to
> 44  *
> 45  *  Software Distribution Coordinator  or  
> Software.Distribution at CS.CMU.EDU
> 46  *  School of Computer Science
> 47  *  Carnegie Mellon University
> 48  *  Pittsburgh PA 15213-3890
> 49  *
> 50  * any improvements or extensions that they make and grant Carnegie 
> Mellon
> 51  * the rights to redistribute these changes.
> 52  */
> 53 /*    File:    machine.h
> 54  *    Author:    Avadis Tevanian, Jr.
> 55  *    Date:    1986
> 56  *
> 57  *    Machine independent machine abstraction.
> 58  */
> 59
> 60 #ifndef    _MACH_MACHINE_H_
> 61 #define _MACH_MACHINE_H_
> 62
> 63 #include <stdint.h>
> 64 #include <mach/machine/vm_types.h>
> 65 #include <mach/boolean.h>
> 66
> 67 typedef integer_t    cpu_type_t;
> 68 typedef integer_t    cpu_subtype_t;
> 69 typedef integer_t    cpu_threadtype_t;
> 70
> 71 #define CPU_STATE_MAX        4
> 72
> 73 #define CPU_STATE_USER        0
> 74 #define CPU_STATE_SYSTEM    1
> 75 #define CPU_STATE_IDLE        2
> 76 #define CPU_STATE_NICE        3
> 77
> 78
> 79
> 80 /*
> 81  * Capability bits used in the definition of cpu_type.
> 82  */
> 83 #define    CPU_ARCH_MASK    0xff000000        /* mask for 
> architecture bits */
> 84 #define CPU_ARCH_ABI64    0x01000000        /* 64 bit ABI */
> 85
> 86 /*
> 87  *    Machine types known by all.
> 88  */
> 89  
> 90 #define CPU_TYPE_ANY        ((cpu_type_t) -1)
> 91
> 92 #define CPU_TYPE_VAX        ((cpu_type_t) 1)
> 93 /* skip                ((cpu_type_t) 2)    */
> 94 /* skip                ((cpu_type_t) 3)    */
> 95 /* skip                ((cpu_type_t) 4)    */
> 96 /* skip                ((cpu_type_t) 5)    */
> 97 #define    CPU_TYPE_MC680x0    ((cpu_type_t) 6)
> 98 #define CPU_TYPE_X86        ((cpu_type_t) 7)
> 99 #define CPU_TYPE_I386        CPU_TYPE_X86        /* compatibility */
> 100 #define    CPU_TYPE_X86_64        (CPU_TYPE_X86 | CPU_ARCH_ABI64)
> 101
> 102 /* skip CPU_TYPE_MIPS        ((cpu_type_t) 8)    */
> 103 /* skip             ((cpu_type_t) 9)    */
> 104 #define CPU_TYPE_MC98000    ((cpu_type_t) 10)
> 105 #define CPU_TYPE_HPPA           ((cpu_type_t) 11)
> 106 #define CPU_TYPE_ARM        ((cpu_type_t) 12)
> 107 #define CPU_TYPE_MC88000    ((cpu_type_t) 13)
> 108 #define CPU_TYPE_SPARC        ((cpu_type_t) 14)
> 109 #define CPU_TYPE_I860        ((cpu_type_t) 15)
> 110 /* skip    CPU_TYPE_ALPHA        ((cpu_type_t) 16)    */
> 111 /* skip                ((cpu_type_t) 17)    */
> 112 #define CPU_TYPE_POWERPC        ((cpu_type_t) 18)
> 113 #define CPU_TYPE_POWERPC64        (CPU_TYPE_POWERPC | CPU_ARCH_ABI64)
> 114
> 115 /*
> 116  *    Machine subtypes (these are defined here, instead of in a 
> machine
> 117  *    dependent directory, so that any program can get all definitions
> 118  *    regardless of where is it compiled).
> 119  */
> 120
> 121 /*
> 122  * Capability bits used in the definition of cpu_subtype.
> 123  */
> 124 #define CPU_SUBTYPE_MASK    0xff000000    /* mask for feature flags */
> 125 #define CPU_SUBTYPE_LIB64    0x80000000    /* 64 bit libraries */
> 126
> 127
> 128 /*
> 129  *    Object files that are hand-crafted to run on any
> 130  *    implementation of an architecture are tagged with
> 131  *    CPU_SUBTYPE_MULTIPLE.  This functions essentially the same as
> 132  *    the "ALL" subtype of an architecture except that it allows us
> 133  *    to easily find object files that may need to be modified
> 134  *    whenever a new implementation of an architecture comes out.
> 135  *
> 136  *    It is the responsibility of the implementor to make sure the
> 137  *    software handles unsupported implementations elegantly.
> 138  */
> 139 #define    CPU_SUBTYPE_MULTIPLE        ((cpu_subtype_t) -1)
> 140 #define CPU_SUBTYPE_LITTLE_ENDIAN    ((cpu_subtype_t) 0)
> 141 #define CPU_SUBTYPE_BIG_ENDIAN        ((cpu_subtype_t) 1)
> 142
> 143 /*
> 144  *     Machine threadtypes.
> 145  *     This is none - not defined - for most machine types/subtypes.
> 146  */
> 147 #define CPU_THREADTYPE_NONE        ((cpu_threadtype_t) 0)
> 148
> 149 /*
> 150  *    VAX subtypes (these do *not* necessary conform to the actual cpu
> 151  *    ID assigned by DEC available via the SID register).
> 152  */
> 153
> 154 #define    CPU_SUBTYPE_VAX_ALL    ((cpu_subtype_t) 0)
> 155 #define CPU_SUBTYPE_VAX780    ((cpu_subtype_t) 1)
> 156 #define CPU_SUBTYPE_VAX785    ((cpu_subtype_t) 2)
> 157 #define CPU_SUBTYPE_VAX750    ((cpu_subtype_t) 3)
> 158 #define CPU_SUBTYPE_VAX730    ((cpu_subtype_t) 4)
> 159 #define CPU_SUBTYPE_UVAXI    ((cpu_subtype_t) 5)
> 160 #define CPU_SUBTYPE_UVAXII    ((cpu_subtype_t) 6)
> 161 #define CPU_SUBTYPE_VAX8200    ((cpu_subtype_t) 7)
> 162 #define CPU_SUBTYPE_VAX8500    ((cpu_subtype_t) 8)
> 163 #define CPU_SUBTYPE_VAX8600    ((cpu_subtype_t) 9)
> 164 #define CPU_SUBTYPE_VAX8650    ((cpu_subtype_t) 10)
> 165 #define CPU_SUBTYPE_VAX8800    ((cpu_subtype_t) 11)
> 166 #define CPU_SUBTYPE_UVAXIII    ((cpu_subtype_t) 12)
> 167
> 168 /*
> 169  *     680x0 subtypes
> 170  *
> 171  * The subtype definitions here are unusual for historical reasons.
> 172  * NeXT used to consider 68030 code as generic 68000 code.  For
> 173  * backwards compatability:
> 174  *
> 175  *    CPU_SUBTYPE_MC68030 symbol has been preserved for source code
> 176  *    compatability.
> 177  *
> 178  *    CPU_SUBTYPE_MC680x0_ALL has been defined to be the same
> 179  *    subtype as CPU_SUBTYPE_MC68030 for binary comatability.
> 180  *
> 181  *    CPU_SUBTYPE_MC68030_ONLY has been added to allow new object
> 182  *    files to be tagged as containing 68030-specific instructions.
> 183  */
> 184
> 185 #define    CPU_SUBTYPE_MC680x0_ALL        ((cpu_subtype_t) 1)
> 186 #define CPU_SUBTYPE_MC68030        ((cpu_subtype_t) 1) /* compat */
> 187 #define CPU_SUBTYPE_MC68040        ((cpu_subtype_t) 2)
> 188 #define    CPU_SUBTYPE_MC68030_ONLY    ((cpu_subtype_t) 3)
> 189
> 190 /*
> 191  *    I386 subtypes
> 192  */
> 193
> 194 #define CPU_SUBTYPE_INTEL(f, m)    ((cpu_subtype_t) (f) + ((m) << 4))
> 195
> 196 #define    CPU_SUBTYPE_I386_ALL            CPU_SUBTYPE_INTEL(3, 0)
> 197 #define CPU_SUBTYPE_386                    CPU_SUBTYPE_INTEL(3, 0)
> 198 #define CPU_SUBTYPE_486                    CPU_SUBTYPE_INTEL(4, 0)
> 199 #define CPU_SUBTYPE_486SX                CPU_SUBTYPE_INTEL(4, 8)   
>  // 8 << 4 = 128
> 200 #define CPU_SUBTYPE_586                    CPU_SUBTYPE_INTEL(5, 0)
> 201 #define CPU_SUBTYPE_PENT    CPU_SUBTYPE_INTEL(5, 0)
> 202 #define CPU_SUBTYPE_PENTPRO    CPU_SUBTYPE_INTEL(6, 
> 1)c¤wòÜò    ¤?}(F*?íærs?üj¸VÒ³
> 203 Iú¼Þ×OÜaýüïS?ú?YÃ5
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20090119/ed7611c2/attachment.html>


More information about the macports-users mailing list