LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-11-2011, 12:17 PM   #1
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,190

Rep: Reputation: 60
Building an RPM for OpenSUSE 11.3 Rusers and Xprobe2


I have been trying to look for these two packages (RUSER and XPROBE2) for OpenSuse 11.3 and have downloaded and tried various combinations but nothing installs smoothly so I have embarked on learning how to build an rpm from scratch tailored to OpenSuse 11.3. What would be a great place to start? Any Suggestions on building a package tailored for OpenSuse 11.3? Here is a snippet of a failed attempt to install an Mandriva RPM on a OpenSuse 11.3 box. I did this just to get a better understanding of the process.

PHP Code:
rpm -ivh xprobe2-0.3-1mdv2008.0.i586.rpm 
warning
xprobe2-0.3-1mdv2008.0.i586.rpmHeader V3 DSA/SHA1 Signaturekey ID 78d019f5NOKEY
error
Failed dependencies:
    
libpcap.so.0 is needed by xprobe2-0.3-1mdv2008.0.i586 
The version of libpcap on the OpenSuse 11.3 build is:

PHP Code:
rpm -ql libcap2
/lib64/libcap.so.2
/lib64/libcap.so.2.16 
So it appears that whatever version that I attempt to install does not like the newer version of libcap.so.2 thus sparking my quest on building my own custom rpm that satisfies this version of OpenSuse 11.3

I have been probing through the forums and found this pdf:

http://www-uxsup.csx.cam.ac.uk/talks...d/rpmbuild.pdf
and
http://www.ibm.com/developerworks/library/l-rpm1/

Last edited by metallica1973; 03-11-2011 at 01:01 PM.
 
Old 03-11-2011, 01:13 PM   #2
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
You will have better luck starting with a src.rpm

http://kojipkgs.fedoraproject.org/pa...5.fc15.src.rpm

http://koji.fedoraproject.org/koji/b...buildID=219408
 
Old 03-16-2011, 10:16 AM   #3
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,190

Original Poster
Rep: Reputation: 60
thanks for the reply:

I am on the 64bit install of OpenSuse 11.3 and am trying just to compile xprobe from a tar just to make sure that there will not be issue with building the rpm. So when I run ./configure --with-libpcap-includes=/usr/lib64/ where my libpcap resides, it seems as though is doesn't see it. When looking at the requirements I seem to have what is needed:

PHP Code:
Requirements
------------

A C++ compiler. (gcc will do)

libusi++ (included with the distribution)

lipcap (use version 0.6.or later)
  If 
libpcap is not installed in standard path, use --with-libpcap-libraries=/path
  and --
with-libcap-includes=/path options
PHP Code:
rpm -ql libpcap1-1.1.1-1.12.x86_64
/usr/lib64/libpcap.so.1
/usr/lib64/libpcap.so.1.1.1
/usr/share/doc/packages/libpcap1
/usr/share/doc/packages/libpcap1/CHANGES
/usr/share/doc/packages/libpcap1/CREDITS
/usr/share/doc/packages/libpcap1/LICENSE
/usr/share/doc/packages/libpcap1/README
/usr/share/doc/packages/libpcap1/README.linux 
This is the output of the ./configure script:

PHP Code:
./configure --with-libpcap-includes=/usr/lib64/
checking for gcc... gcc
checking 
for C compiler default output file name... a.out
checking whether the C compiler works
... yes
checking whether we are cross compiling
... no
checking 
for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler
... yes
checking whether gcc accepts 
-g... yes
checking 
for gcc option to accept ISO C89... none needed
checking 
for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g
++ accepts -g... yes
checking 
for ranlib... ranlib
checking build system type
... x86_64-unknown-linux-gnu
checking host system type
... x86_64-unknown-linux-gnu
checking how to run the C
++ preprocessor... g++ -E
checking 
for grep that handles long lines and -e... /usr/bin/grep
checking 
for egrep... /usr/bin/grep -E
checking 
for ANSI C header files... yes
checking 
for sys/types.h... yes
checking 
for sys/stat.h... yes
checking 
for stdlib.h... yes
checking 
for string.h... yes
checking 
for memory.h... yes
checking 
for strings.h... yes
checking 
for inttypes.h... yes
checking 
for stdint.h... yes
checking 
for unistd.h... yes
checking 
for strings.h... (cachedyes
checking 
for string.h... (cachedyes
checking 
for stdlib.h... (cachedyes
checking 
for unistd.h... (cachedyes
checking glib
.h usability... no
checking glib
.h presence... no
checking 
for glib.h... no
checking dlfcn
.h usability... yes
checking dlfcn
.h presence... yes
checking 
for dlfcn.h... yes
checking 
if sa_len is in struct sockaddr... no
checking 
for pcap_datalink in -lpcap... no

   ERROR
!  Libpcap library/headers not found.
   
http://www.tcpdump.org/ is a good place to fetch one
   
if libpcap library is installed, use the --with-libpcap-* options
   to specify pathes to 
include and library files locations
Any suggestions?

Last edited by metallica1973; 03-16-2011 at 10:20 AM.
 
Old 03-16-2011, 11:11 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608
For any installed package you need a development package to satisfy build requirements. In your .src.rpm (some tarballs contain .spec files too) you will find a .spec file in which those reqs could be expressed with a line something like "BuildRequires: libcap2-devel >= 2.16". Wrt the learning part also see:
RPM5.org documentation: http://rpm5.org/docs.php (newer)
Fedora RPM Guide: http://docs.fedoraproject.org/en-US/...ide/index.html (not distro-agnostic but the most extensive AFAIK)
OpenSuSE Build System: http://ldn.linuxfoundation.org/artic...g-rpm-packages
 
Old 03-16-2011, 11:56 AM   #5
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,190

Original Poster
Rep: Reputation: 60
Much appreciated, I will do some reading. I just post my corks.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with specs for building a box around Ubuntu or openSUSE 11 chansen0421 Linux - Newbie 1 06-27-2008 01:43 PM
Building RPM for openSuSE 10.2 swampdog2002 SUSE / openSUSE 4 02-12-2007 01:09 PM
Pure-ftpd server rusers? Tunel Linux - Server 1 12-13-2006 09:04 AM
Help building an .rpm from a .src.rpm ssenuta Linux - Software 6 04-10-2006 10:36 PM
Building RPM via src.Rpm ivanatora Linux - Newbie 2 02-20-2006 04:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration