discuss-gnustep
[Top][All Lists]
Advanced

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

problem with libobc1 on OpenBSD amd64 cannot find tconfig.h when compili


From: Sebastian Reitenbach
Subject: problem with libobc1 on OpenBSD amd64 cannot find tconfig.h when compiling
Date: Fri, 01 Jul 2011 16:04:30 +0200
User-agent: SOGoMail 1.3.7

Hi,

on OpenBSD/amd64, trying to compile the old libgnustep, I run into the 
following problem:

cc archive.c -c \
-MMD -MP -DIN_GCC -pipe -DSTDC_HEADERS=1 -DHAVE_STDLIB_H
-DOBJC_WITH_GC=0 -DDEBUG_OBJC_GC=0 -DGNU_RUNTIME=1 -DGNUSTEP_BASE_LIBRARY=1
-D_REENTRANT -fPIC -Wall -DGSWARN -DGSDIAGNOSE -Wno-import -O2 -pipe -Wall
-Iconfig/x86_64/openbsd4.9 -Iconfig/x86_64/generic -I. -I.
-I/usr/local/include
-I/gnustep-objc-1.6.0_writes_to_HOME/GNUstep/Library/Headers
-I/usr/local/include \
-o obj/libgobjc.obj/archive.c.o
archive.c:27:21: error: tconfig.h: No such file or directory


there are a lot of tconfig.h files there:
$ find . -name tconfig.h
./config/alpha/generic/tconfig.h
./config/hppa/hpux/tconfig.h
./config/i386/linux-gnu/tconfig.h
./config/ix86/generic/tconfig.h
./config/ix86/linux-gnu/tconfig.h
./config/ix86/mingw32/tconfig.h
./config/m68k/generic/tconfig.h
./config/mips/irix6/tconfig.h
./config/powerpc/generic/tconfig.h
./config/sparc/generic/tconfig.h
./config/sparc/linux-gnu/tconfig.h
./config/sparc/solaris2.6/tconfig.h
./config/unknown/generic/tconfig.h

since the files for i386 and ix86 are all the same, is it safe to assume that 
it would be safe to create a subdirectory config/x86_64/generic and copy the 
ix86/generic/tconfig.h file into it to allow gcc to find the header file?
The contents of this file is:

#define STRUCTURE_SIZE_BOUNDARY 8
#define PCC_BITFIELD_TYPE_MATTERS 1
#define BITS_PER_UNIT 8
#define BITS_PER_WORD 32

Or may I need to change the BITS_PER_WORD to 64?

Sebastian




reply via email to

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