Closed Bug 778498 Opened 12 years ago Closed 6 years ago

Building pyxpcom from hg tip fails

Categories

(Other Applications Graveyard :: PyXPCOM, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: oyvind.saltvik, Unassigned)

Details

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
Also tried on ubuntu precise with gcc and g++ 4.6.+ with more failures
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
Component is obsolete so resolving bugs as INCOMPLETE[B
Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Resolution: --- → INCOMPLETE
Product: Other Applications → Other Applications Graveyard
You need to log in before you can comment on or make changes to this bug.