[pybsddb] Building pybsdbb3-6.1.0 fails due to unrecognized -R option to gcc

Pallav Gupta drpallavgupta at hotmail.com
Fri Sep 25 20:56:34 CEST 2015


Hi,
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.
My environment:
OS: SuSE Enterprise Linux 11Python version: 2.7.5GCC version: 4.7.2Oracle Berkeley DB version: 6.1
My command:  python setup.py --berkeley-db=/nfs/pdx/proj/dt/tctg04/pgupta6/local build
Trying to use the Berkeley DB you specified...Detected Berkeley DB version 6.1 from db.hrunning buildrunning build_py
running build_extbuilding 'bsddb3._pybsddb' extension
/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/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.sogcc: error: unrecognized option ‘-R’error: command '/usr/pkgs/gcc/4.7.2/bin/gcc' failed with exit status 1
Kind regards,pallav 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.jcea.es/pipermail/pybsddb/attachments/20150925/774474b7/attachment.html>


More information about the pybsddb mailing list