Yes, I think I did read that but it does not address the failing of the
commands I am using.  Perhaps if I back up in versions, the configure
command will behave differently?

Attached is the script I am using to run configure.  It appears as though
what I am trying is much more than others.  Is there a limit to the number
of options supplied to configure? 

In this configure scripts the enable-mini-agent and disable-debugging are
not in the configure options because they are not working.


Adam

-----Original Message-----
From: Magnus Fromreide [mailto:[EMAIL PROTECTED] 
Sent: Saturday, February 17, 2007 6:18 AM
To: Adam Bell
Cc: [email protected]
Subject: Re: configure options and removing mib modules are causing make
failures

First, have you read
http://sourceforge.net/mailarchive/message.php?msg_id=37989423 ?

If that isn't enough it would be nice if you provided the complete
configure commands you are tryng to run.

On fre, 2007-02-16 at 11:30 -0500, Adam Bell wrote:
> I am trying to integrate net-snmp v 5.4 into a small footprint device
under Linux and am having a couple problems.
> 
> 1. The configure option --enable-mini-agent causes
./.libs/libnetsnmpmibs.so: undefined reference to `initialize_table_ifXTable
during make
> I am trying top make this as small as possible.
> 
> 2. The configure option --disable-debugging does not turn off the -g
option in the make files
> I am trying to make this as small as possible.
> 
> 2. I have a set of mibs (special set) that replicates most if not all of
the default_mibs, MIBII, SNMPv3, etc. 
> so I want to remove the standard implementation and MIBs, and compile in
the new set.  Remove the mib-modules (Real C code - right?)
> causes many make problems. (See below)
> 
> Is there another approach I could try?
> 
> 
> Compiling with --with-out-mib-modules=snmpv3mibs,mibII,mibII/ipv6 \
> 
> ./.libs/libnetsnmpmibs.so: undefined reference to
`initialize_table_ifXTable'
> ./.libs/libnetsnmpagent.so: undefined reference to `vacm_standard_views'
> 
> Compiling with
-with-out-mib-modules=default_modules,snmpv3mibs,mibII,mibII/ipv6 \
> during configure
>       checking for and configuring mib modules to use... configure:
WARNING: mib module conflict
>       configure: WARNING: mib module 'default_modules' is both included
and excluded. It will be excluded
>       configure: WARNING: mib module conflict
>       configure: WARNING: mib module 'mibII/ipv6' is both included and
excluded. It will be excluded
> during make
>       In function `main':
>       /snmp/net-snmp-5.4/agent/snmpd.c:853: undefined reference to
`argvrestartp'
>       /snmp/net-snmp-5.4/agent/snmpd.c:858: undefined reference to
`argvrestart'
>       /snmp/net-snmp-5.4/agent/snmpd.c:860: undefined reference to
`argvrestartp'
>       /snmp/net-snmp-5.4/agent/snmpd.c:859: undefined reference to
`argvrestartname'
>       /snmp/net-snmp-5.4/agent/snmpd.c:860: undefined reference to
`argvrestart'
>       /snmp/net-snmp-5.4/agent/snmpd.c:866: undefined reference to
`argvrestartname'
>       /snmp/net-snmp-5.4/agent/snmpd.c:878: undefined reference to
`argvrestart'
>       /snmp/net-snmp-5.4/agent/snmpd.c:1036: undefined reference to
`argvrestartname'
>       /snmp/net-snmp-5.4/agent/snmpd.c:1036: undefined reference to
`argvrestartname'
>       /snmp/net-snmp-5.4/agent/snmpd.c:1037: undefined reference to
`argvrestart'
>       /snmp/net-snmp-5.4/agent/snmpd.c:1037: undefined reference to
`argvrestart'
>       /snmp/net-snmp-5.4/agent/snmpd.c:1038: undefined reference to
`argvrestartp'
>       /snmp/net-snmp-5.4/agent/snmpd.c:1038: undefined reference to
`argvrestartp'
>       /snmp/net-snmp-5.4/agent/snmpd.c:900: undefined reference to `Exit'
>       /snmp/net-snmp-5.4/agent/snmpd.c:916: undefined reference to `Exit'
>       ./.libs/libnetsnmpagent.so: undefined reference to
`vacm_standard_views'

Most of the above symbols are from utilities/execute, so do not remove
that one please.

configure --enable-mini-agent --disable-debugging
--with-out-mib-modules=snmpv3mibs,mibII,mibII/vacm_vars,mibII/snmp_mib,mibII
/system_mib,mibII/sysORTable

works for me to build everything but snmptrapd - do you need that one?

/MF

> The information contained in this electronic mail transmission may be
> privileged and confidential, and therefore, protected from disclosure.

Even if the information above was privileged or confidential it couldn't
possibly be protected from disclosure since it is, in fact, disclosed.

>  If you have received this communication in error

Oh dear, I have no idea. One could suggest that it is the responsibility
of your employer to take care of their own security - if they want to
subcontract it then that is fine but me, I wouldn't do it for them for
free.

>  please notify us immediately by replying to this message and deleting
> it from your computer without copying or disclosing it.

Hmm, I might be doing a grave mistake by answereing this message, I mean
it do supposedly relate to the internal details of their offering and
one could suppose that such information is, or at least once were
confidential.




The information contained in this electronic mail transmission may be 
privileged and confidential, and therefore, protected from disclosure. If you 
have received this communication in error, please notify us immediately by 
replying to this message and deleting it from your computer without copying or 
disclosing it.
--- Begin Message ---

#
#Configuration options for the building of the Net-snmp agent libraries
#

if [ ! -d /var/net-snmp ]; then
    mkdir /var/net-snmp
fi
 
./configure  \
--disable-snmpv1 \
--enable-ipv6 \
--with-default-snmp-version=3 \
[EMAIL PROTECTED] \
--with-sys-location=Belcamp,Maryland \
--with-persistent-directory=/var/net-snmp \
--with-persistent-mask=0x644 \
--with-logfile=/var/log/snmpd.log \
--with-transports=UDP,UDPIPv6,Unix,Callback \
--with-out-transports=TCPIPv6,TCP,AAL5PVC,IPX \
--disable-embedded-perl \
--disable-perl-cc-checks \
--disable-perl \
--without-perl-modules \
--with-server-send-buf=8192 \
--with-server-recv-buf=8192 \
--with-client-send-buf=8192 \
--with-client-recv-buf=8192 \
--enable-static \
--enable-fast-install \
--with-out-mib-modules=agentx,disman,disman/event,disman/schedule,snmp_proxy,ucd_snmp,examples/ucdDemoPublic
 \
--with-mibdirs=/usr/share/snmp/mibs_HAIPE \
--with-mibfiles=HAIPE-ASSIGNMENTS-MIB.txt \
--disable-debugging \
--disable-mib-loading


#this is for C code modules
#--with-mib-modules=haipe1 this covers the c and h file from mib2c

#--with-out-mib-modules=default_modules,snmpv3mibs,mibII,mibII/ipv6 \
#ucd_snmp,notification,notification-log-mib,target,agent_mibs,agentx,disman
#--with-mib-modules= \

# This does not turn off -g option in CCFLAGS for compilation of debug symbols
#--disable-debugging



#this option breaks the make
#./.libs/libnetsnmpmibs.so: undefined reference to `initialize_table_ifXTable
#--enable-mini-agent


#--disable-des \
#--disable-md5 \


#options to review
#
#Add these back in later, we only need AES and SHA1

#
#
# --disable-snmpv2c  add later - get agent working first
#
#
#
# --enable-debugging   prints out at all time, no production
# --disable-debugging  get rid of all debug
# --enable-developer   lots of debug
#
# -- with-mibs, --with-mibdirs  when we compile HAIPE
# --with-mib-modules=
#
#
#if we use opensll
#-with-openssl=PATH


#Errors
#--with-security-modules=usm not recognized

#transport Callback is related to AgentX, Unix required to link properly

#
#--with-mibdirs=\"dir1:dir2:\"   Default directories to look for mibs.
#                                  (Default: 
\$HOME/.snmp/mibs:DATADIR/snmp/mibs)
#--with-mibs=\"item1:item2:\"    Default mib IDs to read.
#                                  (The default list is \"IP-MIB:IF-MIB:
#                                  TCP-MIB:UDP-MIB:SNMPv2-MIB:RFC1213-MIB\"
#                                  with the addition of any mibs used
#                                  by the mib modules the agent is
#                                  configured with)
#--with-mibfiles=\"file1:file2\" Defaul
#
#--with-mib-modules=\"item1 ...\"  Compile with additional mib modules
#                                    (Space separated list).
#--with-out-mib-modules=\"list\"   Compile without these mib modules.
#


--- End Message ---
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to