Re: rpm build

rangeli nepal <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
well, putting following line in spec file takes the error that we were
saying:

%define __strip /bin/true

but give me again following error:

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


On Wed, Jan 6, 2010 at 11:15 AM, rangeli nepal <[email protected]>wrote:

>
>
> Though I am not sure why net-snmp during build process need to have write
> access to that directory, but it came to my mind and tried to do sudo
> rpmbuild but I end up in following error message:
>
> + /usr/lib/rpm/find-debuginfo.sh /home/(xxdir=`pwd` && cd $RPM_BUILD_ROOT
> && find usr/lib*/perl5 -type f | sed 's/^/\//' > $xxdir/net-snmp-perl-files)
>
>
>
>    /usr/lib/rpm/find-debuginfo.sh /home/rangeliNepal/rpm/BUILD/net-snmp-5.5
>
>
>
>     /usr/lib/rpm/redhat/brp-compress
>
>     /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip
>     /usr/lib/rpm/redhat/brp-strip-comment-note /usr/bin/strip
> /usr/bin/objdump
> /rpm/BUILD/net-snmp-5.5
> extracting debug info from
> /home/rangeliNepal/rpm/BUILD/net-snmp-root/usr/lib/libnetsnmp.so.20.0.0
> extracting debug info from
> /home/rangeliNepal/rpm/BUILD/net-snmp-root/usr/lib/libnetsnmpagent.so.20.0.0
> extracting debug info from
> /home/rangeliNepal/rpm/BUILD/net-snmp-root/usr/lib/libnetsnmphelpers.so.20.0.0
> extracting debug info from
> /home/rangeliNepal/rpm/BUILD/net-snmp-root/usr/lib/libnetsnmpmibs.so.20.0.0
> extracting debug info from
> /home/rangeliNepal/rpm/BUILD/net-snmp-root/usr/lib/libnetsnmptrapd.so.20.0.0
> extracting debug info from
> /home/rangeliNepal/rpm/BUILD/net-snmp-root/usr/bin/snmpget
> extracting debug info from
> /home/rangeliNepala/rpm/BUILD/net-snmp-root/usr/bin/snmpgetnext
> extracting debug info from
> /home/rangeliNepal/rpm/BUILD/net-snmp-root/usr/bin/snmpset
> extracting debug info from
> /home/rangeliNepal/rpm/BUILD/net-snmp-root/usr/bin/snmpusm
> extracting debug info from
> /home/rangeliNepal/rpm/BUILD/net-snmp-root/usr/bin/snmpwalk
> extracting debug info from
> /home/rangeliNepal/rpm/BUILD/net-snmp-root/usr/bin/snmpbulkwalk
> extracting debug info from
> /home/rangeliNepal/rpm/BUILD/net-snmp-root/usr/bin/snmptable
> extracting debug info from
> /home/rangeliNepal/rpm/BUILD/net-snmp-root/usr/bin/snmptrap
> extracting debug info from
> /home/rangeliNepal/rpm/BUILD/net-snmp-root/usr/bin/snmpbulkget
> extracting debug info from
> /home/rangeliNepal/rpm/BUILD/net-snmp-root/usr/bin/snmptranslate
> extracting debug info from
> /home/rangeliNepal/rpm/BUILD/net-snmp-root/usr/bin/snmpstatus
> extracting debug info from
> /home/rangeliNepal/rpm/BUILD/net-snmp-root/usr/bin/snmpdelta
> extracting debug info from
> /home/rangeliNepal/rpm/BUILD/net-snmp-root/usr/bin/snmptest
> extracting debug info from
> /home/rangeliNepal/rpm/BUILD/net-snmp-root/usr/bin/encode_keychange
> extracting debug info from
> /home/rangeliNepal/rpm/BUILD/net-snmp-root/usr/bin/snmpdf
> extracting debug info from
> /home/rangeliNepal/rpm/BUILD/net-snmp-root/usr/bin/snmpvacm
> extracting debug info from
> /home/rangeliNepal/rpm/BUILD/net-snmp-root/usr/bin/snmpnetstat
> extracting debug info from
> /home/rangeliNepal/rpm/BUILD/net-snmp-root/usr/sbin/snmpd
> extracting debug info from
> /home/rangeliNepal/rpm/BUILD/net-snmp-root/usr/sbin/snmptrapd
> 14982 blocks
> + /usr/lib/rpm/redhat/brp-compress
> + /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip
> /usr/bin/strip:
> /home/rangeliNepal/rpm/BUILD/net-snmp-root/usr/lib/stIw1Hvk/DynaLoader.a:
> Invalid operation
> /usr/bin/strip:
> /home/rangeliNepala/rpm/BUILD/net-snmp-root/usr/lib/stHRDqyg/DynaLoader.a:
> Invalid operation
> error: Bad exit status from /home/rangeliNepal/rpm/tmp/rpm-tmp.45002
> (%install)
>
> If I look at rpm-tmp.45002, I get following:
>
> (xxdir=`pwd` && cd $RPM_BUILD_ROOT && find usr/lib*/perl5 -type f | sed
> 's/^/\//' > $xxdir/net-snmp-perl-files)
>
>
>
>    /usr/lib/rpm/find-debuginfo.sh /home/rangeliNepal/rpm/BUILD/net-snmp-5.5
>
>
>
>     /usr/lib/rpm/redhat/brp-compress
>
>     /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip
>     /usr/lib/rpm/redhat/brp-strip-comment-note /usr/bin/strip
> /usr/bin/objdump
>
>
>
> 2010/1/6 Nikos Balkanas <[email protected]>
>
>  Hi,
>>
>> You need to be root to do what you are trying to. Or at least have write
>> permissions to /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi/auto
>> .
>>
>> BR,
>> Nikos
>>
>> ----- Original Message -----
>> *From:* rangeli nepal <[email protected]>
>> *To:* net-snmp-users <[email protected]>
>> *Sent:* Wednesday, January 06, 2010 5:30 PM
>> *Subject:* rpm build
>>
>> I am trying to build rpm for net-snmp 5.5 on a redhat 3 machine. I am
>> using spec file that came with net-snmp5.5 stored in dist directory.
>> Any clue will be highly appreciated.
>> Thank you.
>> rn
>>
>> It exits at with message:
>>
>>  Warning: You do not have permissions to install into
>> /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi at
>> /usr/lib/perl5/5.8.0/ExtUtils/Install.pm line 84.
>> mkdir /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi/auto/SNMP:
>> Permission denied at /usr/lib/perl5/5.8.0/ExtUtils/Install.pm line 137
>> make[1]: *** [pure_vendor_install] Error 255
>> make[1]: Leaving directory `/home/sjha/rpm/BUILD/net-snmp-5.5/perl'
>> make: *** [perlinstall] Error 1
>> error: Bad exit status from /home/sjha/rpm/tmp/rpm-tmp.48839 (%install)
>>
>>
>> RPM build errors:
>>     Bad exit status from /home/sjha/rpm/tmp/rpm-tmp.48839 (%install)
>>
>> If I look at the rpm-tmp.48839. I get following at the end:
>>
>>
>>  rm -rf $RPM_BUILD_ROOT
>>
>> make DESTDIR=/tmp/net-snmp-root install
>>
>> # Remove 'snmpinform' from the temporary directory because it is a
>> # symbolic link, which cannot be handled by the rpm installation process.
>> /bin/rm -f $RPM_BUILD_ROOT/usr/bin/snmpinform
>> # install the init script
>> mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
>> perl -i -p -e 's@/usr/local/share/snmp/@/etc/snmp/@g;s@usr/local@/usr@g'
>> dist/snmpd-init.d
>> install -m 755 dist/snmpd-init.d $RPM_BUILD_ROOT/etc/rc.d/init.d/snmpd
>>
>> # unneeded Perl stuff
>> find $RPM_BUILD_ROOT//usr/lib/perl5/ -name Bundle -type d | xargs rm -rf
>> find $RPM_BUILD_ROOT//usr/lib/perl5/ -name perllocal.pod | xargs rm -f
>>
>> # store a copy of installed Perl stuff.  It's too complex to predict
>> (xxdir=`pwd` && cd $RPM_BUILD_ROOT && find usr/lib*/perl5 -type f | sed
>> 's/^/\//' > $xxdir/net-snmp-perl-files)
>>
>>
>>
>>    /usr/lib/rpm/find-debuginfo.sh
>> /home/ranglieNepal/rpm/BUILD/net-snmp-5.5
>>
>>
>>
>>     /usr/lib/rpm/redhat/brp-compress
>>
>>     /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip
>>     /usr/lib/rpm/redhat/brp-strip-comment-note /usr/bin/strip
>> /usr/bin/objdump
>>
>>  ------------------------------
>>
>>
>> ------------------------------------------------------------------------------
>> This SF.Net email is sponsored by the Verizon Developer Community
>> Take advantage of Verizon's best-in-class app development support
>> A streamlined, 14 day to market process makes app distribution fast and
>> easy
>> Join now and get one step closer to millions of Verizon customers
>> http://p.sf.net/sfu/verizon-dev2dev
>>
>> ------------------------------
>>
>> _______________________________________________
>> Net-snmp-users mailing list
>> [email protected]
>> Please see the following page to unsubscribe or change other options:
>> https://lists.sourceforge.net/lists/listinfo/net-snmp-users
>>
>>
>

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.