BB Unix Network Monitor - Message
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
{bb} Fix: compiling BB on OpenBSD
- To: bb@bb4.com
- Subject: {bb} Fix: compiling BB on OpenBSD
- From: "Russ Starr" <russ.starr@gmail.com>
- Date: Thu, 23 Mar 2006 10:58:20 -0600
- Content-disposition: inline
- Content-transfer-encoding: 8bit
- Content-type: text/plain; charset=ISO-8859-1
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=niTh7ehimhX+wdpZdoBW4jvaY6jsVlqqhMsMr1SVPuPjrFrArHhEw6aqDP0fGNA4SqJ3W7p100L80756r9iHL2SFqpqQla7tocvrq1ikwf6hZ4vs10rJ6pBQYJP5HQAo4DssGetrERgKXoQIWpPN5YqvFpW8rLLD/oMeEob3Jns=
- Reply-to: bb@bb4.com
- Sender: owner-bb@bb4.com
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.
Hope that helps,
-Russ
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
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