build/tag/rpm issues with 5.2.3 and 5.2.2

Rex Tener <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
I have been trying to build/install a rpm package from source of 
net-snmp 5.2.3 and 5.2.2 on Fedora Core 3 for the last week with no success.

I started with source of the latest release 5.2.3 from the download page:

     <http://www.net-snmp.org/download.html>

I was able to compile and install locally.  Great, I can package it 
for my developers.  However, the dist directory contains a note:

>This dist directory contains release instructions and scripts as well
>as binary building instructions and helpful scripts.  However, only
>the main line CVS tree ("HEAD") for Net-SNMP contains the maintained
>versions of all of these files.  They have been removed from this
>directory.  Thus, if you would like to see them check out the main
>line CVS tree per the instructions on:

So, I used cvs to check out the HEAD of the net-snmp/dist 
directory.  However, I couldn't find a tag for the version of the 
Makefile or net-snmp.spec file that was used to build 5.2.3.  It 
appears these files have diverged quite a bit over the last seven 
months and would not be usable to build the 5.2.3 release from source.

I then found a tag in the source for the 5.2.2 release.  I pulled 
that release and was able to compile.  However, when I used the 
makefile in the dist directory the build failed because two different 
libraries were missing.  The FAQ had the solution for that!  Once I 
had it packaged, it would not install on a FC3 box which had net-snmp 
5.1.2 installed on it because of conflicts with files.  It appears 
some files have moved between packages between 5.1 and 5.2?  For example:

[root@ctc72 i386]# rpm --upgrade net-snmp-5.2.2-1.i386.rpm
         file /usr/bin/net-snmp-config from install of 
net-snmp-5.2.2-1 conflicts with file from package net-snmp-devel-5.1.2-11
         file /usr/lib/libnetsnmp.so from install of net-snmp-5.2.2-1 
conflicts with file from package net-snmp-devel-5.1.2-11

I then added the following line to the configure line of the 
net-snmp.spec file to have it install in a unique location:

         --prefix="/usr/local/net-snmp-5.2.2-1" \

Though, it looks like the option is ignored as my built RPM packages 
want to install in the default location.

Any ideas on how I should proceed?

Thanks,

Rex Tener
[email protected]


-------------------------------------------------------------------------
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-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.