From: <no...@so...> - 2002-06-21 20:58:45
|
Bugs item #543194, was opened at 2002-04-12 13:20 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=112694&aid=543194&group_id=12694 Category: library Group: None Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Undefined symbol when building Perl Modu Initial Comment: I am attempting to build the Perl modules for 4.2.4 under Win2000. After playing with the Makefile, changing paths and such, SNMP.c complies, but upon attempting to link, I get: "unresolved symbol _tree_head" I see tree_head in parse.c. The library, libsnmp.lib, built Ok using Visual Studio. Other changes: 1. used GNU regex.h 2. commented-out "#include system.h" in SNMP.xs. The compiler claimed that both direct and _dir_struc were multiply defined. SNMP.c will not compile with system.h. 3. commented-out "#include <unistd.h>" I see that _tree_head is referred to in libsnmp.lib. Could this be a compiler issue when the library was created? ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2002-06-21 13:58 Message: Logged In: NO I changed the following line (line 809 of SNMP.xs) : extern struct tree *tree_head; in DLL_IMPORT struct tree *tree_head; this fixes the compiler error. (The problem is that the tree_head is one of the three DATA symbols defined in libnsmp.def (visible data symbols in dll). the MIB symbol has the DLL_IMPORT declaration so it refers to a symbol in a DLL. Willem Dekker ---------------------------------------------------------------------- Comment By: ronit reger (ronit) Date: 2002-04-29 09:03 Message: Logged In: YES user_id=529343 I'm getting this same problem!! Please respond ASAP if the solution is known... (Please send response to ro...@sa... -- THANKS!!) ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=112694&aid=543194&group_id=12694 |