BB Unix Network Monitor - Message
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: {bb} Fix: compiling BB on OpenBSD
> I found that someone else in the archives had the same problem as I did.
>
> http://support.bb4.com/archive/200511/msg00023.html
>
> cc1: error: trampoline code generation is not allowed without
-ftrampolines
>
> You need to add the -ftrampolines to the CFLAGS when compiling. I just
> patched my src/minimake/genmake file like this:
>
> $ diff src/minimake/genmake.old src/minimake/genmake
> 41c41
> < freebsd|bsdi*|darwin|netbsd|openbsd) echo "Making
> $BBOS makefile"
> ---
> > freebsd|bsdi*|darwin|netbsd) echo "Making $BBOS
makefile"
> 43a44,46
> > openbsd) echo "Making $BBOS makefile"
> > CFLAGS="${CFLAGS} -DZOMBIE -D${BBOS} -
> DGETTIMEOFDAY -DREGEXEC -O -ftrampolines"
> > ;;
>
> I believe this only affects OpenBSD 3.7 and higher. It might affect
> other BSD's, but OpenBSD now disables the use of trampolines by
> default in it's stock GCC for security. To enable this, you must add
> -ftrampolines to your $CFLAGS. My GCC version is:
>
> gcc (GCC) 3.3.5 (propolice) on OpenBSD 3.8 i386
>
> After fixing your genmake file, you can continue to make, make install,
etc.
Thanks for the tip ;) I'm upgrading to OpenBSD 3.8 spar64 at the moment,
so will probably run in to it.
greetings,
/Frank.
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
To unsubscribe from this list, or to subscribe to the bb-digest list
send e-mail to mailto:majordomo@bb4.com with unsubscribe bb -and/or-
subscribe bb-digest in the BODY of the message.
Home |
Main Index |
Thread Index