wmaillard / shellinabox

Automatically exported from code.google.com/p/shellinabox
Other
0 stars 0 forks source link

shellinabox-2.10 won't build on mipsel (Debian squeeze) #132

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
On mipsel:
1. Download and extract package
2. Install builddeps
3. Run `dpkg-buildpackage`

What is the expected output? What do you see instead?
Expecting a .deb package, getting a build error (see below or attachment). 

What version of the product are you using? On what operating system?
shellinabox-2.10, Debian squeeze. The system is a mipsel Buffalo LinkStation. 
See http://buffalo.nas-central.org/wiki/Category:LS2

Please provide any additional information below.
Attached is a typescript of a failed build. The build output ends with the 
following:

/usr/bin/ld:shellinabox/cgi_root.o: file format not recognized; treating as 
linker script
/usr/bin/ld:shellinabox/cgi_root.o:1: syntax error
collect2: ld returned 1 exit status
make[2]: *** [shellinaboxd] Error 1
make[2]: Leaving directory `/tmp/shellinabox-2.10'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/tmp/shellinabox-2.10'
make: *** [build-stamp] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2

Original issue reported on code.google.com by hannu.ha...@gmail.com on 18 Aug 2011 at 3:30

Attachments:

GoogleCodeExporter commented 8 years ago
It seems to me that on mipsel, cgi_root.html gets copied to cgi_root.o and ld 
fails on realizing that it's no ELF file. On amd64, cgi_root.o is basically 
cgi_root.html with an ELF header, and the build succeeds.

I know basically nothing about automake/autoconf so I haven't yet figured out 
why this is happening or how it can be fixed.

Original comment by hannu.ha...@gmail.com on 18 Aug 2011 at 3:38

GoogleCodeExporter commented 8 years ago
Same build error happens when building 2.10 on s390x on SUSE Linux Enterprise 
Server 11.

Original comment by austinro...@gmail.com on 25 Aug 2011 at 6:15

GoogleCodeExporter commented 8 years ago
I got it to build on my architecture by adding an object copy flag to my 
Makefile. (See attached file) Perhaps you could add a line to match the mipsel 
arch? Maybe something like:

mipsel)    echo '-O elf64-mipsel -B mipsel';;             \

Not sure if that's right. I think its close though.

Original comment by austinro...@gmail.com on 25 Aug 2011 at 7:11

Attachments:

GoogleCodeExporter commented 8 years ago
There is another report like this.  I believe that the problem has been fixed 
with an update to the autotools.  Should be working in 2.11.

Original comment by beewoo...@gmail.com on 31 Mar 2012 at 10:40