Dave Shield wrote:
> On 10/04/2008, Mark Seger <[EMAIL PROTECTED]> wrote:
>   
>> I'm trying to install net-snmp onto a system which has had its compiler
>>  removed so physically building on that system isn't an option.  My plan
>>  is to build an rpm on an identical system which does have the compiler
>>  and then copy/install the rpm.
>>     
>
> Where did you get the spec file from?
>
>   
sourceforce download area - net-snmp-5.4.1-1.src.rpm
would it help to say when I installed the rpm I got the message "user 
hardaker does not exist - using root"
>>  + /usr/lib/rpm/redhat/brp-compress
>>  + /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip
>>  /usr/bin/strip: /tmp/net-snmp-root/usr/lib/st9lY1VY/DynaLoader.a:
>>  Invalid operation
>>  /usr/bin/strip: /tmp/net-snmp-root/usr/lib/st3lZ6Yb/DynaLoader.a:
>>  Invalid operation
>>  error: Bad exit status from /var/tmp/rpm-tmp.12900 (%install)
>>     
>
> Do these two files exist?
>   
I don't see them anywhere unless they got cleaned up?
> What does "file /tmp/net-snmp-root/usr/lib/st9lY1VY/DynaLoader.a" report?
>   
that's not there either.  I guess it didn't even occur to me since 
/usr/sbin/strip told me it was an invalid operation as opposed to a 
missing file.  Sorry about that.
>
>
>   
>>  I can see from the spec file there are more options in the configure
>>  line
>>     
>
> Hmmm.... this doesn't feel like a configure-related problem.
> It feels more to do with your general build environment.
> (If nothing else, 'DynaLoader.a' isn't part of the Net-SNMP
> code - it must be being supplied from elsewhere in the system).
>   
DynaLoader is a perl thing and on my system it's in:
/usr/lib/perl5/5.8.5/i386-linux-thread-multi/auto/DynaLoader/DynaLoader.a

Could it be that something in the build is pointing to the wrong place?  
Remember, if I take the source tarball and just do a ./configure 
--with-perl-modules the build runs without errors so it feels like it's 
something that only happens as part of the 'rpmbuild' process

