Attachment | Size |
---|---|
Compile-error-output.txt | 9.53 KB |
I am having a difficult time compiling docsis on system with Mac OS X Lion 10.7.3 with Xcode and gcc compilers:
Mini:docsis-0.9.6 johnq$ gcc --V
i686-apple-darwin11-llvm-gcc-4.2: no input files
I tried compiling for 32 bit universal and various things but stuck linking libraries:
/bin/sh ../libtool --tag=CC --mode=link gcc -Wall -g -g -O2 -lnetsnmp -lcrypto -lfl -o docsis docsis.o ethermac.o md5.o docsis_encode.o docsis_decode.o docsis_snmp.o docsis_yy.o docsis_lex.o hmac_md5.o -lresolv
libtool: link: gcc -Wall -g -g -O2 -o docsis docsis.o ethermac.o md5.o docsis_encode.o docsis_decode.o docsis_snmp.o docsis_yy.o docsis_lex.o hmac_md5.o -lnetsnmp -lcrypto -lfl -lresolv
Undefined symbols for architecture x86_64:
"_init_mib", referenced from:
_main in docsis.o
ld: symbol(s) not found for architecture x86_64
Complete shell output attached.
Any help greatly appreciated!
There has been a change in net-snmp 5.4,
you need to
replace: init_mib();
by: netsnmp_init_mib();
in: docsis.c
this fixes the compilation errors for me.
cheers,
Benedikt
That solved it. Made the simple change you provided and everything has compiled fine and working perfectly. I should have given up and posted question much earlier instead of wasting Saturday trying to solve.
Thanks again!
JohnQ