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 27/02/2007, à 19:33

quovadis

[résolu]pbuilder: Failed autobuilding of package

Bonsoir,

Dans ma quète de création d'un paquet, je galère un peu ...

Pbuilder =>

perso@heptameron:~/dl/p1$ sudo pbuilder build *dsc
I: using fakeroot in build.
pbuilder-buildpackage/i386 $Id: pbuilder-buildpackage-funcs,v 1.28 2005/12/21 11 :57:29 dancer Exp $
$Id: pbuilder-buildpackage,v 1.120 2006/01/06 12:30:51 dancer Exp $

Current time: Tue Feb 27 19:23:04 CET 2007
pbuilder-time-stamp: 1172600584
Building the build Environment
 -> extracting base tarball [/var/cache/pbuilder/base.tgz]
 -> creating local configuration
 -> copying local configuration
 -> mounting /proc filesystem
ln: creating symbolic link `/var/cache/pbuilder/build//21350/etc/mtab' to `../pr oc/mounts': File exists
 -> mounting /dev/pts filesystem
 -> policy-rc.d already exists
 -> created buildresult dir :/var/cache/pbuilder/result/
Obtaining the cached apt archive contents
Installing the build-deps
 -> Attempting to parse the build-deps : pbuilder-satisfydepends,v 1.22 2005/12/ 04 05:16:40 dancer Exp $
 -> Considering  debhelper (>= 4.0.0)
   -> Trying debhelper
 -> Installing  debhelper
Reading package lists... Done
Building dependency tree... Done
The following extra packages will be installed:
  debconf-utils 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:
  debconf-utils debhelper file gettext html2text intltool-debian libmagic1
  po-debconf
0 upgraded, 8 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/2204kB of archives.
After unpacking 9282kB of additional disk space will be used.
Selecting previously deselected package libmagic1.
(Reading database ... 12890 files and directories currently installed.)
Unpacking libmagic1 (from .../libmagic1_4.16-0ubuntu3_i386.deb) ...
Selecting previously deselected package file.
Unpacking file (from .../file_4.16-0ubuntu3_i386.deb) ...
Selecting previously deselected package debconf-utils.
Unpacking debconf-utils (from .../debconf-utils_1.4.72ubuntu9_all.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.14.5-2ubuntu3_i386.deb) ...
Selecting previously deselected package intltool-debian.
Unpacking intltool-debian (from .../intltool-debian_0.34.1+20050828ubuntu1_all.d eb) ...
Selecting previously deselected package po-debconf.
Unpacking po-debconf (from .../po-debconf_0.9.2_all.deb) ...
Selecting previously deselected package debhelper.
Unpacking debhelper (from .../debhelper_5.0.7ubuntu13_all.deb) ...
Setting up libmagic1 (4.16-0ubuntu3) ...

Setting up file (4.16-0ubuntu3) ...
Setting up debconf-utils (1.4.72ubuntu9) ...

Setting up html2text (1.3.2a-3) ...

Setting up gettext (0.14.5-2ubuntu3) ...

Setting up intltool-debian (0.34.1+20050828ubuntu1) ...
Setting up po-debconf (0.9.2) ...
Setting up debhelper (5.0.7ubuntu13) ...
 -> Finished parsing the build-deps
Reading package lists... Done
Building dependency tree... 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/93.8kB of archives.
After unpacking 385kB of additional disk space will be used.
Selecting previously deselected package fakeroot.
(Reading database ... 13426 files and directories currently installed.)
Unpacking fakeroot (from .../fakeroot_1.5.6ubuntu2_i386.deb) ...
Setting up fakeroot (1.5.6ubuntu2) ...

