Hi.
Has anybody been able to find knock RPM's for CentOS6 already?
There is previous thread talking exactly about the same thing [url=http://www.centos.org/modules/newbb/viewtopic.php?viewmode=thread&order=ASC&topic_id=35592&forum=55]here[/url], 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 [url=http://pkgs.repoforge.org/knock/knock-0.5-1.rf.src.rpm]from here[/url] and build it, but it doesn't work "out of the box".
I just executed:
[code]rpmbuild --rebuild knock-0.5-1.rf.src.rpm[/code]
But at the end I get the following error:
[quote]
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)
[/quote]
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.
[SOLVED] knocking software
Re: knocking software
Hi
Thanks for posting.
If you can't find those packages on the usual repos, then they have been yanked by [url=http://wiki.centos.org/FAQ/General#head-d29a2b7e61ffc544973098f9dd49fe4663efba50]TUV[/url]
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
Thanks for posting.
If you can't find those packages on the usual repos, then they have been yanked by [url=http://wiki.centos.org/FAQ/General#head-d29a2b7e61ffc544973098f9dd49fe4663efba50]TUV[/url]
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
Re: knocking software
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?
Re: knocking software
Well.
I don't know why I didn't try a solution mentioned [url=http://www.centos.org/modules/newbb/viewtopic.php?viewmode=thread&topic_id=35592&forum=55&post_id=153798]here[/url] 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]rpmbuild -bb rpmbuild/SPECS/knock.spec[/code]
And voilá, it created two RPMs:
[code]
[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 ~]#
[/code]
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.
I don't know why I didn't try a solution mentioned [url=http://www.centos.org/modules/newbb/viewtopic.php?viewmode=thread&topic_id=35592&forum=55&post_id=153798]here[/url] 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]rpmbuild -bb rpmbuild/SPECS/knock.spec[/code]
And voilá, it created two RPMs:
[code]
[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 ~]#
[/code]
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.
Re: knocking software
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.
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.
-
- Retired Moderator
- Posts: 18276
- Joined: 2006/12/13 20:15:34
- Location: Tidewater, Virginia, North America
- Contact:
[SOLVED] knocking software
[quote]
elysch wrote:
Thank you Crunch and TrevorH for your promt response.[/quote]
Thanks for reporting back. Marking this thread [SOLVED] for posterity.
[quote]
I still think there should be a way to let the repository mainteiners know the CentOS6 RPMs are missing.[/quote]
Nothing to tell. CentOS will build only what comes from [url=http://wiki.centos.org/FAQ/General?highlight=%28TUV%29#head-d29a2b7e61ffc544973098f9dd49fe4663efba50]TUV[/url]. The best bet for getting such packages in a repo is to request them at one or more of the [url=http://wiki.centos.org/AdditionalResources/Repositories#line-30]3rd party Repositories[/url]
elysch wrote:
Thank you Crunch and TrevorH for your promt response.[/quote]
Thanks for reporting back. Marking this thread [SOLVED] for posterity.
[quote]
I still think there should be a way to let the repository mainteiners know the CentOS6 RPMs are missing.[/quote]
Nothing to tell. CentOS will build only what comes from [url=http://wiki.centos.org/FAQ/General?highlight=%28TUV%29#head-d29a2b7e61ffc544973098f9dd49fe4663efba50]TUV[/url]. The best bet for getting such packages in a repo is to request them at one or more of the [url=http://wiki.centos.org/AdditionalResources/Repositories#line-30]3rd party Repositories[/url]