Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 06/04/2007, à 19:58

mumbly

Creation d'un package : erreur

j'essaie tant bien que mal de créer mon premier paquet .deb ...
Ayant lu, relu et relu ... le tuto sur le wiki ubuntu-fr.org, je n'y arrive toujours pas.
Je vous copie/colle le pbuilder build *dsc :

olivier@shadrak:~/packaging/acer-acpi$ sudo pbuilder build *dsc
I: using fakeroot in build.
pbuilder-buildpackage/i386 $Id: pbuilder-buildpackage-funcs,v 1.31 2006/05/30 23:45:45 dancer Exp $
$Id: pbuilder-buildpackage,v 1.126 2006/06/10 15:09:52 dancer Exp $

Current time: Fri Apr  6 19:55:44 CEST 2007
pbuilder-time-stamp: 1175882144
Building the build Environment
-> extracting base tarball [/var/cache/pbuilder/base.tgz]
-> creating local configuration
-> copying local configuration
-> mounting /proc filesystem
-> mounting /dev/pts filesystem
-> policy-rc.d already exists
Obtaining the cached apt archive contents
Installing the build-deps
-> Attempting to parse the build-deps : pbuilder-satisfydepends,v 1.28 2006/05/30 23:45:45 dancer Exp $
-> Considering  debhelper (>= 5)
   -> Trying debhelper
-> Installing  debhelper
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  file gettext html2text intltool-debian libmagic1 po-debconf
Suggested packages:
  dh-make cvs gettext-doc
Recommended packages:
  curl wget lynx libmail-sendmail-perl libcompress-zlib-perl
The following NEW packages will be installed:
  debhelper file gettext html2text intltool-debian libmagic1 po-debconf
0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/2373kB of archives.
After unpacking 9740kB of additional disk space will be used.
Selecting previously deselected package libmagic1.
(Reading database ... 11967 files and directories currently installed.)
Unpacking libmagic1 (from .../libmagic1_4.17-2ubuntu1_i386.deb) ...
Selecting previously deselected package file.
Unpacking file (from .../file_4.17-2ubuntu1_i386.deb) ...
Selecting previously deselected package html2text.
Unpacking html2text (from .../html2text_1.3.2a-3_i386.deb) ...
Selecting previously deselected package gettext.
Unpacking gettext (from .../gettext_0.15-2ubuntu1_i386.deb) ...
Selecting previously deselected package intltool-debian.
Unpacking intltool-debian (from .../intltool-debian_0.35.0+20060710_all.deb) ...
Selecting previously deselected package po-debconf.
Unpacking po-debconf (from .../po-debconf_1.0.5_all.deb) ...
Selecting previously deselected package debhelper.
Unpacking debhelper (from .../debhelper_5.0.37.3ubuntu4_all.deb) ...
Setting up libmagic1 (4.17-2ubuntu1) ...

Setting up file (4.17-2ubuntu1) ...
Setting up html2text (1.3.2a-3) ...

Setting up gettext (0.15-2ubuntu1) ...

Setting up intltool-debian (0.35.0+20060710) ...
Setting up po-debconf (1.0.5) ...
Setting up debhelper (5.0.37.3ubuntu4) ...
-> Finished parsing the build-deps
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  fakeroot
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/94.7kB of archives.
After unpacking 385kB of additional disk space will be used.
Selecting previously deselected package fakeroot.
(Reading database ... 12498 files and directories currently installed.)
Unpacking fakeroot (from .../fakeroot_1.5.9ubuntu1_i386.deb) ...
Setting up fakeroot (1.5.9ubuntu1) ...

Copying back the cached apt archive contents
Copying source file
    -> copying [acer-acpi_0.4-1.dsc]
    -> copying [./acer-acpi_0.4.orig.tar.gz]
    -> copying [./acer-acpi_0.4-1.diff.gz]
