DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 15th February 2017
lysitheas's Avatar
lysitheas lysitheas is offline
New User
 
Join Date: Feb 2017
Posts: 5
Default Openbsd as tracker torrent

Hello everybody

i am searching a solution for making a tracker on OpenBSD 6.0
i have trying to compile opentracker, but i'v got an error

Code:
cc -o opentracker opentracker.o trackerlogic.o scan_urlencoded_query.o ot_mutex.o ot_stats.o ot_vector.o ot_clean.o ot_udp.o ot_iovec.o ot_fullscrape.o ot_accesslist.o ot_http.o ot_livesync.o ot_rijndael.o  -L../libowfat -lowfat -pthread -lpthread -lz
trackerlogic.o: In function `remove_peer_from_torrent':
trackerlogic.c:(.text+0x2ae): warning: warning: sprintf() is often misused, please use snprintf()
trackerlogic.o: In function `trackerlogic_init':
trackerlogic.c:(.text+0x105): warning: warning: random() may return deterministic values, is that what you want?
../libowfat/libowfat.a(iob_send.o): In function `iob_send':
iob_send.c:(.text+0x20c): undefined reference to `io_eagain_write'
iob_send.c:(.text+0x29b): undefined reference to `io_eagain_write'
collect2: ld returned 1 exit status
*** Error 1 in /root/opentracker (Makefile:68 'opentracker')
i 'h also ry this fix one his blog http://logrit.com/weblog/2014/11/15/...acker-openbsd/
but no success

Some one have an idea ?

Thanks you very much for help
Reply With Quote
  #2   (View Single Post)  
Old 15th February 2017
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

Quote:
Originally Posted by lysitheas View Post
Some one have an idea ?
Yes. Your application depends on a library which is not installed. The error message of interest is:
Code:
iob_send.c:(.text+0x20c): undefined reference to `io_eagain_write'
Google tells me that io_eagain_write is part of libowfat, which is available to OpenBSD users as a third party package.

Porting applications to OpenBSD often takes a little research.
Reply With Quote
  #3   (View Single Post)  
Old 15th February 2017
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

I've just found work-in-progress port of opentracker, which you may wish to review. It was last edited 4 or 5 years ago, and the "TODO" file states it is not yet complete for three reasons, one of which is apparently a libowfat linking exception. This exception, possibly.

Gaining any value from the work-in-progress port will require detailed knowledge of OpenBSD's ports tree. An introduction to the ports tree can be found in the Packages and Ports chapter of the OpenBSD FAQ. Much more information can be had from the key man pages ports(7) and bsd.port.mk(5), as well as in the ancillary man pages mentioned in the SEE ALSO sections of these two documents.

OpenBSD's work-in-progress ports collection is an unofficial "branch" of the tree, and may be found here on Github. This individual port's files can be viewed from a browser here.

Last edited by jggimi; 15th February 2017 at 01:17 AM. Reason: corrected age of the port
Reply With Quote
  #4   (View Single Post)  
Old 15th February 2017
lysitheas's Avatar
lysitheas lysitheas is offline
New User
 
Join Date: Feb 2017
Posts: 5
Default

Thanks you for your answer

Quote:
Originally Posted by jggimi View Post
libowfat, which is available to OpenBSD users as a third party package.

Porting applications to OpenBSD often takes a little research.
Yes but i have install libowfat
with
Code:
# pkg_add libowfat                                                                 
quirks-2.241 signed on 2016-07-26T16:56:10Z
libowfat-0.30p0: ok
--- +libowfat-0.30p0 -------------------
You may wish to add /usr/local/share/lowfat/man to /etc/man.conf
and i still having this error :/

Quote:
Originally Posted by jggimi View Post
OpenBSD's work-in-progress ports collection is an unofficial "branch" of the tree, and may be found here on Github. This individual port's files can be viewed from a browser here.
By unofficial, you say it's not secure or not stable to install them on bsd?


After a few mail,
http://openbsd.somedomain.net/
use the openbsd-wip port for opentracker
https://github.com/jasperla/openbsd-...et/opentracker
like you link .
But i don't know how to install this one
thanks you
Reply With Quote
  #5   (View Single Post)  
Old 15th February 2017
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

Quote:
Originally Posted by lysitheas View Post
... i have install libowfat..
I did not know this.
Quote:
...and i still having this error :/
As I noted in my follow up post, this might be a 4 or 5 year old unresolved issue with the software you wish to use and its dependent library.
Quote:
By unofficial, you say it's not secure or not stable to install them on bsd?
This openbsd-wip Github project is managed by one of the OpenBSD developers, but it is not part of the OpenBSD Project. These contain ports which are NOT in the OpenBSD ports tree, as the authors of the ports do NOT consider them ready for inclusion in the OpenBSD ports tree. These are not maintained by the Project or supported by the Project.

These may not produce operating packages that can be installed. They are not-yet-ready-to-be-added-to-OpenBSD ports that are written by OpenBSD port maintainers. Port maintainers may be OpenBSD developers or OpenBSD users.

If you have an issue with a port in this Github project, you cannot report it or expect support from the OpenBSD Project. If you have any questions about a port in the openbsd-wip project, you must reach out to the individual who committed it.

Please see the README.md description at the openbsd-wip project page for much more information.
Quote:
After a few mail,
http://openbsd.somedomain.net/
use the openbsd-wip port for opentracker
https://github.com/jasperla/openbsd-...et/opentracker
like you link .
But i don't know how to install this one
thanks you
I'm sorry, I do not understand this. That top link merely takes me to a list of torrent files one of the developers, Andrew Fresh (afresh1@) happens to maintain.

If you are asking me "Andrew recommended this WIP port. How do I add the openbsd-wip Github project to my ports tree?" then see the section labeled "How to use this tree" in the README.md file which is shown below the directory structure at the main page of the Github project.

If you are asking me, "I don't know anything about OpenBSD ports, what's my first step?" then the answer is to start with the Ports section of the FAQ chapter I linked above, followed by the ports(7) man page.
Reply With Quote
  #6   (View Single Post)  
Old 16th February 2017
lysitheas's Avatar
lysitheas lysitheas is offline
New User
 
Join Date: Feb 2017
Posts: 5
Talking

Quote:
Originally Posted by jggimi View Post
I did not know this.As
Sorry i'v forget to mention it.

i have follow this Build instructions
https://erdgeist.org/arts/software/opentracker/
and it work well.
i don't know what mistake i make before


Thanks you very much for you détails enswer, i very appreciate that you taking time to replay to the obsd noob i am.

I going to read the FAQ about bsd port.

Regards
Reply With Quote
  #7   (View Single Post)  
Old 4th March 2017
darktrym's Avatar
darktrym darktrym is offline
standard-bearer
 
Join Date: Feb 2011
Location: Düsseldorf
Posts: 106
Default

This linuxish makefile doesn't know where the libraries are. So extend the search path or create your own package. This should be easy because Pkgsrc already has a receipt without further patches.
__________________
NetBSD 8.99.25(AMD64)@Xiaomi Air 1.Gen
Reply With Quote
Reply

Tags
openbsd tracker

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
torrent clients are driving me nuts graudeejs FreeBSD General 28 9th January 2009 12:43 PM
Client torrent ! gnowar OpenBSD General 10 3rd June 2008 10:50 AM
torrent? knasbas OpenBSD Packages and Ports 6 29th May 2008 05:30 PM
opera: disable inbuild torrent utility ephemera FreeBSD Ports and Packages 11 17th May 2008 12:26 AM


All times are GMT. The time now is 02:55 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick