[SOLVED] knocking software

General support questions

[SOLVED] knocking software

Postby elysch » 2012/04/07 23:55:07

Hi.

Has anybody been able to find knock RPM's for CentOS6 already?

There is previous thread talking exactly about the same thing here, but there isn't a definitive solution.

I found a log file saying someone created them since january at:
http://pkgs.repoforge.org/knock/_buildlogs/

But culdn't find the actual RPM at:
http://pkgs.repoforge.org/knock/

Maybe it is there, but doesn't show because of wrong filesystem permissions.

Does anybody knows how to contact pkgs.repoforge.org administrator in order to ask him/her for help?
I haven't been able to.

In the meantime, I tryed downloading the source RPM from here and build it, but it doesn't work "out of the box".

I just executed:
Code: Select all
rpmbuild --rebuild knock-0.5-1.rf.src.rpm


But at the end I get the following error:
gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -g -Wall -pedantic -fno-exceptions -D_GNU_SOURCE -I. -o src/knockd.o -c src/knockd.c
src/knockd.c:134: error: 'PATH_MAX' undeclared here (not in a function)
src/knockd.c: In function 'parseconfig':
src/knockd.c:438: warning: unused variable 'line'
src/knockd.c: In function 'get_next_one_time_sequence':
src/knockd.c:695: warning: unused variable 'line'
src/knockd.c: In function 'sniff':
src/knockd.c:1386: warning: unused variable 'parsed_stop_cmd'
src/knockd.c:1385: warning: unused variable 'parsed_start_cmd'
make: *** [src/knockd.o] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.6oqYpj (%build)


RPM build errors:
user dag does not exist - using root
group dag does not exist - using root
Bad exit status from /var/tmp/rpm-tmp.6oqYpj (%build)


So I'm stuck. Maybe there is a very simple solution to fix thiese errors (I hope), but I don't know why I couldn't find it.

Any help will be really appreciated.


Ely.
elysch
 
Posts: 4
Joined: 2012/04/07 03:56:10

Re: knocking software

Postby Crunch » 2012/04/08 00:18:26

Hi

Thanks for posting.

If you can't find those packages on the usual repos, then they have been yanked by TUV

You could probably get it working eventually. Looks like you're missing headers. If you would like me to help you with with this email at numbercruncher234@gmail.com
Crunch
 
Posts: 101
Joined: 2012/04/02 11:24:46

Re: knocking software

Postby TrevorH » 2012/04/08 01:36:40

Your error looks suspiciously like the one that the patch in my post to the other thread fixes. Did you include that patch in your build?
User avatar
TrevorH
Forum Moderator
 
Posts: 9164
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: knocking software

Postby elysch » 2012/04/08 05:54:20

Well.

I don't know why I didn't try a solution mentioned here by trevorH.

I thought it was a very complicated thing to do, but I simply created a diff file and modified the spec file (as said by trevorH) in the "rpmbuild" directory created in /root/ after my unsuccessfull first attempt.

After that I executed:
Code: Select all
rpmbuild -bb rpmbuild/SPECS/knock.spec


And voilá, it created two RPMs:

Code: Select all
[user@localhost ~]# ls -la rpmbuild/RPMS/x86_64/
total 84
drwxr-xr-x 2 root root  4096 Apr  7 19:07 .
drwxr-xr-x 3 root root  4096 Apr  7 19:07 ..
-rw-r--r-- 1 root root 31664 Apr  7 19:07 knock-0.5-1.rf.x86_64.rpm
-rw-r--r-- 1 root root 42516 Apr  7 19:07 knock-debuginfo-0.5-1.rf.x86_64.rpm
[user@localhost ~]#


After that, I was able to install the first one.
As far as I can see, it works just fine.

Hope this instructions help someone else.

Ely.
elysch
 
Posts: 4
Joined: 2012/04/07 03:56:10

Re: knocking software

Postby elysch » 2012/04/08 06:10:19

Thank you Crunch and TrevorH for your promt response.

TrevorH:
As you can see in my previous post, I don't know why I didn't see the relation between the error I was getting and the instructions you posted a couple of months ago.
Who knows.

I'll try to read more carefully from now on.


I still think there should be a way to let the repository mainteiners know the CentOS6 RPMs are missing.

Ely.
elysch
 
Posts: 4
Joined: 2012/04/07 03:56:10

[SOLVED] knocking software

Postby pschaff » 2012/04/08 12:38:31

elysch wrote:
Thank you Crunch and TrevorH for your promt response.

Thanks for reporting back. Marking this thread [SOLVED] for posterity.

I still think there should be a way to let the repository mainteiners know the CentOS6 RPMs are missing.

Nothing to tell. CentOS will build only what comes from TUV. The best bet for getting such packages in a repo is to request them at one or more of the 3rd party Repositories
pschaff
Retired Moderator
 
Posts: 18277
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America


Return to CentOS 6 - General Support

Who is online

Users browsing this forum: Bing [Bot] and 7 guests