Extracting source
su: Authentication service cannot retrieve authentication info.
(Ignored)
dpkg-source: warning: no utmp entry available and LOGNAME not defined; using uid of process (1234)
dpkg-source: warning: extracting unsigned source package (./acer-acpi_0.4-1.dsc)
dpkg-source: extracting acer-acpi in acer-acpi-0.4
dpkg-source: unpacking acer-acpi_0.4.orig.tar.gz
dpkg-source: applying ./acer-acpi_0.4-1.diff.gz
-> Building the package
su: Authentication service cannot retrieve authentication info.
(Ignored)
dpkg-parsechangelog: warning: no utmp entry available and LOGNAME not defined; using uid of process (1234)
debian: warning: no utmp entry available and LOGNAME not defined; using uid of process (1234)
dpkg-buildpackage: source package is acer-acpi
dpkg-parsechangelog: warning: no utmp entry available and LOGNAME not defined; using uid of process (1234)
debian: warning: no utmp entry available and LOGNAME not defined; using uid of process (1234)
dpkg-buildpackage: source version is 0.4-1
dpkg-parsechangelog: warning: no utmp entry available and LOGNAME not defined; using uid of process (1234)
debian: warning: no utmp entry available and LOGNAME not defined; using uid of process (1234)
dpkg-buildpackage: source changed by Olivier Prieur <mumbly@francofolibre.org>
dpkg-architecture: warning: no utmp entry available and LOGNAME not defined; using uid of process (1234)
dpkg-architecture: warning: no utmp entry available and LOGNAME not defined; using uid of process (1234)
dpkg-buildpackage: host architecture i386
dpkg-buildpackage: source version without epoch 0.4-1
dpkg-checkbuilddeps: warning: no utmp entry available and LOGNAME not defined; using uid of process (1234)
dpkg-architecture: warning: no utmp entry available and LOGNAME not defined; using uid of process (1234)
dpkg-architecture: warning: no utmp entry available and LOGNAME not defined; using uid of process (1234)
fakeroot debian/rules clean
dh_testdir
dh_testroot
rm -f build-stamp configure-stamp
# Add here commands to clean up after the build process.
/usr/bin/make clean
awk: cannot open /lib/modules/2.6.17-11-generic/build/include/linux/utsrelease.h (No such file or directory)
make[1]: Entering directory `/tmp/buildd/acer-acpi-0.4'
rm -f *~ *.o *.s *.ko *.mod.c
make[1]: Leaving directory `/tmp/buildd/acer-acpi-0.4'
dh_clean
dpkg-source -b acer-acpi-0.4
dpkg-source: warning: no utmp entry available and LOGNAME not defined; using uid of process (1234)
dpkg-parsechangelog: warning: no utmp entry available and LOGNAME not defined; using uid of process (1234)
debian: warning: no utmp entry available and LOGNAME not defined; using uid of process (1234)
dpkg-architecture: warning: no utmp entry available and LOGNAME not defined; using uid of process (1234)
dpkg-source: building acer-acpi using existing acer-acpi_0.4.orig.tar.gz
dpkg-source: building acer-acpi in acer-acpi_0.4-1.diff.gz
dpkg-source: building acer-acpi in acer-acpi_0.4-1.dsc
debian/rules build
dh_testdir
# Add here commands to configure the package.
touch configure-stamp
dh_testdir
# Add here commands to compile the package.
/usr/bin/make
awk: cannot open /lib/modules/2.6.17-11-generic/build/include/linux/utsrelease.h (No such file or directory)
make[1]: Entering directory `/tmp/buildd/acer-acpi-0.4'
gcc -I/lib/modules/`uname -r`/build/include -c -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -DMODVERSIONS -DMODULE -D__KERNEL__ -o acer_acpi.o acer_acpi.c
acer_acpi.c:41:26: error: linux/module.h: No such file or directory
acer_acpi.c:42:24: error: linux/init.h: No such file or directory
acer_acpi.c:44:27: error: linux/proc_fs.h: No such file or directory
acer_acpi.c:45:25: error: linux/delay.h: No such file or directory
acer_acpi.c:46:27: error: linux/suspend.h: No such file or directory
acer_acpi.c:47:25: error: asm/uaccess.h: No such file or directory
acer_acpi.c:49:31: error: acpi/acpi_drivers.h: No such file or directory
acer_acpi.c:51: error: expected declaration specifiers or '...' before string constant
acer_acpi.c:51: warning: data definition has no type or storage class
acer_acpi.c:51: warning: type defaults to 'int' in declaration of 'MODULE_AUTHOR'
acer_acpi.c:51: warning: function declaration isn't a prototype
acer_acpi.c:52: error: expected declaration specifiers or '...' before string constant
acer_acpi.c:52: warning: data definition has no type or storage class
acer_acpi.c:52: warning: type defaults to 'int' in declaration of 'MODULE_DESCRIPTION'
acer_acpi.c:52: warning: function declaration isn't a prototype
acer_acpi.c:53: error: expected declaration specifiers or '...' before string constant
acer_acpi.c:53: warning: data definition has no type or storage class
acer_acpi.c:53: warning: type defaults to 'int' in declaration of 'MODULE_LICENSE'
acer_acpi.c:53: warning: function declaration isn't a prototype
acer_acpi.c:76: error: expected specifier-qualifier-list before 'u32'
acer_acpi.c:91: error: expected specifier-qualifier-list before 'acpi_handle'
acer_acpi.c: In function 'is_valid_acpi_path':
acer_acpi.c:99: error: 'acpi_handle' undeclared (first use in this function)
acer_acpi.c:99: error: (Each undeclared identifier is reported only once
acer_acpi.c:99: error: for each function it appears in.)
acer_acpi.c:99: error: expected ';' before 'handle'
acer_acpi.c:100: error: 'acpi_status' undeclared (first use in this function)
acer_acpi.c:100: error: expected ';' before 'status'
acer_acpi.c:102: error: 'status' undeclared (first use in this function)
acer_acpi.c:102: warning: implicit declaration of function 'acpi_get_handle'
acer_acpi.c:102: error: 'handle' undeclared (first use in this function)
acer_acpi.c:103: warning: implicit declaration of function 'ACPI_FAILURE'
acer_acpi.c: At top level:
acer_acpi.c:107: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'WMAB_execute'
acer_acpi.c:134: error: expected declaration specifiers or '...' before 'off_t'
acer_acpi.c: In function 'dispatch_read':
acer_acpi.c:139: error: 'off' undeclared (first use in this function)
acer_acpi.c: At top level:
acer_acpi.c:158: error: expected ';', ',' or ')' before '*' token
acer_acpi.c: In function 'read_mled':
acer_acpi.c:185: warning: implicit declaration of function 'sprintf'
acer_acpi.c:185: warning: incompatible implicit declaration of built-in function 'sprintf'
acer_acpi.c: In function 'write_mled':
acer_acpi.c:195: warning: implicit declaration of function 'sscanf'
acer_acpi.c:195: warning: incompatible implicit declaration of built-in function 'sscanf'
acer_acpi.c:197: warning: implicit declaration of function 'memset'
acer_acpi.c:197: warning: incompatible implicit declaration of built-in function 'memset'
acer_acpi.c:198: error: 'WMAB_args' has no member named 'eax'
acer_acpi.c:199: error: 'WMAB_args' has no member named 'ebx'
acer_acpi.c:200: warning: implicit declaration of function 'WMAB_execute'
acer_acpi.c:202: error: 'EINVAL' undeclared (first use in this function)
acer_acpi.c: In function 'read_bt':
acer_acpi.c:213: warning: incompatible implicit declaration of built-in function 'sprintf'
acer_acpi.c: In function 'write_bt':
acer_acpi.c:223: warning: incompatible implicit declaration of built-in function 'sscanf'
acer_acpi.c:225: warning: incompatible implicit declaration of built-in function 'memset'
acer_acpi.c:226: error: 'WMAB_args' has no member named 'eax'
acer_acpi.c:227: error: 'WMAB_args' has no member named 'ebx'
acer_acpi.c:230: error: 'EINVAL' undeclared (first use in this function)
acer_acpi.c: In function 'read_wlan':
acer_acpi.c:241: warning: incompatible implicit declaration of built-in function 'sprintf'
acer_acpi.c: In function 'write_wlan':
acer_acpi.c:251: warning: incompatible implicit declaration of built-in function 'sscanf'
acer_acpi.c:253: warning: incompatible implicit declaration of built-in function 'memset'
acer_acpi.c:254: error: 'WMAB_args' has no member named 'eax'
acer_acpi.c:255: error: 'WMAB_args' has no member named 'ebx'
acer_acpi.c:257: warning: implicit declaration of function 'printk'
acer_acpi.c:257: error: 'KERN_INFO' undeclared (first use in this function)
acer_acpi.c:257: error: expected ')' before string constant
acer_acpi.c:259: error: 'EINVAL' undeclared (first use in this function)
acer_acpi.c: In function 'read_version':
acer_acpi.c:267: warning: incompatible implicit declaration of built-in function 'sprintf'
acer_acpi.c: At top level:
acer_acpi.c:280: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__init'
acer_acpi.c:300: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__exit'
acer_acpi.c:314: error: expected ')' before 'handle'
acer_acpi.c: In function 'acpi_acerkeys_add':
acer_acpi.c:329: error: 'acpi_status' undeclared (first use in this function)
acer_acpi.c:329: error: expected ';' before 'status'
acer_acpi.c:332: error: 'EINVAL' undeclared (first use in this function)
acer_acpi.c:334: warning: implicit declaration of function 'kmalloc'
acer_acpi.c:334: error: 'GFP_KERNEL' undeclared (first use in this function)
acer_acpi.c:336: error: 'ENOMEM' undeclared (first use in this function)
acer_acpi.c:337: warning: incompatible implicit declaration of built-in function 'memset'
acer_acpi.c:338: error: 'struct acer_hotk' has no member named 'handle'
acer_acpi.c:338: error: dereferencing pointer to incomplete type
acer_acpi.c:339: warning: implicit declaration of function 'strcpy'
acer_acpi.c:339: warning: incompatible implicit declaration of built-in function 'strcpy'
acer_acpi.c:339: warning: implicit declaration of function 'acpi_device_name'
acer_acpi.c:339: warning: passing argument 1 of 'strcpy' makes pointer from integer without a cast
acer_acpi.c:340: warning: implicit declaration of function 'acpi_device_class'
acer_acpi.c:340: warning: passing argument 1 of 'strcpy' makes pointer from integer without a cast
acer_acpi.c:341: warning: implicit declaration of function 'acpi_driver_data'
acer_acpi.c:341: error: invalid lvalue in assignment
acer_acpi.c:344: error: 'status' undeclared (first use in this function)
acer_acpi.c:344: warning: implicit declaration of function 'acpi_install_notify_handler'
acer_acpi.c:344: error: 'struct acer_hotk' has no member named 'handle'
acer_acpi.c:344: error: 'ACPI_SYSTEM_NOTIFY' undeclared (first use in this function)
acer_acpi.c:345: error: 'acer_acerkeys_notify' undeclared (first use in this function)
acer_acpi.c:347: error: 'KERN_ERR' undeclared (first use in this function)
acer_acpi.c:347: error: expected ')' before string constant
acer_acpi.c: In function 'acpi_acerkeys_remove':
acer_acpi.c:354: error: 'acpi_status' undeclared (first use in this function)
acer_acpi.c:354: error: expected ';' before 'status'
acer_acpi.c:358: error: 'EINVAL' undeclared (first use in this function)
acer_acpi.c:361: error: 'status' undeclared (first use in this function)
acer_acpi.c:361: warning: implicit declaration of function 'acpi_remove_notify_handler'
acer_acpi.c:361: error: 'struct acer_hotk' has no member named 'handle'
acer_acpi.c:361: error: 'ACPI_SYSTEM_NOTIFY' undeclared (first use in this function)
acer_acpi.c:362: error: 'acer_acerkeys_notify' undeclared (first use in this function)
acer_acpi.c:364: error: 'KERN_ERR' undeclared (first use in this function)
acer_acpi.c:364: error: expected ')' before string constant
acer_acpi.c:365: warning: implicit declaration of function 'kfree'
acer_acpi.c: At top level:
acer_acpi.c:370: error: variable 'acpi_acerkeys' has initializer but incomplete type
acer_acpi.c:371: error: unknown field 'name' specified in initializer
acer_acpi.c:371: warning: excess elements in struct initializer
acer_acpi.c:371: warning: (near initialization for 'acpi_acerkeys')
acer_acpi.c:372: error: unknown field 'class' specified in initializer
acer_acpi.c:372: warning: excess elements in struct initializer
acer_acpi.c:372: warning: (near initialization for 'acpi_acerkeys')
acer_acpi.c:373: error: unknown field 'ids' specified in initializer
acer_acpi.c:373: warning: excess elements in struct initializer
acer_acpi.c:373: warning: (near initialization for 'acpi_acerkeys')
acer_acpi.c:374: error: unknown field 'ops' specified in initializer
acer_acpi.c:374: error: extra brace group at end of initializer
acer_acpi.c:374: error: (near initialization for 'acpi_acerkeys')
acer_acpi.c:377: warning: excess elements in struct initializer
acer_acpi.c:377: warning: (near initialization for 'acpi_acerkeys')
acer_acpi.c:381: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'acer_acpi_init'
acer_acpi.c:430: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'acer_acpi_exit'
acer_acpi.c:441: warning: data definition has no type or storage class
acer_acpi.c:441: warning: type defaults to 'int' in declaration of 'module_init'
acer_acpi.c:441: warning: parameter names (without types) in function declaration
acer_acpi.c:442: warning: data definition has no type or storage class
acer_acpi.c:442: warning: type defaults to 'int' in declaration of 'module_exit'
acer_acpi.c:442: warning: parameter names (without types) in function declaration
make[1]: *** [acer_acpi.o] Error 1
make[1]: Leaving directory `/tmp/buildd/acer-acpi-0.4'
make: *** [build-stamp] Error 2
pbuilder: Failed autobuilding of package
-> Aborting with an error
-> unmounting dev/pts filesystem
-> unmounting proc filesystem
-> cleaning the build env
    -> removing directory /var/cache/pbuilder/build//21656 and its subdirectories


