libunwind-devel
[Top][All Lists]
Advanced

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

[Libunwind-devel] Epic fail compiling on OpenBSD 4.5 i386


From: Aaron Mason
Subject: [Libunwind-devel] Epic fail compiling on OpenBSD 4.5 i386
Date: Tue, 30 Jun 2009 14:25:11 +1000

Hi,

I'm trying to compile InspIRCD which needs libunwind, but it isn't available with OpenBSD nor is it in their ports repository.

When I try to compile libunwind, the following output ensues:

$ make check
Making check in src
make  check-am
depbase=`echo ptrace/_UPT_elf.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`; gcc -DHAVE_CONFIG_H -I. -I../include  -I../include -I../include/tdep-x86 -I.  -D_GNU_SOURCE -DNDEBUG  -g -O2 -fexceptions -Wall -Wsign-compare -MT ptrace/_UPT_elf.o -MD -MP -MF $depbase.Tpo -c -o ptrace/_UPT_elf.o ptrace/_UPT_elf.c && mv -f $depbase.Tpo $depbase.Po
In file included from ../include/libunwind.h:17,
                 from ../include/libunwind_i.h:50,
                 from ptrace/_UPT_elf.c:4:
../include/libunwind-x86.h:34:22: ucontext.h: No such file or directory
In file included from ../include/libunwind.h:17,
                 from ../include/libunwind_i.h:50,
                 from ptrace/_UPT_elf.c:4:
../include/libunwind-x86.h:164: error: syntax error before "unw_tdep_context_t"
../include/libunwind-x86.h:164: warning: type defaults to `int' in declaration of `unw_tdep_context_t'
../include/libunwind-x86.h:164: warning: data definition has no type or storage class
In file included from ../include/libunwind-x86.h:180,
                 from ../include/libunwind.h:17,
                 from ../include/libunwind_i.h:50,
                 from ptrace/_UPT_elf.c:4:
../include/libunwind-common.h:102: error: syntax error before "unw_context_t"
../include/libunwind-common.h:102: warning: type defaults to `int' in declaration of `unw_context_t'
../include/libunwind-common.h:102: warning: data definition has no type or storage class
../include/libunwind-common.h:236: error: syntax error before "unw_context_t"
In file included from ptrace/_UPT_elf.c:4:
../include/libunwind_i.h:65:5: #error Host has unknown byte-order.
In file included from elf32.h:5,
                 from ../include/tdep-x86/libunwind_i.h:35,
                 from ../include/tdep/libunwind_i.h:17,
                 from ../include/libunwind_i.h:287,
                 from ptrace/_UPT_elf.c:4:
elfxx.h:27:17: elf.h: No such file or directory
In file included from ptrace/_UPT_elf.c:5:
elfxx.c: In function `_Uelf32_valid_object':
elfxx.c:34: error: `EI_CLASS' undeclared (first use in this function)
elfxx.c:34: error: (Each undeclared identifier is reported only once
elfxx.c:34: error: for each function it appears in.)
elfxx.c:37: error: `ELFMAG' undeclared (first use in this function)
elfxx.c:37: error: `SELFMAG' undeclared (first use in this function)
elfxx.c:38: error: `ELFCLASS32' undeclared (first use in this function)
elfxx.c: At top level:
elfxx.c:45: error: syntax error before "Elf32_Addr"
elfxx.c: In function `_Uelf32_lookup_symbol':
elfxx.c:49: error: `Elf32_Ehdr' undeclared (first use in this function)
elfxx.c:49: error: `ehdr' undeclared (first use in this function)
elfxx.c:49: error: `ei' undeclared (first use in this function)
elfxx.c:50: error: `Elf32_Sym' undeclared (first use in this function)
elfxx.c:50: error: `sym' undeclared (first use in this function)
elfxx.c:50: error: `symtab' undeclared (first use in this function)
elfxx.c:50: error: `symtab_end' undeclared (first use in this function)
elfxx.c:50: warning: left-hand operand of comma _expression_ has no effect
elfxx.c:50: warning: left-hand operand of comma _expression_ has no effect
elfxx.c:51: error: syntax error before "soff"
elfxx.c:52: error: `Elf32_Shdr' undeclared (first use in this function)
elfxx.c:52: error: `shdr' undeclared (first use in this function)
elfxx.c:52: error: `str_shdr' undeclared (first use in this function)
elfxx.c:52: warning: left-hand operand of comma _expression_ has no effect
elfxx.c:53: error: syntax error before "val"
elfxx.c:60: error: `soff' undeclared (first use in this function)
elfxx.c:69: error: syntax error before ')' token
elfxx.c:75: error: `SHT_SYMTAB' undeclared (first use in this function)
elfxx.c:76: error: `SHT_DYNSYM' undeclared (first use in this function)
elfxx.c:77: error: syntax error before ')' token
elfxx.c:78: error: syntax error before ')' token
elfxx.c:81: error: `str_soff' undeclared (first use in this function)
elfxx.c:89: error: syntax error before ')' token
elfxx.c:98: error: syntax error before ')' token
elfxx.c:100: warning: implicit declaration of function `ELF32_ST_TYPE'
elfxx.c:101: error: `STT_FUNC' undeclared (first use in this function)
elfxx.c:101: error: `SHN_UNDEF' undeclared (first use in this function)
elfxx.c:103: error: `val' undeclared (first use in this function)
elfxx.c:103: warning: left-hand operand of comma _expression_ has no effect
elfxx.c:105: error: `SHN_ABS' undeclared (first use in this function)
elfxx.c:106: error: `load_offset' undeclared (first use in this function)
elfxx.c:110: error: `Elf32_Addr' undeclared (first use in this function)
elfxx.c:110: error: `ip' undeclared (first use in this function)
elfxx.c:110: error: `min_dist' undeclared (first use in this function)
elfxx.c:113: error: `buf' undeclared (first use in this function)
elfxx.c:113: error: `buf_len' undeclared (first use in this function)
elfxx.c:125: error: syntax error before ')' token
elfxx.c:129: error: `offp' undeclared (first use in this function)
elfxx.c: In function `_Uelf32_get_proc_name':
elfxx.c:144: error: syntax error before "load_offset"
elfxx.c:146: error: `Elf32_Ehdr' undeclared (first use in this function)
elfxx.c:146: error: `ehdr' undeclared (first use in this function)
elfxx.c:147: error: `Elf32_Phdr' undeclared (first use in this function)
elfxx.c:147: error: `phdr' undeclared (first use in this function)
elfxx.c:155: error: syntax error before ')' token
elfxx.c:158: error: `PT_LOAD' undeclared (first use in this function)
elfxx.c:160: error: `load_offset' undeclared (first use in this function)
*** Error code 1

Stop in /home/amason/dev/libunwind-0.99/src (line 92 of /usr/share/mk/sys.mk).
*** Error code 1

Stop in /home/amason/dev/libunwind-0.99/src (line 2870 of Makefile).
*** Error code 1

Stop in /home/amason/dev/libunwind-0.99 (line 384 of Makefile).


I get something very similar when I run gmake.

I'm running OpenBSD 4.5 i386 GENERIC.

Any ideas?

reply via email to

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