Bug#640676: dpkg-dev: Can't call method "isa" on an undefined value at /usr/bin/dpkg-shlibdeps line 567.

September 06th, 2011 - 10:10 am ET by Mathieu Malaterre | Report spam
Package: dpkg-dev
Version: 1.15.8.11
Severity: normal


Hi,

I am getting this bizarre message:

Can't call method "isa" on an undefined value at /usr/bin/dpkg-shlibdeps line 567.

When trying to build gdcm using the following rules files:
-
#!/usr/bin/make -f

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

%:
dh $@ --parallel

# Mono is not available for all Debian architectures.
DEB_WRAP_CSHARP = 1
ifneq (,$(filter m68k alpha hppa mips mipsel ,$(DEB_BUILD_ARCH)))
DEB_WRAP_CSHARP = 0
SKIP_ME = -Xsharp
endif

PYVER = $(shell pyversions -dv)
extra_flags += -DCMAKE_SKIP_RPATH=ON \
-DGDCM_NO_EXECUTABLE_PROPERTIES=ON \
-DCMAKE_VERBOSE_MAKEFILE=$(DH_VERBOSE) \
-DGDCM_BUILD_APPLICATIONS=ON \
-DGDCM_DOCUMENTATION:BOOL=ON \
-DGDCM_PDF_DOCUMENTATION:BOOL=OFF \
-DGDCM_BUILD_SHARED_LIBS=ON \
-DGDCM_WRAP_PYTHON=ON \
-DGDCM_WRAP_CSHARP=$(DEB_WRAP_CSHARP) \
-DGDCM_WRAP_JAVA=ON \
-DGDCM_USE_PVRG=ON \
-DGDCM_USE_SYSTEM_PVRG=ON \
-DGMCS_EXECUTABLE:FILEPATH=/usr/bin/mono-csc \
-DGDCM_BUILD_TESTING:BOOL=OFF \
-DCMAKE_BUILD_TYPE:STRING=Release \
-DGDCM_USE_SYSTEM_EXPAT:BOOL=ON \
-DGDCM_USE_SYSTEM_UUID:BOOL=ON \
-DGDCM_USE_SYSTEM_ZLIB:BOOL=ON \
-DGDCM_USE_SYSTEM_OPENJPEG:BOOL=ON \
-DGDCM_USE_SYSTEM_OPENSSL:BOOL=ON \
-DGDCM_USE_SYSTEM_CHARLS:BOOL=ON \
-DGDCM_USE_SYSTEM_POPPLER:BOOL=ON \
-DGDCM_USE_PARAVIEW:BOOL=OFF \
-DGDCM_VTK_JAVA_JAR:FILEPATH=/usr/share/java/vtk.jar \
-DGDCM_USE_VTK:BOOL=ON

override_dh_auto_configure:
dh_auto_configure -- $(extra_flags)

build-indep:
$(MAKE) GDCMDoxygenDoc

build-arch:
$(MAKE)
-

Logs is:
...
python-support (>= 0.5.3)
dpkg-shlibdeps: warning: diversions involved - output may be incorrect
diversion by glx-diversions from: /usr/lib/libGL.so.1
dpkg-shlibdeps: warning: diversions involved - output may be incorrect
diversion by glx-diversions to: /usr/lib/mesa-diverted/libGL.so.1
Can't call method "isa" on an undefined value at /usr/bin/dpkg-shlibdeps line 567.
dh_shlibdeps: dpkg-shlibdeps -Tdebian/libvtkgdcm2.0.substvars debian/libvtkgdcm2.0/usr/lib/libvtkgdcm.so.2.0.18 returned exit code 2
make: *** [binary-arch] Error 9


Thanks

Debian Release: 6.0.1
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable'), (200, 'testing'), (100, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.0.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages dpkg-dev depends on:
ii base-files 6.0squeeze1 Debian base system miscellaneous f
ii binutils 2.20.1-16 The GNU assembler, linker and bina
ii bzip2 1.0.5-6 high-quality block-sorting file co
ii libdpkg-perl 1.15.8.11 Dpkg perl modules
ii make 3.81-8.1 An utility for Directing compilati
ii patch 2.6-2 Apply a diff file to an original
ii xz-utils 5.0.0-2 XZ-format compression utilities

Versions of packages dpkg-dev recommends:
ii build-essential 11.5 Informational list of build-essent
ii fakeroot 1.14.4-1 Gives a fake root environment
ii gcc [c-compiler] 4:4.4.5-1 The GNU C compiler
ii gcc-4.4 [c-compiler] 4.4.6-7 GNU C compiler
ii gcc-4.5 [c-compiler] 4.5.3-4 The GNU C compiler
ii gnupg 1.4.10-4 GNU privacy guard - a free PGP rep
ii gpgv 1.4.10-4 GNU privacy guard - signature veri
ii libalgorithm-merge-perl 0.08-2 Perl module for three-way merge of

Versions of packages dpkg-dev suggests:
ii debian-keyring 2010.12.29 GnuPG keys of Debian Developers




To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
email Follow the discussionReplies 1 replyReplies Make a reply

Replies

#1 Raphael Hertzog
September 13th, 2011 - 05:40 am ET | Report spam

tag 640676 + patch
thanks

On Tue, 06 Sep 2011, Mathieu Malaterre wrote:
I am getting this bizarre message:

Can't call method "isa" on an undefined value at /usr/bin/dpkg-shlibdeps line 567.



From a quick analysis, this means that your Build-Depends line is somehow
broken. And your log should give your a hint with a warning
"can't parse dependency".

Can you attach your debian/control file ?

If my analysis is correct, I would suggest to fail earlier with a clearer
error message like in the attached patch.

Cheers,
Raphaël Hertzog ◈ Debian Developer

Follow my Debian News ▶ http://RaphaelHertzog.com (English)
▶ http://RaphaelHertzog.fr (Français)


diff --git a/scripts/dpkg-shlibdeps.pl b/scripts/dpkg-shlibdeps.pl
index c91dc8c..e28e6c1 100755
a/scripts/dpkg-shlibdeps.pl
+++ b/scripts/dpkg-shlibdeps.pl
@@ -136,6 +136,7 @@ my $fields = $control->get_source();
my $build_depends = defined($fields->{"Build-Depends"}) ?
$fields->{"Build-Depends"} : "";
my $build_deps = deps_parse($build_depends, reduce_arch => 1);
+error(_("failed to parse the Build-Depends field")) unless defined $build_deps;

my %dependencies;
my %shlibs;




To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact

Similar topics