Hello,

I am new to using Net-Snmp. I am trying to build Net-Snmp version 5.7 with 
embedded-perl support using the Visual Studio C++ build option. I am using 
the version perl5 (revision 5 version 10 subversion 0) of Perl from 
ActivePerl. 

To compile Net-Snmp I am using the Win32\build.bat script with the 
following options:

1.  OpenSSL support:                    disabled
2.  Platform SDK support:               disabled

3.  Install path:                               c:/arb-net-snmp
4.  Install after build:                enabled

5.  Perl modules:                       enabled
6.  Install perl modules:               enabled

7.  Quiet build (logged):               enabled
8.  Debug mode:                         enabled

9.  IPv6 transports (requires SDK):     disabled
10. winExtDLL agent (requires SDK):     disabled

11. Link type:                                  static

12. Install development files           disabled

I can seem to  build ok without any compilation/link errors if Perl 
modules is set to disabled. However setting Perl modules to enabled gives 
the following link error with an unresolved external symbol 
boot_Bundle__NetSNMP (see below):

Running Mkbootstrap for Bundle::NetSNMP ()
        C:\Perl\bin\perl.EXE -MExtUtils::Command -e chmod 644 NetSNMP.bs
        C:\Perl\bin\perl.EXE -MExtUtils::Mksymlists  -e 
"Mksymlists('NAME'=>\"Bundle::NetSNMP\", 'DLBASE' => 'NetSNMP',
'DL_FUNCS' => {  }, 'FUNCLIST' => [], 'IMPORTS' => {  }, 'DL_VARS' => 
[]);"
        link -out:blib\arch\auto\Bundle\NetSNMP\NetSNMP.dll -dll -nologo 
-nodefaultlib -debug -opt:ref,icf  -libpath:"C:
\Perl\lib\CORE"  -machine:x86 NetSNMP.obj   C:\Perl\lib\CORE\perl510.lib 
oldnames.lib kernel32.lib user32.lib gdi32.lib
winspool.lib  comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib 
 netapi32.lib uuid.lib ws2_32.lib mpr.lib win
mm.lib  version.lib odbc32.lib odbccp32.lib msvcrt.lib -def:NetSNMP.def
NetSNMP.def : error LNK2001: unresolved external symbol 
boot_Bundle__NetSNMP
NetSNMP.def : error LNK2001: unresolved external symbol 
boot_Bundle__NetSNMP
blib\arch\auto\Bundle\NetSNMP\NetSNMP.lib : fatal error LNK1120: 2 
unresolved externals
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 
9.0\VC\BIN\link.EXE"' : return code '0x460'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 
9.0\VC\BIN\nmake.EXE"' : return code '0x2'
Stop.
Build error (see above) at build.pl line 302, <> line 8.

Has anyone come across this error before or knows what the cause of this 
is? 

Any help would be appreciated.

Regards,

Ali


-----------------------------------------------
This email and any attached files contains company confidential information 
which may be legally privileged.  it is intended only for the person(s) or 
entity to which it is addressed and solely for the purposes set forth therein.  
If you are not the intended recipient or have received this email in error 
please notify the sender by return, delete it from your system and destroy any 
local copies.  It is strictly forbidden to use the information in this email 
including any attachment or part thereof including copying, disclosing, 
distributing, amending or using for any other purpose.

In addition the sender excludes all liabilities (whether tortious or common 
law) for damage or breach arising or related to this email including but not 
limited to viruses and libel.
------------------------------------------------------------------------------
Got Input?   Slashdot Needs You.
Take our quick survey online.  Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to