Notes on sucessfull patching of Xfbb7.04h rpm install on Suse9.1 Pro

Ron MacKay <[email protected]> Thu, 16 Sep 2004 17:23:07 -0700 (PDT)
Newsgroups gmane.linux.suse.ham
Message-ID <[email protected]>
Thanks to those listed below I was successful in
patching and recompiling Xfbb7.04h to run on 
Suse9.1. 
As mentioned in an earlier post, my intention was to
use only rpms provided by the Suse9 system either from
DVD or ftp site.

Today my fbb system is functional with telnet and
xfbbC client access only. The ax25 or netrom work will
come later.
Here I will describe my system and the steps used to
get xfbb7.04h running.
This is not a complete HOW-TO yet, but a first-draft
as how I did it. 


My PC is a P-233 machine with 128mb ram and 4gb drive.
I used this as my older system with Rh6.2 
and Xfbb7 has the same hardware.

My Suse9.1 was installed from DVD on a clean drive as
a text-mode system, as minimal as I could.
Filesystem    Type    Size  Used Avail Use% Mounted on
/dev/hda1     ext3    3.9G  864M  2.9G  23% /


I have also installed, using Yast, the following
applications for my web and Amateur work:
aprsd-2.1.5b9-178
mysql-4.0.18-32
php4-4.3.4-43.11
apache2-2.0.49-27.11


Here are my fbb7.04h install notes:

1. Originally I installed fbbsrv-7.04h-316.rpm from
DVD with dependency install of 
libax25-0.0.10-177.rpm. However, as others have noted
as well, the program runs but connects to the FBB from
either xfbbC or telnet produce no menu or info. 
The fix is to patch console.c code, so we must
download and compile the source.

2. Next download and install source rpm
fbbsrv-7.04h-316.src.rpm which unpacks into 
/usr/src/packages/SOURCES/. This gives just two files 
fbbsrc.704h.dif  and xd704h-src.tgz. The archive
appears to be the standard fbb source.

3. After untar/unzip this archive we have the fbb
source files under
/usr/src/packages/SOURCES/fbbsrc.704h/src. I copied
the dif file from above into the src folder to make
the patching easier. Run the patch as "patch -p0
<fbbsrc.704h.dif".
The patch blocks out sections of old ax25 code and
also changes the data directory to /var/lib/ax25/fbb.
This change of directory puzzles me and I ended up
changing it back later.

4. Before making any other changes I wanted to try
compiling this as the original source would not
compile with "linux/ax25.h: and other old ax25 code
calls. 
My minimal install did not have much development
software so I had to install the following 
rpms: make-3.8-183.i586.rpm, gcc-3.3.3-41.rpm and
glibc-devel-2.3.3.98.rpm.
Note I have been running Yast to get updates so these
are the current versions.


5. From the src folder again, I ran "make" and was
pleased to see a successful compile.
The next step was to patch src/console.c. The patch
file was supplied by Jeroen mentioned in the message
http://he.fi/archive/linux-hams/200402/0037.html.
Since this code was listed for fbb703c I did not run
it as a patch, it was just as easy to copy and paste
the new routine and the one line buf[1000] manually
into console.c


6. Running "make" again quickly re-compiled the
console code. Since I already had fbb704h installed
from binary rpm I just copied the new xfbbd and xfbbC
files into /usr/sbin. I did notice it wanted data in
/var/ax25/fbb so I think I will edit my fbb.conf and
other files 
to use that folder instead of /var/lib/ax25/fbb.


So now I can connect to my FBB BBS from 'telnet
localhost 6300' or XfbbC -c (user variables are 
defined for $XFBBC_CALL & XFBBC_PASS in user .profile)



Thanks to Tim, Jeroen, Erik, Hiroshi and others I am
over the first big hurdle to get FBB going on Suse9.1

73, Ron
VE1AIC


		
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail