ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Artem <u2u@nm.ru>
To: ALT Linux Sisyphus discussion list <sisyphus@altlinux.ru>
Subject: Re: [sisyphus] Re: perl build && kernel headers
Date: Wed, 01 Jun 2005 18:29:18 +0300
Message-ID: <429DD44E.40309@nm.ru> (raw)
In-Reply-To: <20050601145731.GS5867@solemn.turbinal.org>

Alexey Tourbin wrote:

>On Wed, Jun 01, 2005 at 12:04:24PM +0300, Artem wrote:
>  
>
>>Собсно- вопрос. Интересно, а с какими хэдерами собирается perl в sisyphus ?
>>    
>>
>
>По идее, glibc-kernheaders.
>
>  
>
Name        : glibc-kernheaders             
Version     : 2.4.25
Build Date: Втр 10 Май 2005 16:43:29        
Build Host: ldv.hasher.altlinux.org         

>>Скрипт h2ph криво обрабатывает многие из заголовочных файлов (например - 
>>kmod.h, etc.)
>>    
>>
>
>Если у вас glibc >= 2.3.5, то нужен perl >= 5.8.7.
>  
>
perl-5.8.7-alt0.1.src.rpm

"Выковыриваем" из  glibc-kernheaders файл 
/usr/include/linux-default/include/linux/kmod.h
Из perl выдергиваем h2ph. Приглашаем их в одну директорию.

Далее:
$ ./h2ph -d ./ ./kmod.h
./kmod.h -> ./kmod.ph

И смотрим kmod.ph


require 
'_h2ph_pre.ph';                                                                  

                                                                                         

no warnings 
'redefine';                                                                  

                                                                                         

unless(defined(&__LINUX_KMOD_H__)) 
{                                                    
    eval 'sub __LINUX_KMOD_H__ () {1;}' unless 
defined(&__LINUX_KMOD_H__);              
    require 
'linux/config.ph';                                                           

    require 
'linux/errno.ph';                                                            

    if(defined(&CONFIG_KMOD)) 
{                                                         
    } else 
{                                                                             

        if(defined(&CONFIG_HOTPLUG)) 
{                                                  
        
}                                                                                

    
}                                                                                    

1;  <---- вот здесь надо бы еще } поставить.

Обратите внимание на число открывающих и закрывающих фигурных скобок. В 
конце, перед "1;" должно быть еще одно "}"

Бага? Или мои /dev/hands ? :-)


  reply	other threads:[~2005-06-01 15:29 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-01  9:04 [sisyphus] " Artem
2005-06-01 14:57 ` [sisyphus] " Alexey Tourbin
2005-06-01 15:29   ` Artem [this message]
2005-06-01 16:21     ` Alexey Tourbin
2005-06-01 16:39       ` Artem
2005-06-01 18:45         ` Alexey Tourbin
2005-06-01 21:08           ` Artem
2005-06-01 22:27             ` Alexey Tourbin
2005-06-01 22:55               ` Artem
2005-06-01 21:21           ` Artem
2005-06-01 21:12   ` Michael Shigorin
2005-06-01 22:41     ` Alexey Tourbin
2005-06-01 23:00       ` Artem
2005-06-01 23:09         ` Alexey Tourbin
2005-06-02  2:39       ` Alexey Tourbin
2005-06-02  9:48         ` Dmitry V. Levin
2005-06-02 18:21           ` Alexey Tourbin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=429DD44E.40309@nm.ru \
    --to=u2u@nm.ru \
    --cc=sisyphus@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git