[nos-bbs] Compile Jnos

Niels Ruiter pd2lt at zeelandnet.nl
Sat Jan 30 13:26:20 EST 2016

Hi Maiko,

When i compile Jnos i get some warnings.
Yes it died with the "Segmentation fault".

gcc -DUNIX -g3   -DDEBUG -Wall   -c -o slip.o slip.c
slip.c: In function 'slip_encode':
slip.c:113:13: warning: the comparison will always evaluate as 'true' for
the address of 'bp' will never be NULL [-Waddress]
rm -f ppp.a
ar rcs ppp.a asy.o ppp.o pppcmd.o pppfsm.o ppplcp.o ppppap.o pppipcp.o
pppdump.o slhc.o slhcdump.o slip.o
gcc -DUNIX -g3   -DDEBUG -Wall   -c -o bootp.o bootp.c
gcc -DUNIX -g3   -DDEBUG -Wall   -c -o bootpd.o bootpd.c
gcc -DUNIX -g3   -DDEBUG -Wall   -c -o bootpcmd.o bootpcmd.c
gcc -DUNIX -g3   -DDEBUG -Wall   -c -o bootpdip.o bootpdip.c
rm -f bootp.a
ar rcs bootp.a bootp.o bootpd.o bootpcmd.o bootpdip.o
gcc -DUNIX -g3   -DDEBUG -Wall   -c -o hfddrtns.o hfddrtns.c
hfddrtns.c: In function 'hfddsrv':
hfddrtns.c:321:8: warning: variable 'rawsave' set but not used
hfddrtns.c: At top level:
hfddrtns.c:1028:2: warning: initialization from incompatible pointer type
[enabled by default]
hfddrtns.c:1028:2: warning: (near initialization for 'HFDDcmds[3].func')
[enabled by default]
gcc -DUNIX -g3   -DDEBUG -Wall   -c -o hfdd.o hfdd.c
gcc -DUNIX -g3   -DDEBUG -Wall   -c -o winmor.o winmor.c
gcc -DUNIX -g3   -DDEBUG -Wall   -c -o ptcpro.o ptcpro.c
gcc -DUNIX -g3   -DDEBUG -Wall   -c -o kam.o kam.c
gcc -DUNIX -g3   -DDEBUG -Wall   -c -o hfddinit.o hfddinit.c
gcc -DUNIX -g3   -DDEBUG -Wall   -c -o pk232.o pk232.c
gcc -DUNIX -g3   -DDEBUG -Wall   -c -o hfddq.o hfddq.c
rm -f hfdd.a
ar rcs hfdd.a hfddrtns.o hfdd.o winmor.o ptcpro.o kam.o hfddinit.o pk232.o
gcc -DUNIX -g3   -DDEBUG -Wall   -c -o nrr.o nrr.c
gcc -DUNIX -g3   -DDEBUG -Wall   -c -o newinp.o newinp.c
newinp.c: In function 'inp_rif_recv':
newinp.c:339:2: warning: pointer targets in passing argument 2 of 'pullup'
differ in signedness [-Wpointer-sign]
In file included from ip.h:10:0,
                 from ax25.h:10,
                 from newinp.c:55:
mbuf.h:54:7: note: expected 'char *' but argument is of type 'unsigned char
newinp.c:461:34: warning: pointer targets in initialization differ in
signedness [-Wpointer-sign]
rm -f inp.a
ar rcs inp.a nrr.o newinp.o
gcc -c -DUNIX -g3   -DDEBUG -Wall -I/usr/include/ncurses
-DLCURSES=\"-lncurses\" curses.c -o curses.o
curses.c: In function 'Getmaxy':
curses.c:133:12: warning: variable 'x' set but not used
curses.c: In function 'Getmaxx':
curses.c:142:9: warning: variable 'y' set but not used
curses.c: In function 'key_add':
curses.c:168:17: warning: variable 'old' set but not used
curses.c: In function 'curses_wherex':
curses.c:917:12: warning: variable 'y' set but not used
curses.c: In function 'curses_wherey':
curses.c:927:9: warning: variable 'x' set but not used
gcc -c -DUNIX -g3   -DDEBUG -Wall -I/usr/include/ncurses rawcons.c -o
gcc -c -DUNIX -g3   -DDEBUG -Wall -I/usr/include/ncurses sessmgr.c -o
gcc -c -DUNIX -g3   -DDEBUG -Wall -I/usr/include/ncurses ttydriv.c -o
rm -f j2curses.a
ar rcs j2curses.a curses.o rawcons.o sessmgr.o ttydriv.o
gcc -DUNIX -g3   -DDEBUG -Wall -o jnos main.o config.o version.o session.o \
        jheard.o clients.a servers.a hfdd.a net.a internet.a net.a netrom.a
        unix.a ax25.a aprs.a dump.a ppp.a bootp.a inp.a j2curses.a \
        -lncurses  -lcrypto -lcrypt
gcc -DUNIX -g3   -DDEBUG -Wall    jnosinstaller.c   -o jnosinstaller
cc -DNOJ2STRLWR j2pwmgr/j2pwmgr.c j2pwmgr/j2pwrtns.c -o jnospwmgr -lcrypt
j2pwmgr/j2pwmgr.c: In function 'main':
j2pwmgr/j2pwmgr.c:214:16: warning: incompatible implicit declaration of
built-in function 'strdup' [enabled by default]
j2pwmgr/j2pwrtns.c: In function 'j2conv_block2data':
j2pwmgr/j2pwrtns.c:91:9: warning: incompatible implicit declaration of
built-in function 'malloc' [enabled by default]

root at pd2lt:/home/pd2lt/jnos# uname -a
Linux pd2lt.ampr.org 3.2.0-4-686-pae #1 SMP Debian 3.2.73-2+deb7u2 i686

root at pd2lt:/home/pd2lt/jnos# cat /etc/*eleas*
PRETTY_NAME="Debian GNU/Linux 7 (wheezy)"
NAME="Debian GNU/Linux"

root at pd2lt:/home/pd2lt/jnos# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 7.9 (wheezy)
Release:        7.9
Codename:       wheezy

root at pd2lt:/home/pd2lt/jnos# cat /proc/version
Linux version 3.2.0-4-686-pae (debian-kernel at lists.debian.org) (gcc version
4.6.3 (Debian 4.6.3-14) ) #1 SMP Debian 3.2.73-2+deb7u2

I'm going to try it again.

> -----Oorspronkelijk bericht-----
> Van: Maiko Langelaar [mailto:maiko at pcs.mb.ca]
> Verzonden: vrijdag 29 januari 2016 20:30
> Aan: Niels Ruiter
> Onderwerp: Re: [nos-bbs] Compile Jnos
> I see a segmentation fault in the trace, looks like JNOS died actually
> in the process. Did it ? Everything else looks fine to me, so I wonder
> if you have stumbled across a bug or something. It 'should work'.
> >> Print out of the trace
> >> 0000  ;FW: VE4KLM.[JNOS-2.0j.7u-B2FHIM$].;PR: 28459448.
> >> Tue Jan 26 06:02:38 2016 - tun0 sent:
> >> IP: len 43> ihl 20 ttl 224 prot TCP
> >> TCP: 1027->8772 Seq x38d1043 Ack x31ca83ac ACK PSH Wnd 2048 Data 3
> >> 0000 FF.
> >>
> >> Segmentation fault
> What OS type and version are you running ? (cat /etc/*eleas* I think
> will get that to me).
> Maiko

More information about the nos-bbs mailing list