LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 03-23-2011, 09:03 PM   #1
malayo
Member
 
Registered: Dec 2010
Posts: 130

Rep: Reputation: 1
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.

Last edited by malayo; 03-23-2011 at 09:05 PM.
 
Old 03-23-2011, 10:33 PM   #2
malayo
Member
 
Registered: Dec 2010
Posts: 130

Original Poster
Rep: Reputation: 1
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
 
Old 03-23-2011, 11:58 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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>/)
..
Attached Files
File Type: txt aget-0.4-fix_build_hostent.diff.txt (374 Bytes, 76 views)
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Failed attepts at installing google earth 6, debian Squeeze\Sid Elixer Debian 15 12-22-2010 09:51 PM
red5 streaming server installation on debian squeeze failed. tkmsr Linux - Software 0 04-28-2010 06:26 AM
openoffice 'Javaldx failed!" Debian lenny squeeze kaz2100 Debian 0 02-23-2009 06:27 AM
aget quits downloading at 99% fakie_flip Linux - Software 1 08-09-2006 02:17 PM
aget problem. bruse Linux - Newbie 3 09-06-2005 07:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 03:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration