libera/#maemo/ Sunday, 2019-09-08

traptis it possible to compile from source on an n810 im reading conflicting things online and having a hell of a time01:36
MaxdamantusYou mean compile the whole OS, or just run a compiler on the N810?02:06
MaxdamantusI'm sure the latter will be possible, since it's just a machine running Linux.02:07
traptjust run a compiler. everytime i go to configure i get "C compiler cannot create executables"02:38
MaxdamantusWhat happens if you manually try to compile a simple program?02:42
Maxdamantuseg, gcc -xc - -o /dev/null <<< 'int main(void){ return 4; }'02:42
traptim not very experience compiling sop forgive me but, trying to compile a simple helloworld with gcc returns02:46
trapthello.c:1:19: stdio.h: No such file or directory02:46
traptwhich i believe in related to missing libc6-dev package02:47
MaxdamantusTry `apt-get install libc6-dev`02:47
traptThe following packages have unmet dependencies:  libc6-dev: Depends: libc6 (= 2.5.0-1osso7) but 2.5.0-1osso10 is to be installed02:48
traptlibc6 is already the newest version02:48
MaxdamantusMaybe try `apt-get update` first.02:49
traptno effect02:53
MaxdamantusMaybe you'll just have to force install the old package then, but that should be enough information for someone familiar with the N810 ecosystem to try and make progress (missing libc6-dev package, can't install due to version mismatch between libc6 and libc6-dev)02:55
traptok, thanks for your help02:56
Maxdamantusnp02:56
KotCzarnytrapt: are you compiling on device or pc?08:11
KotCzarnybecause sdk packages might differ from stock/power packages08:12
sixwheeledbeastI read it as on device10:11
brolin_empeysixwheeledbeast: wget question: You may be able to use wildcards/globbing if the protocol you are using to transfer files supports wildcards/globbing but HTTP seems to not support globbing but maybe FTP does?  What are you trying to download?  Can you just download everything then delete the unwanted stuff from your local copy?10:49
sixwheeledbeastbrolin_empey: I was getting 403 from the site using wget -r. In the end instead of working it out I generated a bash script with all 120 pdf files and ran it.10:53
KotCzarnyswb: wget only accepts limited wildcards11:02
KotCzarnybut you can use -r and include/exclude pattern i guess11:02
brolin_empeysixwheeledbeast: Some Web sites deny requests if the User-Agent of the client is reported as wget.  By default wget truthfully identifies itself as wget but usually the workaround is simply:11:03
brolin_empeywget -U 'Mozilla/5.0'11:03
brolin_empeywhich fools the Web site into thinking the request is from a normal, interactive Web browser.11:03
sixwheeledbeastI was using Firefox user agent too11:04
sixwheeledbeastIt was fine to wget each page even without -u but not -r from any page higher11:07
brolin_empeysixwheeledbeast: Sometimes the Web site denies the requests because it thinks the requests are automated because wget by default sends requests as fast as it can.  wget has command-line options to use in this case that specify a minimum delay between requests and allow randomising or at least varying the delay between requests to make the requests seem like they are from an interactive user.  I had to use that more advanced workaround years ago but seem to11:08
brolin_empeyhave not needed it in recent years, maybe because I have mostly no longer been using wget -r in recent years.11:08
brolin_empeyOh, wget also has a partially undocumented option to ignore the robots.txt file.  Does the Web site from which you are trying to download stuff with wget have a /robots.txt file?11:12
sixwheeledbeastbrolin_empey: yep I only saw wordpress lines in there tho11:15
brolin_empeysixwheeledbeast: OK.11:18
KotCzarnyyou can use -np (no parent) to make it not go up in slashes11:48
traptKotCzarny im compiling on device16:30
KotCzarnywatch the free space then16:33
trapti believe i should have plenty of free space, the device was just reset before i got it and all ive added is small utils16:33
KotCzarnyi personally made me sdk chroots that can be ran on any arm device16:34
KotCzarnymakes life bit easier because 1x400mhz isnt much, when compared to 10usd 4x1.2ghz orange pi16:34
KotCzarny:)16:34
KotCzarnybut only released the one for n90016:35
KotCzarnystill, if you know linux and a bit of debian, you can create one yourself16:35
KotCzarny(better than cluttering rootfs)16:35
bencoh(or .... just use scratchbox :)16:40
trapti havent been able to find a working dl of scratchbox if anyone has a link16:45
bencohwell, last time I followed wiki instructions to install it on a fresh debian, but ...16:47
bencoh(wheezy iirc)16:47
KotCzarny~scratchbox18:09
infobotfrom memory, scratchbox is a cross-compiling system that uses binfmt_misc, rpc calls, and an nfs mount to make a cross-build appear to be 100% native, and is found at http://www.scratchbox.org/, hosted by maemo now. Also at http://maemo.merlin1991.at/files/SB18:09
traptthank you, not sure what i was looking at last night that i didnt find this18:10
KotCzarnyand install instructions are at wiki.maemo.org18:11
sixwheeledbeast~sb18:37
infobot[scratchbox] a cross-compiling system that uses binfmt_misc, rpc calls, and an nfs mount to make a cross-build appear to be 100% native, and is found at http://www.scratchbox.org/, hosted by maemo now. Also at http://maemo.merlin1991.at/files/SB18:37
sixwheeledbeasthmm same link18:37

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!