[Lazarus] Compiling on OpenBSD

Mattias Gaertner nc-gaertnma at netcologne.de
Thu Feb 27 08:54:06 CET 2014


On Wed, 26 Feb 2014 22:16:01 -0300
Leonardo Rame <l.rame at griensu.com> wrote:

> Hi, I'm playing with OpenBsd 5.4 amd64 (with XFCE4) and found it has an fpc 2.6.2 package, so I tried compiling Lazarus trunk.
> 
> I had only a couple of issues while compiling.
> 
> 1) Use gmake instead of make. This is the same as in FreeBsd, no problem.
> 2) Had to create the file ide/include/openbsd/lazconf.inc with the same contents of the FreeBsd version (attached).

Thanks for the hint. I added that.


> 3) At linking lazarus there were some warnings:
> 
> /usr/local/lib//libglib-2.0.so.3600.1: warning: vsprintf() is often misused, please use vsnprintf()
> /usr/local/lib//libglib-2.0.so.3600.1: warning: stpcpy() is dangerous GNU crap; don't use it
> /usr/X11R6/lib//libX11.so.15.2: warning: strcpy() is almost always misused, please use strlcpy()
> /usr/X11R6/lib//libX11.so.15.2: warning: strcat() is almost always misused, please use strlcat()
> /usr/X11R6/lib//libX11.so.15.2: warning: sprintf() is often misused, please use snprintf()

Lazarus sources don't use them directly. Maybe some FPC packages use
them.

 
> 4) When I've tried to run ./lazarus, I got this:
> 
> (lazarus:14292): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed
> [FORMS.PP] ExceptionOccurred 
> Sender=EAccessViolation
> Exception=Access violation
> Stack trace:
> $000000020D8F7A4A
> TApplication.HandleException Access violation
> Stack trace:
> $000000020D8F7A4A
> [FORMS.PP] ExceptionOccurred 
> 
> I think this can be related to my gtk2 version: gtk+2-2.24.20p1

Run in gdb. Hopefully it gives a better stacktrace.

 
> Well, I hope someone can take a look at the OpenBSD version, this is a really nice O.S. that deserves a Lazarus package :).

Thanks for testing.

Mattias




More information about the Lazarus mailing list