On 11/04/2008, Mark Seger <[EMAIL PROTECTED]> wrote:
> > Where did you get the spec file from?
> >
> sourceforce download area - net-snmp-5.4.1-1.src.rpm
OK - I've grabbed this and tried building it myself.
> would it help to say when I installed the rpm I got the message "user
> hardaker does not exist - using root"
Nope - ignore that.
It's fairly common when installing source RPMs.
> > > /usr/bin/strip: /tmp/net-snmp-root/usr/lib/st9lY1VY/DynaLoader.a:
> > > Invalid operation
I'm getting something similar:
/usr/bin/strip: Unable to recognise the format of the input file
`/tmp/net-snmp-root/usr/lib/libnetsnmptrapd.a(DynaLoader.a)'
But the build process keeps going anyway.
What O/S, distribution, etc are you working with?
> 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
Yup - note where this is failing:
+ /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip ....
This is part of the process of packaging up the
compiled-and-installed files into an RPM package.
It's not something that would bite you with a non-RPM
build from source.
> > > 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*
> man3 does exist but doen't contain anything that matches *::*
Checking the normal RPM build, the configure command
that is invoked includes:
'--with-perl-modules=PREFIX=/tmp/net-snmp-root/usr INSTALLDIRS=vendor'
If you've manually tweaked the configure command to simply
use '--with-perl-module', then it won't be installing the perl
man pages into the location that rpmbuild expects.
I think this is probably a red herring, and you're better off
letting the spec file supply the configure invocation.
As far as your original problem is concerned - have a look at
the script /usr/lib/rpm/redhat/brp-strip-static-archive
It may be that you can workaround this problem by setting
the environmental variable STRIP - something like
export STRIP=true
rpmbuild ......
(Or failing that,
edit the brp-strip-static-archive script to add
exit 0;
to the beginning of it!)
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