>   
>>  error: File not found by glob: /tmp/net-snmp-root/usr/share/man/man3/*::*
>>  error: File not found by glob: /tmp/net-snmp-root/usr/share/man/man3/SNMP*
>>     

> What does this directory contain?
>   
man3 does exist but doen't contain anything that matches *::*
[EMAIL PROTECTED] tmp]# ls /tmp/net-snmp-root/usr/share/man/man3
add_mibdir.3.gz                   read_all_mibs.3.gz
add_module_replacement.3.gz       read_config.3.gz
config_perror.3.gz                read_config_print_usage.3.gz
config_pwarn.3.gz                 read_configs.3.gz
default_store.3.gz                read_mib.3.gz
fprint_description.3.gz           read_module.3.gz
fprint_objid.3.gz                 read_module_node.3.gz
fprint_value.3.gz                 read_objid.3.gz
fprint_variable.3.gz              read_premib_configs.3.gz
get_module_node.3.gz              register_app_config_handler.3.gz
init_mib.3.gz                     register_app_premib_handler.3.gz
init_mib_internals.3.gz           register_config_handler.3.gz
mib_api.3.gz                      register_mib_handlers.3.gz
netsnmp_agent.3.gz                register_premib_handler.3.gz
netsnmp_baby_steps.3.gz           send_easy_trap.3.gz
netsnmp_bulk_to_next.3.gz         send_trap_vars.3.gz
netsnmp_cache_handler.3.gz        send_v2trap.3.gz
netsnmp_container.3.gz            shutdown_mib.3.gz
netsnmp_Container_iterator.3.gz   snmp_agent_api.3.gz
netsnmp_debug.3.gz                snmp_alarm.3.gz
netsnmp_ds_get_boolean.3.gz       snmp_alarm_register.3.gz
netsnmp_ds_get_int.3.gz           snmp_alarm_register_hr.3.gz
netsnmp_ds_get_string.3.gz        snmp_alarm_unregister.3.gz
netsnmp_ds_register_config.3.gz   snmp_api.3.gz
netsnmp_ds_register_premib.3.gz   snmp_api_errstring.3.gz
netsnmp_ds_set_boolean.3.gz       snmp_close.3.gz
netsnmp_ds_set_int.3.gz           snmp_error.3.gz
netsnmp_ds_set_string.3.gz        snmp_free_pdu.3.gz
netsnmp_ds_shutdown.3.gz          snmp_open.3.gz
netsnmp_example_scalar_int.3.gz   snmp_perror.3.gz
netsnmp_handler.3.gz              snmp_read.3.gz
netsnmp_instance.3.gz             snmp_select_info.3.gz
netsnmp_iterator_info_s.3.gz      snmp_send.3.gz
netsnmp_leaf.3.gz                 snmp_sess_api.3.gz
netsnmp_library.3.gz              snmp_sess_async_send.3.gz
netsnmp_mib_handler_methods.3.gz  snmp_sess_close.3.gz
netsnmp_mib_utilities.3.gz        snmp_sess_error.3.gz
netsnmp_mode_end_call.3.gz        snmp_sess_init.3.gz
netsnmp_multiplexer.3.gz          snmp_sess_open.3.gz
netsnmp_old_api.3.gz              snmp_sess_perror.3.gz
netsnmp_read_only.3.gz            snmp_sess_read.3.gz
netsnmp_row_merge.3.gz            snmp_sess_select_info.3.gz
netsnmp_scalar.3.gz               snmp_sess_send.3.gz
netsnmp_scalar_group_group.3.gz   snmp_sess_session.3.gz
netsnmp_serialize.3.gz            snmp_sess_timeout.3.gz
netsnmp_stash_cache.3.gz          snmp_set_mib_warnings.3.gz
netsnmp_table.3.gz                snmp_set_save_descriptions.3.gz
netsnmp_table_array.3.gz          snmp_timeout.3.gz
netsnmp_table_data.3.gz           snmp_trap_api.3.gz
netsnmp_table_dataset.3.gz        snprint_objid.3.gz
netsnmp_table_iterator.3.gz       snprint_value.3.gz
netsnmp_utilities.3.gz            snprint_variable.3.gz
netsnmp_watcher.3.gz              sprint_realloc_objid.3.gz
print_description.3.gz            sprint_realloc_value.3.gz
print_mib.3.gz                    sprint_realloc_variable.3.gz
print_objid.3.gz                  unregister_app_config_handler.3.gz
print_value.3.gz                  unregister_config_handler.3.gz
print_variable.3.gz

as you can see there is nothing in there that matches SNMP*

> What does the %files section of the RPM spec file look like?
>
>   
Is this what you're looking for?
%files
%defattr(-,root,root)

# Install the following documentation in _defaultdocdir/{name}-{version}/
%doc AGENT.txt ChangeLog CodingStyle COPYING
%doc EXAMPLE.conf.def FAQ INSTALL NEWS PORTING TODO
%doc README README.agentx README.hpux11 README.krb5
%doc README.snmpv3 README.solaris README.thread README.win32
%doc README.aix README.osX README.tru64 README.irix README.agent-mibs
%doc README.Panasonic_AM3X.txt

#%config(noreplace) /etc/net-snmp/snmpd.conf

#%{_datadir}/snmp/snmpconf-data
%{_datadir}/snmp

%{_bindir}
%{_sbindir}
%{_mandir}/man1/*
# don't include Perl man pages, which start with caps
%{_mandir}/man3/[^A-Z]*
%{_mandir}/man5/*
%{_mandir}/man8/*
%{_libdir}/*.so*
/etc/rc.d/init.d/snmpd

%files devel
%defattr(-,root,root)

%{_includedir}
%{_libdir}/*.a
%{_libdir}/*.la

%if %{netsnmp_include_perl}
%files -f net-snmp-perl-files perlmods
%defattr(-,root,root)
%{_mandir}/man3/*::*
%{_mandir}/man3/SNMP*
%endif

-mark
> Dave
>   


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to