LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-24-2013, 05:20 PM   #1
solarfields
Senior Member
 
Registered: Feb 2006
Location: slackalaxy.com
Distribution: Slackware, CRUX
Posts: 1,449

Rep: Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997
Is there /usr/include/proc/readproc.h ?


Hi

I am trying to compile a program that apparently looks for readproc.h , but this is not present on my system. Am I missing something? Is it supposed to be part of procps? I checked Debian and Arch and they both have a /usr/include/proc/readproc.h in libproc-dev and procps-ng packages, respectively.

The program that fails to compile is UGENE. I was going to submit an update (1.11.5 --> 1.12.0) for my ugene.SlackBuild, but this may have to wait... The error that it gives is:

p/moc/release -o _tmp/obj/release/AppResources.o src/globals/AppResources.cpp
src/globals/AppResources.cpp:35:27: fatal error: proc/readproc.h: No such file or directory
compilation terminated.
make[2]: *** [_tmp/obj/release/AppResources.o] Error 1

Any help will be appreciated. I will write to the developers, too but I am not sure what exactly to ask them...

EDIT: To clarify... version 1.11.5 compiles fine of course. The new version 1.12.0 is the one the breaks.

Last edited by solarfields; 06-25-2013 at 03:18 AM.
 
Old 06-24-2013, 05:46 PM   #2
Celyr
Member
 
Registered: Mar 2012
Location: Italy
Distribution: Slackware+Debian
Posts: 321

Rep: Reputation: 81
Well, if you look at the slackbuild (I do so throught sbopkg) it requires a number of packages, namely:
bowtie bwa cap3 clustalw mafft mrbayes ncbi-blast ncbi-bast-plus t_coffee
These may require other packages (unfortunately there is no queue file for ugene!) so be sure you have installed them all (use sbopkg it's quite confortable)

Edit: looking at the readme actually the requiered packages aren't requiered (wired way to do that, I would say wrong way to do that..)
Anyway the package got compiled correctly in my slackware-current (and i don't have readproc.h either) what version of slackware are you using ?

Last edited by Celyr; 06-24-2013 at 05:58 PM.
 
Old 06-24-2013, 05:50 PM   #3
solarfields
Senior Member
 
Registered: Feb 2006
Location: slackalaxy.com
Distribution: Slackware, CRUX
Posts: 1,449

Original Poster
Rep: Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997
Celyr,

I've looked at the SlackBuild... These are optional and not needed for the building of the program. UGENE compiles fine without them.
 
Old 06-24-2013, 05:52 PM   #4
mancha
Member
 
Registered: Aug 2012
Posts: 484

Rep: Reputation: Disabled
Interesting. Slackware does provide the procps package but Pat doesn't install the header files as do some other distribs.

Here's a patch to Pat's procps.SlackBuild (as used on Slackware 14.0 and -current) which will make sure the package has the
headers. Feel free to send smoke signals Pat's way and let him know about your use-case that required the missing includes.
You can reference this thread if you want.

--mancha

Code:
--- procps.SlackBuild.orig      2013-06-24
+++ procps.SlackBuild           2013-06-24
@@ -101,7 +101,7 @@
 zcat $CWD/procps-3.2.8.unknown.hz.value.diff.gz | patch -p1 --verbose || exit 1
 
 make OPT="$SLKCFLAGS" || make OPT="$SLKCFLAGS" || exit 1
-mkdir -p $PKG/lib${LIBDIRSUFFIX} $PKG/bin $PKG/sbin $PKG/usr/bin
+mkdir -p $PKG/lib${LIBDIRSUFFIX} $PKG/bin $PKG/sbin $PKG/usr/bin $PKG/usr/include/proc
 cat free > $PKG/bin/free
 cat ps/ps> $PKG/bin/ps
 cat proc/libproc-${SOVER}.so > $PKG/lib${LIBDIRSUFFIX}/libproc-${SOVER}.so
@@ -123,6 +123,7 @@
   ln -sf /bin/free .
   ln -sf /bin/ps .
 )
+cp proc/*.h $PKG/usr/include/proc
 cp -a ps/ps.1 .
 mkdir -p $PKG/usr/man/man1
 for page in free.1 pgrep.1 pkill.1 ps.1 slabtop.1 skill.1 snice.1 tload.1 top.1 uptime.1 w.1 watch.1 ; do
 
1 members found this post helpful.
Old 06-24-2013, 05:55 PM   #5
solarfields
Senior Member
 
Registered: Feb 2006
Location: slackalaxy.com
Distribution: Slackware, CRUX
Posts: 1,449

Original Poster
Rep: Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997
Thank you mancha+!
I will recompile procps tomorrow, using your patch to include the header files. Let's see how the new version of UGENE compiles against it...
 
Old 06-25-2013, 01:33 PM   #6
solarfields
Senior Member
 
Registered: Feb 2006
Location: slackalaxy.com
Distribution: Slackware, CRUX
Posts: 1,449

Original Poster
Rep: Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997
Update!
Using mancha's patch, I recompiled procps on SLackware64 14.0 and after that UGENE 1.12.0 built without any problems. Thanks again! I will therefore mark this as [SOLVED] and start a new thread to ask Pat if he could include the procps headers.
 
  


Reply



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
please difference between /usr/include & /usr/local/include baxzius Linux - Software 2 07-09-2010 05:19 AM
Differences between /usr/include/* and linux/include/* simopal6 Linux - General 2 08-26-2007 03:41 AM
changing include directories - /usr/local/include quep_fly Linux - Newbie 6 08-12-2007 04:36 PM
which headers usr/include/ or /usr/include/nptl/? Chris.Rector Linux - Enterprise 0 02-02-2007 01:40 PM
/usr/include/linux revsteban Debian 1 02-22-2005 10:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:30 PM.

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