Building pyxpcom from hg tip fails

UNCONFIRMED
Unassigned

Status

Other Applications
PyXPCOM
UNCONFIRMED
6 years ago
6 years ago

People

(Reporter: oyvind.saltvik, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

6 years ago
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.57 Safari/536.11

Steps to reproduce:

wget http://ftp.mozilla.org/pub/mozilla.org/xulrunner/releases/10.0.2/sdk/xulrunner-10.0.2.en-US.linux-x86_64.sdk.tar.bz2
or
wget http://ftp.mozilla.org/pub/mozilla.org/xulrunner/releases/10.0.2/sdk/xulrunner-10.0.2.en-US.linux-i686_64.sdk.tar.bz2
mv xulrunner* xulrunner.tar.bz2
tar xjvf xulrunner.tar.bz2
XUL_PATH=`pwd`/xulrunner-sdk/
sudo apt-get install gcc g++ autoconf2.13 python-dev zip mercurial
# on lucid lynx gcc and g++ 4.4.3
hg clone http://hg.mozilla.org/pyxpcom src
cd src;  autoconf2.13; cd ..
mkdir build; cd build
../src/configure --with-libxul-sdk=$XUL_PATH
# flags for less failures
make CXXFLAGS='-std=c++0x -Wno-write-strings'


Actual results:

PYTHON_SO was not declared in this scope


Expected results:

Build success
(Reporter)

Comment 1

6 years ago
Also tried on ubuntu precise with gcc and g++ 4.6.+ with more failures
(Reporter)

Comment 2

6 years ago
Working build on Ubuntu Lucid

   
    sudo apt-get install wget gcc g++ autoconf2.13 python-dev zip mercurial
    
    uname -m
    wget http://ftp.mozilla.org/pub/mozilla.org/xulrunner/releases/10.0.2/sdk/xulrunner-10.0.2.en-US.linux-x86_64.sdk.tar.bz2
    or
    wget http://ftp.mozilla.org/pub/mozilla.org/xulrunner/releases/10.0.2/sdk/xulrunner-10.0.2.en-US.linux-i686_64.sdk.tar.bz2
    
    mv xulrunner* xulrunner.tar.bz2
    tar xjvf xulrunner.tar.bz2
    XUL_PATH=`pwd`/xulrunner-sdk/
    
    hg clone http://hg.mozilla.org/pyxpcom src
    cd src;  autoconf2.13; cd ..
    mkdir build; cd build
    ../src/configure --with-libxul-sdk=$XUL_PATH --prefix=/usr
    
    # on lucid lynx gcc and g++ 4.4.3
    # flags for successful build
    make CXXFLAGS='-std=c++0x -Wno-write-strings -DPYTHON_SO=\"libpython2.6.so\"'
    sed -i -e 's/site-packages/dist-packages/' xpcom/Makefile
    cd xpcom; sudo make install
You need to log in before you can comment on or make changes to this bug.