Discussion:
netsnmp for iOS
(too old to reply)
Thomas Spitz
2014-01-17 22:46:25 UTC
Permalink
Hello everyone,

I am taking back a complete iphone project that uses net-snmp for iOS.
These project lead to a working app on the app store some years ago. It was
developped for iOS 4.2 and works well on iOS6 as well. I would like to
compile again this app but I am not able to do so with XCode 4.5.2,
probably because of new LLVM compiler instead of GCC.

Here after the compilation error I have:

ld: warning: ignoring file
/Users/none/Desktop/iOS/4-utrema4/Infinity/ext_library/lib/libnetsnmp.a,
file was built for archive which is not the architecture being linked
(i386):
/Users/none/Desktop/iOS/4-utrema4/Infinity/ext_library/lib/libnetsnmp.a
Undefined symbols for architecture i386:
"_netsnmp_dispatch_external_events", referenced from: -[SnmpManager
_threaded_snmp_trap] in SnmpManager.o "_netsnmp_external_event_info",
referenced from: -[SnmpManager _threaded_snmp_trap] in SnmpManager.o
"_netsnmp_transport_free", referenced from: -[SnmpManager
_threaded_snmp_trap] in SnmpManager.o "_netsnmp_transport_open_server",
referenced from: -[SnmpManager _threaded_snmp_trap] in SnmpManager.o
"_print_variable", referenced from: ..............

Is there anyone who managed to cross compile net-snmp in order to use it
for iOS development?

I found those two previous thread but unfortunately no answers:

http://sourceforge.net/mailarchive/message.php?msg_id=30475803

http://sourceforge.net/mailarchive/message.php?msg_id=27469900

Thanks in advance

BR,

Thomas
s***@gmail.com
2016-09-13 07:38:00 UTC
Permalink
Post by Thomas Spitz
Hello everyone,
I am taking back a complete iphone project that uses net-snmp for iOS. These project lead to a working app on the app store some years ago. It was developped for iOS 4.2 and works well on iOS6 as well. I would like to compile again this app but I am not able to do so with XCode 4.5.2, probably because of new LLVM compiler instead of GCC.
"_netsnmp_dispatch_external_events", referenced from: -[SnmpManager _threaded_snmp_trap] in SnmpManager.o "_netsnmp_external_event_info", referenced from: -[SnmpManager _threaded_snmp_trap] in SnmpManager.o "_netsnmp_transport_free", referenced from: -[SnmpManager _threaded_snmp_trap] in SnmpManager.o "_netsnmp_transport_open_server", referenced from: -[SnmpManager _threaded_snmp_trap] in SnmpManager.o "_print_variable", referenced from: ..............
Is there anyone who managed to cross compile net-snmp in order to use it for iOS development? 
http://sourceforge.net/mailarchive/message.php?msg_id=30475803
http://sourceforge.net/mailarchive/message.php?msg_id=27469900
Thanks in advance
BR,
Thomas
Hi ,
I am trying the same . Did you got a solution .? Please let me know .
Thanks in Advance .

Loading...