Tracker bittorrent libre : http://www.freetorrent.fr
Blog geek & Libre : https://www.citizenz.info

Hors ligne

#2 Le 07/04/2007, à 12:54

mr_pouit

Re : Creation d'un package : erreur

Bonjour,

mumbly a écrit :

awk: cannot open /lib/modules/2.6.17-11-generic/build/include/linux/utsrelease.h (No such file or directory)

Il doit te manquer une dépendance de compilation. Essaie d'ajouter linux-headers-2.6.17-11-generic à la ligne Build-Depends du debian/control. wink

Hors ligne

#3 Le 07/04/2007, à 13:15

mumbly

Re : Creation d'un package : erreur

Mr_pouit,
Merci ... mais ca marche toujours pas. Même erreur.
Dans mon fichier debian/control j'ai ca :
Build-Depends: debhelper (>= 5), linux-headers-2.6.17-11-generic
... j'ai regardé, je n'ai effectivement pas de fichier /lib/modules/2.6.17-11-generic/build/include/linux/utsrelease.h ...

Dernière modification par mumbly (Le 07/04/2007, à 14:19)


Tracker bittorrent libre : http://www.freetorrent.fr
Blog geek & Libre : https://www.citizenz.info

Hors ligne

#4 Le 07/04/2007, à 16:46

