#1 pyjack fails to compile

closed
nobody
None
5
2014-12-11
2010-04-20
Anonymous
No

pyjack 0.4

The file failed to compile - I changed one of the type of one variable and recompiled. Got it working but it failed when importing - see output below for info on the errors.

grassy@studio:~/Downloads/pyjack-0.4$ sudo checkinstall sudo python setup.py install

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

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

This package will be built according to these values:

0 - Maintainer: [ root@studio ]
1 - Summary: [ jack audio client module for python ]
2 - Name: [ pyjack ]
3 - Version: [ 0.4 ]
4 - Release: [ 1 ]
5 - License: [ GPL ]
6 - Group: [ checkinstall ]
7 - Architecture: [ amd64 ]
8 - Source location: [ pyjack-0.4 ]
9 - Alternate source location: [ ]
10 - Requires: [ ]
11 - Provides: [ pyjack ]

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

Installing with sudo...Installing with python...Installing with setup.py...Installing with install...

========================= Installation results ===========================
running install
running build
running build_ext
building 'jack' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.6 -c pyjack.c -o build/temp.linux-x86_64-2.6/pyjack.o
pyjack.c: In function ‘get_version_string’:
pyjack.c:896: warning: implicit declaration of function ‘jack_get_version_string’
pyjack.c:896: warning: assignment makes pointer from integer without a cast
pyjack.c: In function ‘get_port_type_id’:
pyjack.c:955: error: ‘jack_port_type_id_t’ undeclared (first use in this function)
pyjack.c:955: error: (Each undeclared identifier is reported only once
pyjack.c:955: error: for each function it appears in.)
pyjack.c:955: error: expected ‘;’ before ‘port_type_id’
pyjack.c:957: error: ‘port_type_id’ undeclared (first use in this function)
pyjack.c:949: warning: unused variable ‘port’
error: command 'gcc' failed with exit status 1

**** Installation failed. Aborting package creation.

Cleaning up...OK

Bye.

========================================
=== changed jack_port_type_id_t to int
========================================

grassy@studio:~/Downloads/pyjack-0.4$ sudo checkinstall sudo python setup.py install

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

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

This package will be built according to these values:

0 - Maintainer: [ root@studio ]
1 - Summary: [ jack audio client module for python ]
2 - Name: [ pyjack ]
3 - Version: [ 0.4 ]
4 - Release: [ 1 ]
5 - License: [ GPL ]
6 - Group: [ checkinstall ]
7 - Architecture: [ amd64 ]
8 - Source location: [ pyjack-0.4 ]
9 - Alternate source location: [ ]
10 - Requires: [ ]
11 - Provides: [ pyjack ]

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

Installing with sudo...Installing with python...Installing with setup.py...Installing with install...

========================= Installation results ===========================
running install
running build
running build_ext
building 'jack' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.6 -c pyjack.c -o build/temp.linux-x86_64-2.6/pyjack.o
pyjack.c: In function ‘get_version_string’:
pyjack.c:896: warning: implicit declaration of function ‘jack_get_version_string’
pyjack.c:896: warning: assignment makes pointer from integer without a cast
pyjack.c: In function ‘get_port_type_id’:
pyjack.c:956: warning: implicit declaration of function ‘jack_port_type_id’
creating build/lib.linux-x86_64-2.6
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions build/temp.linux-x86_64-2.6/pyjack.o -ljack -ldl -o build/lib.linux-x86_64-2.6/jack.so
running install_lib
copying build/lib.linux-x86_64-2.6/jack.so -> /usr/local/lib/python2.6/dist-packages
running install_egg_info
Writing /usr/local/lib/python2.6/dist-packages/pyjack-0.4.egg-info

======================== Installation successful ==========================

Copying documentation directory...
./
./Changelog
./TODO
./LICENSE
./README
cp: cannot stat `//var/tmp/tmp.mvYEW9b37I/newfiles.tmp': No such file or directory
grep: /var/tmp/tmp.mvYEW9b37I/newfile: No such file or directory

Copying files to the temporary directory...OK

Stripping ELF binaries and libraries...OK

Compressing man pages...OK

Building file list...OK

Building Debian package...OK

Installing Debian package...OK

Erasing temporary files...OK

Deleting temp dir...OK

**********************************************************************

Done. The new package has been installed and saved to

/home/grassy/Downloads/pyjack-0.4/pyjack_0.4-1_amd64.deb

You can remove it from your system anytime using:

dpkg -r pyjack

**********************************************************************

grassy@studio:~/Downloads/pyjack-0.4$ ipython
**********************************************************************
Welcome to IPython. I will try to create a personal configuration directory
where you can customize many aspects of IPython's functionality in:

/home/grassy/.ipython
Initializing from configuration: /usr/lib/pymodules/python2.6/IPython/UserConfig

Successful installation!

Please read the sections 'Initial Configuration' and 'Quick Tips' in the
IPython manual (there are both HTML and PDF versions supplied with the
distribution) to make sure that your system environment is properly configured
to take advantage of IPython's features.

Important note: the configuration system has changed! The old system is
still in place, but its setting may be partly overridden by the settings in
"~/.ipython/ipy_user_conf.py" config file. Please take a look at the file
if some of the new settings bother you.

Please press <RETURN> to start IPython.
**********************************************************************
Python 2.6.4 (r264:75706, Dec 7 2009, 18:43:55)
Type "copyright", "credits" or "license" for more information.

IPython 0.10 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object'. ?object also works, ?? prints more.

In [1]: import jack
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)

/home/grassy/Downloads/pyjack-0.4/<ipython console> in <module>()

ImportError: /usr/local/lib/python2.6/dist-packages/jack.so: undefined symbol: jack_get_version_string

In [2]: exit()
Do you really want to exit ([y]/n)?
grassy@studio:~/Downloads/pyjack-0.4$ sudo dpkg -r pyjack
(Reading database ... 160491 files and directories currently installed.)
Removing pyjack ...

Discussion

  • falkTX
    falkTX
    2010-04-21

    The cause is "get_version_string", that is only available in very recent versions of Jack.
    This was disabled on v0.5, so please try it now

     

  • Anonymous
    2010-04-23

    Thanks for fixing - this bug can be closed.

     
  • falkTX
    falkTX
    2010-04-26

    • status: open --> closed