From owner-freebsd-ports@FreeBSD.ORG  Sun Mar 12 02:52:01 2006
Return-Path: <owner-freebsd-ports@FreeBSD.ORG>
X-Original-To: freebsd-ports@freebsd.org
Delivered-To: freebsd-ports@freebsd.org
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 12AF416A44A
	for <freebsd-ports@freebsd.org>; Sun, 12 Mar 2006 02:52:01 +0000 (GMT)
	(envelope-from laszlof@vonostingroup.com)
Received: from ritamari.vonostingroup.com (ritamari.vonostingroup.com
	[216.144.193.230])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 1934345D42
	for <freebsd-ports@freebsd.org>; Sun, 12 Mar 2006 00:59:04 +0000 (GMT)
	(envelope-from laszlof@vonostingroup.com)
Received: from c-71-227-92-22.hsd1.mi.comcast.net ([71.227.92.22]
	helo=[127.0.0.1])
	by ritamari.vonostingroup.com with esmtpa (Exim 4.60 (FreeBSD))
	(envelope-from <laszlof@vonostingroup.com>)
	id 1FIEvU-0002kq-Qf; Sat, 11 Mar 2006 19:59:16 -0500
Message-ID: <44137252.4020600@vonostingroup.com>
Date: Sat, 11 Mar 2006 19:58:58 -0500
From: Frank Laszlo <laszlof@vonostingroup.com>
User-Agent: Thunderbird 1.5 (Windows/20051201)
MIME-Version: 1.0
To: Anders Troback <freebsd@troback.com>
References: <20060310203735.55e84734@devil.troback.com>	<20060311021108.GA2099@xor.obsecurity.org>	<20060311145607.5a502940@devil.troback.com>	<441337A8.5080207@vonostingroup.com>
	<20060311235620.6d33ca8e@devil.troback.com>
In-Reply-To: <20060311235620.6d33ca8e@devil.troback.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-AntiAbuse: This header was added to track abuse,
	please include it with any abuse report
X-AntiAbuse: Primary Hostname - ritamari.vonostingroup.com
X-AntiAbuse: Original Domain - freebsd.org
X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [26 6]
X-AntiAbuse: Sender Address Domain - vonostingroup.com
X-Source: 
X-Source-Args: 
X-Source-Dir: 
Cc: FreeBSD Ports <freebsd-ports@freebsd.org>
Subject: Re: <linux/kernel.h>
X-BeenThere: freebsd-ports@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Porting software to FreeBSD <freebsd-ports.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-ports>,
	<mailto:freebsd-ports-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-ports>
List-Post: <mailto:freebsd-ports@freebsd.org>
List-Help: <mailto:freebsd-ports-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-ports>,
	<mailto:freebsd-ports-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Sun, 12 Mar 2006 02:52:01 -0000

Anders Troback wrote:
> On Sat, 11 Mar 2006 15:48:40 -0500
> Frank Laszlo <laszlof@vonostingroup.com> wrote:
>
>   
>> Anders Troback wrote:
>>     
>>> On Fri, 10 Mar 2006 21:11:09 -0500
>>> Kris Kennaway <kris@obsecurity.org> wrote:
>>>
>>>   
>>>       
>>>> On Fri, Mar 10, 2006 at 08:37:35PM +0100, Anders Troback wrote:
>>>>     
>>>>         
>>>>> Hi list!
>>>>>
>>>>> I'm trying to compile a app that have a include of
>>>>> <linux/kernel.h>!
>>>>>
>>>>> How do I cope with that? Any ideas?
>>>>>       
>>>>>           
>>>> Figure out what Linux kernel interface it uses from that header,
>>>> figure out what the corresponding FreeBSD version is, then port the
>>>> code from Linux to FreeBSD interface.
>>>>
>>>> Kris
>>>>     
>>>>         
>>> Was locking for a shortcut here like "use this header instead" or
>>> something;-)
>>>
>>> Thanks!
>>>
>>>
>>> \\troback
>>> _______________________________________________
>>> freebsd-ports@freebsd.org mailing list
>>> http://lists.freebsd.org/mailman/listinfo/freebsd-ports
>>> To unsubscribe, send any mail to
>>> "freebsd-ports-unsubscribe@freebsd.org" 
>>>       
>> remove the include line and see where it errors, pasting it here may
>> be help,as other developers may be able to point you in the right
>> direction.
>>
>> -Frank
>>     
>
> Good idea, thanks Frank!
>
> With the include line removed compilation stops on row 400 with this
> error:
> storage size of 's_info' isn't known
>
> Line 400 in the .c file are:
> struct sysinfo s_info;
>
> All help appreciated!
>
> \\troback
>   
I'm not too much of a programmer, but if you let me know what source you 
are trying to compile, I could possibly take a look at it when I have 
some time. I'm sure we can figure something out. Otherwise I'm sure 
there are some more friendly faces on this list that could assist you. I 
think this is more of a -questions type of question, since it doesnt 
have to deal with the ports infrastructure. Maybe try there? Send a link 
to download the source you are trying to compile and related information 
in your porting effort and I'll see what I can do.

-Frank