mr_pouit

Re : Creation d'un package : erreur

Bonjour,

Es-tu sûr que ce (module, pilote ?) que tu essaies de compiler est compatible avec ta version du noyau (2.6.17) ? Car chez moi (2.6.20), ce fichier existe.

Hors ligne

#5 Le 07/04/2007, à 17:26

mumbly

Re : Creation d'un package : erreur

Apres un petit tour sur ubuntu-fr-classroom ... ce fichier dans les versions du kernel sous edgy, ce nomme version.h ... mais ca ne solutionne pas le probleme ...
J'essaie maintenant de refaire la manip directement sur mon portable qui possède une feisty beta (donc kernel 2.6.20). mais maintenant, j'ai une erreur de ce type :
mkdir: cannot create directory `/lib/modules/2.6.20-14-generic/extra': Permission denied
c'est con car le reste à l'air de passer ...

Je précise que acer_acpi est DEJA installé (depuis les sources) sur ce portable ... Est-ce que ca viendrait de ca ?

(Un jour, j'y arriverai !!! smile )

[UPDATE] :
je viens de passer ma machine de Edgy à Feisty ... j'ai reproduit la manip et ... meme erreur :
mkdir: cannot create directory `/lib/modules/2.6.20-14-generic/extra': Permission denied
(Un jour, j'y arriverai ! {bis} )

Dernière modification par mumbly (Le 07/04/2007, à 22:06)


Tracker bittorrent libre : http://www.freetorrent.fr
Blog geek & Libre : https://www.citizenz.info

Hors ligne

#6 Le 08/04/2007, à 19:11

mumbly

Re : Creation d'un package : erreur

J'ai fait un petit essai avec un autre soft ...
et je me retrouve avec le meme style d'erreur :
Au moment du make :
make: *** /lib/modules/2.6.20-14-generic/build: No such file or directory.  Stop.
make: Leaving an unknown directory
make[1]: *** [default] Error 2

Aurais-je loupé un truc ??????????
Je suis pourtant à la lettre le tuto en ligne sur ubuntu-fr.org (http://doc.ubuntu-fr.org/tutoriel/creer_un_paquet?s=packaging)

Merci de m'éclairer un peu !!!! big_smile


Tracker bittorrent libre : http://www.freetorrent.fr
Blog geek & Libre : https://www.citizenz.info

Hors ligne