Opened 6 years ago

Closed 23 months ago

#10197 closed defect (moved_to_github)

Python fails to build under linux 3.0.0

Reported by: Cybjit <cybjit@…> Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: packages Version: Trunk
Keywords: Cc:


The Python build makes some assumptions about Linux version, see upstream:

Failed to find the necessary bits to build these modules:
_bsddb             _hashlib           _tkinter        
bsddb185           bz2                dbm             
dl                 imageop            linuxaudiodev   
ossaudiodev        sunaudiodev                        
To find the necessary bits, look in in detect_modules() for the module's name.

Failed to build these modules:

mkdir ./Lib/plat-linux3
cp ./Lib/plat-generic/regen ./Lib/plat-linux3/regen
export PATH; PATH="`pwd`:$PATH"; \
	export PYTHONPATH; PYTHONPATH="`pwd`/Lib"; \
	export EXE; EXE=""; \
	cd ./Lib/plat-linux3;  ./regen
python$EXE ../../Tools/scripts/ -i '(u_long)' /usr/include/netinet/in.h
/home/cybjit/backfire/build_dir/target-mips_r2_uClibc- 1: Syntax error: "(" unexpected
make[3]: *** [Lib/plat-linux3] Error 2
make[3]: Leaving directory `/home/cybjit/backfire/build_dir/target-mips_r2_uClibc-'
make[2]: *** [/home/cybjit/backfire/build_dir/target-mips_r2_uClibc-] Error 2
make[2]: Leaving directory `/home/cybjit/packages/lang/python'
make[1]: *** [package/feeds/packages/python/compile] Error 2
make[1]: Leaving directory `/home/cybjit/backfire'
make: *** [package/python/compile] Error 2

Attachments (1)

python-linux3.diff (709 bytes) - added by Cybjit <cybjit@…> 6 years ago.
linux3 => linux2

Download all attachments as: .zip

Change History (7)

Changed 6 years ago by Cybjit <cybjit@…>

linux3 => linux2

comment:1 Changed 6 years ago by nico

  • Milestone changed from Backfire 10.03.1 to Attitude Adjustment (trunk)
  • Version changed from Backfire 10.03.1 RC5 to Trunk

comment:2 follow-up: Changed 6 years ago by anonymous

Yes! This patch works ;-)

Now python builds fine from a clean state ;-)

comment:3 Changed 6 years ago by jow

  • Resolution set to fixed
  • Status changed from new to closed

Patch added in r29369 - thank you!

comment:4 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

comment:5 in reply to: ↑ 2 Changed 23 months ago by anonymous

  • Resolution fixed deleted
  • Status changed from closed to reopened

i am getting thsi error while cross compiling
python$EXE ../../Tools/scripts/ -i '(u_long)' /usr/include/netinet/in.h
/home/durga/Python-2.7.1/python: 1: /home/durga/Python-2.7.1/python: Syntax error: word unexpected (expecting ")")
make: * [Lib/plat-linux4] Error 2

whats the solution for this ...

comment:6 Changed 23 months ago by hauke

  • Resolution set to moved_to_github
  • Status changed from reopened to closed

Python is not maintained in core OpenWrt any more, please open a ticket against the OpenWrt package feed at gitbub: Add some more information like a longer context of the error message and which OpenWrt version you are using.

Add Comment

Modify Ticket

as closed .
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.