OpenBCM V1.08-5-g2f4a (Linux)

Packet Radio Mailbox

IZ3LSV

[San Dona' di P. JN]

 Login: GUEST





  
DD9QP  > BAYBOX   19.06.13 19:39l 72 Lines 2637 Bytes #999 (999) @ BAYCOM
BID : J6NDB0RES06F
Read: GUEST
Subj: Re^4: OpenBCM 1.07b11 (Info)
Path: IZ3LSV<F1OYP<ON0AR<DB0RES
Sent: 130619/1740z @:DB0RES.#NRW.DEU.EU [JO31ES Rees/Germany] obcm1.07b11 LT:99
From: DD9QP @ DB0RES.#NRW.DEU.EU (Egbert)
To:   BAYBOX @ BAYCOM
X-Info: Sent with login password

Hallo,

dass die BCM als 32-Bit Software geschrieben ist, war der entscheidende
Hinweis. Durch Mithilfe von Sebastian DD4JY konnte ich die BCM mittlerweile
auch auf 64-bit Debian7 (wheezy) erfolgreich kompilieren und dynaisch linken.

Voraussetzung ist, dass das 64-bit Linux multilib-fähig gemacht wird. Unter
Debian7 u.a. erreicht man das, indem man diese beiden Pakete nachinstalliert:

apt-get install gcc-multilib
apt-get install g++-multilib

In den bcm-sourcen habe ich dann das makefile mit einigen Zeilen erweitert, die
man sich passend aus- oder entkommentieren kann - je nachdem ob man ein reines
32-bit-System oder ein 64-bit-System hat. Evtl. könnte man das innerhalb des
makefile sogar durch eine Abfrage des Betriebssystems automatisch setzen
lassen. Sicherheitshalber müsste man dann auch abfragen, ob ein multilib-System
installiert ist. Aber soviel Zeit wollte ich dafür nicht investieren. Hier der
Abschnitt des makefile:

#-----------------------------------------------------------
# uncomment desired options:
# for compiling on 32-bit systems
#LD_OPT = -dynamic
#LD_OPT = -static
# for compiling on 64-bit systems:
LD_OPT = -dynamic -m32
#LD_OPT = -static -m32
# use static option if you compile with other linux as later running
#
# -lm math library is needed for wx-station
#LD_OPT += -lm
#
# Debugging...
#DEBUG = -g -O0
DEBUG = -g
#-----------------------------------------------------------
LD_OPT += -lcrypt
# for compiling on 32-bit systems:
#OPT = -mcpu=i486 -O2 -fno-delete-null-pointer-checks -funsigned-char
-fwritable-strings
# for compiling on 64-bit systems:
OPT = -m32 -mcpu=i486 -O2 -fno-delete-null-pointer-checks -funsigned-char
-fwritable-strings

OPT_WARN = -Wcomment -Wno-conversion -Wformat -Wno-unused \
           -Wreturn-type -Wno-write-strings -Wuninitialized -Wswitch -Wshadow

ifeq "$(GPP_VERSION4)" "4"
  ifeq "$(GPP_VERSION33)" "3"
    # for compiling on 32-bit systems:
    #override OPT = -mcpu=i486 -O2 -fno-delete-null-pointer-checks
-funsigned-char -fwritable-strings
    # for compiling on 64-bit systems:
    override OPT = -m32 -mcpu=i486 -O2 -fno-delete-null-pointer-checks
-funsigned-char -fwritable-strings
  else
    # for compiling on 32-bit systems:
    #override OPT = -fno-delete-null-pointer-checks -funsigned-char
    # for compiling on 64-bit systems:
    override OPT = -m32 -fno-delete-null-pointer-checks -funsigned-char
    override OPT_WARN = -Wcomment -Wno-conversion -Wformat -Wno-unused
-Wreturn-type -Wno-write-strings
  endif
endif



73 de Egbert DD9QP  


Read previous mail | Read next mail


 21.09.2024 16:46:56lGo back Go up