freetalk-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Freetalk-dev] Problem compiling on OpenBSD


From: Jasper Lievisse Adriaanse
Subject: Re: [Freetalk-dev] Problem compiling on OpenBSD
Date: Sat, 27 May 2006 15:42:22 +0200
User-agent: Mutt/1.5.11

On Sat, May 27, 2006 at 06:34:17PM +0530, Anand V. Avati wrote:
> > Well I've used a little script to remove the symlinks and cp the needed
> > files from /usr/local/share/gettext/po/, but this is ugly.
> > Anyway, it now picks up gnu iconv etc ok.
> 
> we will be making a new release 0.70 with the symlink fixes, so that you
> can shred the ugly workaround.
> 
> > It also starts to compile, but there are some problems. Namely that BSD
> > libc doesn't have a argp.h. This is easily fixed by copying the file
> > from a linux box.
> 
> copying argp.h may not help. does BSD libc have argp_parse () etc? if
> it does, it would help. but i think that is specific to GNU libc. if
> not, the argp will need to be re-written with getopt_*(). argp is
> necessary for gnu compliance.
> 
> Could you please investigate if BSD libc has argp equivlant calls (not
> getopt*(), but something similar to argp). else a patch from you against
> the cvs latest which uses getopt within #ifndef HAS_ARGP as part of your
> porting effort will be much appretiated.
there's no such function present. I'll see what I can do to hack up a
diff to make it work on systems with BSD libc.

>  
> > But I was a little more surprised when I found out about include like
> > <linux/kd.h> in primitives.cc. Since this is Linux-only stuff, it isn't
> > present on systems !linux. And thus importable.
> 
> that was a header we had included to use some of the beep features of
> linux. but we are not using it. it is safe to remove "#include
> <linux/kd.h>" and "#include <sys/ioctl.h>" from primitives.cc. We shall
> remove it officially as part of next release.
> 
> > Ofcourse I can copy over all those files (which I believe are in the
> > kernel sources.....) , but that doesn't make sense to me.
> 
> they are kernel headers, originally part of kernel source, but exposed
> to userspace for applications to leverage on linux specific features (by
> means of ioctls or just other definitions)
There are two diffs attached:

--- src/primitives.cc.orig      Sat May 27 15:25:04 2006
+++ src/primitives.cc   Sat May 27 15:25:31 2006
@@ -18,11 +18,9 @@
    Boston, MA 02110-1301 USA
 */
 
-#include <sys/ioctl.h>
 #include <sys/types.h>
 #include <fcntl.h>
 #include <unistd.h>
-#include <linux/kd.h>
 
 #include <guile/gh.h>


--- src/register.cc.orig        Sat May 27 15:32:52 2006
+++ src/register.cc     Sat May 27 15:36:40 2006
@@ -22,6 +22,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <readline/readline.h>
+#include <unistd.h>
 
 #include <string>
 #include <map>

This diff fixes a compilation error regarding a missing declaration of
getpass().

at the moment, linking fails, but that's due to the fact that argp isn't working
as it should ;-)
> 
> > Jasper
> 
> We would love to see the soon-to-come new freetalk with voice chat
> support in console via libjingle get ported to *BSD too.
> 
> thanks,
> avati
> 
> -- 
> Anand V. Avati

-- 
Humppa is a serious thing!




reply via email to

[Prev in Thread] Current Thread [Next in Thread]