Copying back the cached apt archive contents
/var/cache/pbuilder/build/21350/etc/passwd
/var/cache/pbuilder/build/21350/etc/group
Copying source file
    -> copying [leap_1.2.6.1-1-0ubuntu1.dsc]
    -> copying [./leap_1.2.6.1-1-0ubuntu1.tar.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: extracting leap in leap-1.2.6.1-1
dpkg-source: unpacking leap_1.2.6.1-1-0ubuntu1.tar.gz
 -> Building the package
su: Authentication service cannot retrieve authentication info.
(Ignored)
dpkg-parsechangelog: warning: no utmp entry available and LOGNAME not defined; u sing uid of process (1234)
debian: warning: no utmp entry available and LOGNAME not defined; using uid of p rocess (1234)
dpkg-buildpackage: source package is leap
dpkg-parsechangelog: warning: no utmp entry available and LOGNAME not defined; u sing uid of process (1234)
debian: warning: no utmp entry available and LOGNAME not defined; using uid of p rocess (1234)
dpkg-buildpackage: source version is 1.2.6.1-1-0ubuntu1
dpkg-parsechangelog: warning: no utmp entry available and LOGNAME not defined; u sing uid of process (1234)
debian: warning: no utmp entry available and LOGNAME not defined; using uid of p rocess (1234)
dpkg-buildpackage: source changed by Didier Couffignal <didier.couffignal@free.f r.tld>
dpkg-architecture: warning: no utmp entry available and LOGNAME not defined; usi ng uid of process (1234)
dpkg-architecture: warning: no utmp entry available and LOGNAME not defined; usi ng uid of process (1234)
dpkg-buildpackage: host architecture i386
dpkg-checkbuilddeps: warning: no utmp entry available and LOGNAME not defined; u sing uid of process (1234)
dpkg-architecture: warning: no utmp entry available and LOGNAME not defined; usi ng uid of process (1234)
dpkg-architecture: warning: no utmp entry available and LOGNAME not defined; usi ng 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
make[1]: Entering directory `/tmp/buildd/leap-1.2.6.1-1'
make[1]: *** No rule to make target `clean'.  Stop.
make[1]: Leaving directory `/tmp/buildd/leap-1.2.6.1-1'
make: [clean] Error 2 (ignored)
dh_clean
 dpkg-source -b leap-1.2.6.1-1
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; u sing uid of process (1234)
debian: warning: no utmp entry available and LOGNAME not defined; using uid of p rocess (1234)
dpkg-source: building leap in leap_1.2.6.1-1-0ubuntu1.tar.gz
dpkg-source: building leap in leap_1.2.6.1-1-0ubuntu1.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
make[1]: Entering directory `/tmp/buildd/leap-1.2.6.1-1'
make[1]: *** No targets specified and no makefile found.  Stop.
make[1]: Leaving directory `/tmp/buildd/leap-1.2.6.1-1'
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//21350 and its subdirectorie s

et pour test via checkinstall

erso@heptameron:~/dl/Paquets/leap-1.2.6.1/src$ ./configure
creating cache ./config.cache
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for ranlib... ranlib
checking for dirent.h that defines DIR... yes
checking for opendir in -ldir... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for stdarg.h... yes
checking for working const... yes
checking for size_t... yes
checking return type of signal handlers... void
checking for strstr... yes
checking for strchr... yes
checking for long file names... yes
updating cache ./config.cache
creating ./config.status
creating Makefile
creating include/defines.h
perso@heptameron:~/dl/Paquets/leap-1.2.6.1/src$ make
gcc -c -DHAVE_CONFIG_H -I. -I./include -g -O2   attribs.c
gcc -c -DHAVE_CONFIG_H -I. -I./include -g -O2   cond.c
gcc -c -DHAVE_CONFIG_H -I. -I./include -g -O2   database.c
gcc -c -DHAVE_CONFIG_H -I. -I./include -g -O2   dbase.c
gcc -c -DHAVE_CONFIG_H -I. -I./include -g -O2   errors.c
errors.c: Dans la fonction «default_quiethandler» :
errors.c:149: attention : incompatible implicit declaration of built-in function  «strcpy»
errors.c:151: attention : incompatible implicit declaration of built-in function  «strcpy»
errors.c:156: attention : incompatible implicit declaration of built-in function  «strcpy»
errors.c:173: attention : incompatible implicit declaration of built-in function  «exit»
errors.c: Dans la fonction «default_handler» :
errors.c:184: attention : incompatible implicit declaration of built-in function  «strcpy»
errors.c:209: attention : incompatible implicit declaration of built-in function  «exit»
gcc -c -DHAVE_CONFIG_H -I. -I./include -g -O2   globals.c
gcc -c -DHAVE_CONFIG_H -I. -I./include -g -O2   hashing.c
gcc -c -DHAVE_CONFIG_H -I. -I./include -g -O2   info.c
gcc -c -DHAVE_CONFIG_H -I. -I./include -g -O2   leapio.c
leapio.c: Dans la fonction «leap_fprintf» :
leapio.c:111: attention : incompatible implicit declaration of built-in function  «strlen»
leapio.c: Dans la fonction «leap_printf» :
leapio.c:142: attention : incompatible implicit declaration of built-in function  «strlen»
gcc -c -DHAVE_CONFIG_H -I. -I./include -g -O2   p_stack.c
gcc -c -DHAVE_CONFIG_H -I. -I./include -g -O2   parser.c
gcc -c -DHAVE_CONFIG_H -I. -I./include -g -O2   regexp.c
regexp.c: Dans la fonction «regcomp» :
regexp.c:216: erreur: conflicting types for «malloc»
make: *** [regexp.o] Erreur 1
perso@heptameron:~/dl/Paquets/leap-1.2.6.1/src$ sudo checkinstall

checkinstall 1.6.0, Copyright 2002 Felipe Eduardo Sanchez Diaz Duran
           This software is released under the GNU GPL.


The package documentation directory ./doc-pak does not exist.
Should I create a default set of package docs?  [y]:

Preparing package documentation...OK

Please write a description for the package.
End your description with an empty line or EOF.
>>

*****************************************
**** Debian package creation selected ***
*****************************************

*** Warning: The package version "" does not
*** Warning: contain any digits. dpkg might not like that.

This package will be built according to these values:

0 -  Maintainer: [ root@heptameron ]
1 -  Summary: [ Package created with checkinstall 1.6.0 ]
2 -  Name:    [ src ]
3 -  Version: [  ]
4 -  Release: [ 1 ]
5 -  License: [ GPL ]
6 -  Group:   [ checkinstall ]
7 -  Architecture: [ i386 ]
8 -  Source location: [ src ]
9 -  Alternate source location: [  ]
10 - Requires: [  ]

Enter a number to change any of them or press ENTER to continue:

Installing with make install...

========================= Installation results ===========================
Installing LEAP...
./leap --configure ../scripts/install.src
make: ./leap : commande introuvable
make: *** [actinstall] Erreur 127

****  Installation failed. Aborting package creation.

Cleaning up...OK

Bye.


Un peu d'aide SVP

@ vous lire 

QVD

Dernière modification par quovadis (Le 28/02/2007, à 19:00)

Hors ligne

#2 Le 27/02/2007, à 20:07

quovadis

Re : [résolu]pbuilder: Failed autobuilding of package

Re,

J'a iaussi ce mesage qui me laisse perplexe :

Currently there is no top level Makefile. This may require additional tuning.
Done. Please edit the files in the debian/ subdirectory now. You should also
check that the leap Makefiles install into $DESTDIR and not in / .

@ vous lire

QVD

Hors ligne

#3 Le 27/02/2007, à 21:33

quovadis

Re : [résolu]pbuilder: Failed autobuilding of package

Bonsoir,

Voci le debian rules

#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of dh-make.

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1




CFLAGS = -Wall -g

ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
        CFLAGS += -O0
else
        CFLAGS += -O2
endif

configure: configure-stamp
configure-stamp:
        dh_testdir
        # Add here commands to configure the package.

        touch configure-stamp


build: build-stamp

build-stamp: configure-stamp
        dh_testdir

        # Add here commands to compile the package.
        $(MAKE)
        #docbook-to-man debian/leap.sgml > leap.1

        touch build-stamp

clean:
        dh_testdir
        dh_testroot
        rm -f build-stamp configure-stamp

        # Add here commands to clean up after the build process.
        -$(MAKE) clean

        dh_clean

install: build
        dh_testdir
        dh_testroot
        dh_clean -k
        dh_installdirs

        # Add here commands to install the package into debian/leap.
        $(MAKE) install DESTDIR=$(CURDIR)/debian/leap


# Build architecture-independent files here.
binary-indep: build install
# We have nothing to do by default.

# Build architecture-dependent files here.
binary-arch: build install
        dh_testdir
        dh_testroot
        dh_installchangelogs
        dh_installdocs
        dh_installexamples
#       dh_install
#       dh_installmenu
#       dh_installdebconf
#       dh_installlogrotate
#       dh_installemacsen
#       dh_installpam
#       dh_installmime
#       dh_installinit
#       dh_installcron
#       dh_installinfo
        dh_installman
        dh_link
        dh_strip
        dh_compress
        dh_fixperms
#       dh_perl
#       dh_python
#       dh_makeshlibs
        dh_installdeb
        dh_shlibdeps
        dh_gencontrol
        dh_md5sums
        dh_builddeb

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install configure

L'origine du tarball

http://leap.sourceforge.net/

@ vous lire

Hors ligne

#4 Le 27/02/2007, à 21:47

quovadis

Re : [résolu]pbuilder: Failed autobuilding of package

Le make classique


perso@heptameron:~/dl/p2/leap-1.2.6.1/src$ make
gcc -c -DHAVE_CONFIG_H -I. -I./include -g -O2   regexp.c
regexp.c: Dans la fonction «regcomp» :
regexp.c:216: erreur: conflicting types for «malloc»
make: *** [regexp.o] Erreur 1

@ +

QVD

Hors ligne

#5 Le 27/02/2007, à 21:51

quovadis

Re : [résolu]pbuilder: Failed autobuilding of package

Re,,


perso@heptameron:~/dl/p2/leap-1.2.6.1/src$ sudo aptitude search libc6-dev
i A libc6-dev                       - GNU C Library: Development Libraries and H

perso@heptameron:~/dl/p2/leap-1.2.6.1/src$ sudo aptitude search build
p   apt-build                        - frontend to apt to build, optimize and ins
p   arch-buildpackage               - tools for maintaining Debian packages usin
p   artsbuilder                     - synthesizer designer for aRts
p   boost-build                     - Build system
i   build-essential                 - informational list of build-essential pack


@+

QVD

Hors ligne

#6 Le 27/02/2007, à 22:12

quovadis

Re : [résolu]pbuilder: Failed autobuilding of package

Bon,

Après quelques recherches et l'aide précieuse de Lut!n (ou le Lut!n ?), il faut changer char par void dans /src/regexp.c (ligne 216).
./configure && make se font sans soucis
make install doit de faire via sudo

CQFD

QVD

Dernière modification par quovadis (Le 28/02/2007, à 19:02)

Hors ligne