LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   failed to compile aget on squeeze (https://www.linuxquestions.org/questions/debian-26/failed-to-compile-aget-on-squeeze-870611/)

malayo 03-23-2011 09:03 PM

failed to compile aget on squeeze
 
hi, i'm trying to compile aget in 0.4.1 on my debian squeeze 64-bit but it failed:
Code:

root@malayo:/home/malayo/tools/aget-0.4.1# make
gcc -g -W  -c -o main.o main.c
gcc -g -W  -c -o Aget.o Aget.c
gcc -g -W  -c -o Misc.o Misc.c
gcc -g -W  -c -o Head.o Head.c
Head.c: In function ‘http_head_req’:
Head.c:62: error: ‘struct hostent’ has no member named ‘h_addr’
make: *** [Head.o] Error 1

it seems that this tool was abandoned since 2009. If there's any alternative to an application that can download files from network by splitting the download like aget, please suggest.

malayo 03-23-2011 10:33 PM

this maybe not the solution but it seems that the 32-bit binary can be downloaded from its main site and can be installed on 64-bit debian like so:

# dpkg -i --force-architecture aget_0.4-4_i386.deb

knudfl 03-23-2011 11:58 PM

1 Attachment(s)
Debian squeeze 64-bit :

cd aget-0.4.1/ && patch -p0 < aget-0.4-fix_build_hostent.diff && make

The patch is from ftp://ftp.sunet.se/pub/Linux/distrib...2010.1.src.rpm

Please do not run make or patch as root, no su required.
(Only 'make install' requires permissions to write outside /home/<user>/)
..


All times are GMT -5. The time now is 07:51 AM.