Re: [dev] [st] Problem linking in OpenBSD

2014-07-11 Thread Roberto E. Vargas Caballero
-l rt is a posix requirement (certain standard symbols may only be available for linking if the specified -l flags are given to c99, see the extended description in http://pubs.opengroup.org/onlinepubs/9699919799/utilities/c99.html#tag_20_11_13 so yes, to avoid toolchain issues a

Re: [dev] [st] Problem linking in OpenBSD

2014-07-10 Thread Szabolcs Nagy
* Dimitris Papastamos s...@2f30.org [2014-07-09 07:10:57 +0100]: On Wed, Jul 09, 2014 at 01:16:05AM +0200, FRIGN wrote: On Tue, 8 Jul 2014 22:45:15 +0200 Roberto E. Vargas Caballero k...@shike2.com wrote: cannot find -lrt The fix is rather trivial: Just remove the damn -lrt.

Re: [dev] [st] Problem linking in OpenBSD

2014-07-09 Thread Dimitris Papastamos
On Wed, Jul 09, 2014 at 01:16:05AM +0200, FRIGN wrote: On Tue, 8 Jul 2014 22:45:15 +0200 Roberto E. Vargas Caballero k...@shike2.com wrote: cannot find -lrt The fix is rather trivial: Just remove the damn -lrt. Seriously: On OpenBSD, you don't need to include any libs to use time.h; on

Re: [dev] [st] Problem linking in OpenBSD

2014-07-09 Thread Roberto E. Vargas Caballero
cannot find -lrt The fix is rather trivial: Just remove the damn -lrt. Yeah, but then we have to assume that st is not portable to OpenBSD. If we take this decission (that I don't like), we have to add some comment in the FAQ. Seriously: On OpenBSD, you don't need to include any libs

[dev] [st] Problem linking in OpenBSD

2014-07-08 Thread Roberto E. Vargas Caballero
Hi, After the patch 0015e198bfc (Making surf compile again with rt), I cannot compile st in OpenBSD: $ make st build options: CFLAGS = -O2 -pipe -g -std=c99 -pedantic -Wall -Wvariadic-macros -Os -I. -I/usr/include -I/usr/X11R6/include -I/usr/X11R6/include

Re: [dev] [st] Problem linking in OpenBSD

2014-07-08 Thread Dimitris Papastamos
On Tue, Jul 08, 2014 at 10:45:15PM +0200, Roberto E. Vargas Caballero wrote: I could see a similar problem in [1]. Do someone have the same problem? I had the same problem and reverted the patch. Not sure what the proper solution is.

Re: [dev] [st] Problem linking in OpenBSD

2014-07-08 Thread Roberto E. Vargas Caballero
I could see a similar problem in [1]. Do someone have the same problem? I had the same problem and reverted the patch. Not sure what the proper solution is. Maybe the solution is send a report to the OpenBSD list, as it is suggested in the link I put. -- Roberto E. Vargas Caballero

Re: [dev] [st] Problem linking in OpenBSD

2014-07-08 Thread Dimitris Papastamos
On Tue, Jul 08, 2014 at 10:51:42PM +0200, Roberto E. Vargas Caballero wrote: I could see a similar problem in [1]. Do someone have the same problem? I had the same problem and reverted the patch. Not sure what the proper solution is. Maybe the solution is send a report to the

Re: [dev] [st] Problem linking in OpenBSD

2014-07-08 Thread FRIGN
On Tue, 8 Jul 2014 22:45:15 +0200 Roberto E. Vargas Caballero k...@shike2.com wrote: cannot find -lrt The fix is rather trivial: Just remove the damn -lrt. Seriously: On OpenBSD, you don't need to include any libs to use time.h; on Linux, this is only necessary for glibc-versions below 2.17.