<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi,<div><br></div><div>I'm trying to build python module pybsddb3-6.1.0 from source but it is failing due to an unrecognized option (-R) to gcc compile. Does anyone have ideas on how to resolve this? Thanks.</div><div><br></div><div>My environment:</div><div><br></div><div>OS: SuSE Enterprise Linux 11</div><div>Python version: 2.7.5</div><div>GCC version: 4.7.2</div><div>Oracle Berkeley DB version: 6.1</div><div><br></div><div>My command: <span style="font-size: 12pt;">python setup.py --berkeley-db=/nfs/pdx/proj/dt/tctg04/pgupta6/local build</span></div><div><br></div><div><div>Trying to use the Berkeley DB you specified...</div><div>Detected Berkeley DB version 6.1 from db.h</div><div>running build</div><div>running build_py</div><div><br></div><div>running build_ext</div><div>building 'bsddb3._pybsddb' extension</div><div><div><br></div><div>/usr/pkgs/gcc/4.7.2/bin/gcc -O2 -fPIC -I/usr/pkgs/python/2.7.5/include -L/usr/pkgs/python/2.7.5/lib64 -L/usr/pkgs/python/2.7.5/lib -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I/nfs/pdx/proj/dt/tctg04/pgupta6/local/include -I/usr/pkgs/python/2.7.5/include/python2.7 -c Modules/_bsddb.c -o build/temp.linux-x86_64-2.7/Modules/_bsddb.o</div><div>/usr/pkgs/gcc/4.7.2/bin/gcc -O2 -fPIC -I/usr/pkgs/python/2.7.5/include -L/usr/pkgs/python/2.7.5/lib64 -L/usr/pkgs/python/2.7.5/lib -pthread -shared -O2 -fPIC -L/usr/pkgs/python/2.7.5/lib64 -L/usr/pkgs/python/2.7.5/lib -Wl,--rpath -Wl,/usrpkgs/python/2.7.5/lib64:/usr/pkgs/python/2.7.5/lib:/usr/pkgs/python/2.7.5/lib64:/usr/pkgs/python/2.7.5/lib:/usr/pkgs/python/2.7.5/lib:/usr/pkgs/python/2.7.5/lib64:/usr/pkgs/tcl-tk/8.5.8-64/lib64: build/temp.linux-x86_64-2.7/Modules/_bsddb.o -L/nfs/pdx/proj/dt/tctg04/pgupta6/local/lib -L/usr/pkgs/python/2.7.5/lib -R/nfs/pdx/proj/dt/tctg04/pgupta6/local/lib -ldb -lpython2.7 -o build/lib.linux-x86_64-2.7/bsddb3/_pybsddb.so</div><div>gcc: error: unrecognized option ‘-R’</div><div>error: command '/usr/pkgs/gcc/4.7.2/bin/gcc' failed with exit status 1</div></div></div><div><br></div><div>Kind regards,</div><div>pallav</div> </div></body>
</html>