[nos-bbs] hextochar needed in snmpd.c, not found if #undef HTTPVNC

James Smith js.lanshark at gmail.com
Wed Nov 21 18:56:47 EST 2018


Maiko,

  Whilst trimming down the config, I noted that if I #undef HTTPVNC, the
function hextochar which is apparently only found in bbs10000.c is not
available and is needed for snmpd.c.

  #define it back in, compiles fine.

Snippet from compile and a bit of grep:

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
net.a(snmpd.o): In function `ifOctetsResp':
/home/jhs/jnos2/snmpd.c:374: undefined reference to `hextochar'
/home/jhs/jnos2/snmpd.c:375: undefined reference to `hextochar'
/home/jhs/jnos2/snmpd.c:376: undefined reference to `hextochar'
/home/jhs/jnos2/snmpd.c:377: undefined reference to `hextochar'
collect2: error: ld returned 1 exit status
makefile:156: recipe for target 'jnos' failed
make: *** [jnos] Error 1
jhs at hamgate:~/jnos2 $ grep hextochar *
grep: backup: Is a directory
bbs10000.c:/* 08Jul2009, Maiko, New hextochar function for URI decoding */
bbs10000.c:char hextochar (char *ptr)
bbs10000.c:                     *ptr = hextochar (hptr);        /* 08Jul09,
Maiko, New function now */
grep: installerv2.1: Is a directory
grep: j2pwmgr: Is a directory
grep: k6fsh: Is a directory
Binary file net.a matches
grep: old_inp_code: Is a directory
snmpd.c:        extern char hextochar (char*);
snmpd.c:                *odptr++ = hextochar (&htmp[0]);
snmpd.c:                *odptr++ = hextochar (&htmp[2]);
snmpd.c:                *odptr++ = hextochar (&htmp[4]);
snmpd.c:                *odptr++ = hextochar (&htmp[6]);

Cheers,

Jim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.tapr.org/pipermail/nos-bbs_lists.tapr.org/attachments/20181121/df70d40f/attachment.html>


More information about the nos-bbs mailing list