Dienstag, 20. Oktober 2009

esniper 2.20.0 behebt Login-Probleme

Lange, lange war es ruhig bei esniper, ich habe meine Befürchtungen schon vor einiger Zeit in Worte gefasst.
Da es seit kurzem Login-Probleme gab, hat der Autor nun doch nochmal am Quellcode geschraubt und das ist das Ergebnis:

This is a major update.
It fixes the latest login problems (pageinfo is NULL ... Error encountered in function ebayLogin in auction.c line 415) and some older problems in parsing the remaining time (Error encountered in function parseBidHistory in history.c line 253 ... remaining time could not be converted).

Wie bekommen wir es schnellstmöglich auf das System?

Im folgenden sieht man, wie ich diese Version auf meiner NSLU2/Slug unter Debian Lenny kompiliere und in Betrieb nehme.

Als erstes gehen wir mal in mein Ebay-Verzeichnis und laden die Datei vom Sourceforge-Server.
//NSLU2~# cd ebay/
//NSLU2~/ebay# l
insgesamt 6068
drwxr-xr-x  9 root root    4096 21. Okt 2007  esf_0.6.0
drwxr-xr-x 11 root root    4096 21. Okt 2007  esf_0.7.0
drwxr-xr-x 11 root root    4096 23. Okt 2007  esf_0.7.1
drwxr-xr-x 11 root root    4096 23. Nov 2007  esf_0.7.2
drwxr-xr-x 11 root root    4096 10. Dez 2007  esf_0.8.0
drwxr-xr-x  2 root root    4096 13. Dez 2007  esf_0.8.2
drwxr-xr-x 13 root root    4096  5. Mai 2008  esf_1.0.0
drwxr-xr-x 13 root root    4096 21. Mär 2008  esf_1.0.0rc1
-rw-r--r--  1 root root 1617880  9. Jun 2008  es-f_1.1.0.tgz
-rw-r--r--  1 root root 1617953 15. Jun 2008  es-f_1.1.1.tgz
-rw-r--r--  1 root root 1339510  7. Dez 2008  es-f_2.0.0rc1.tgz
-rw-r--r--  1 root root 1439695 10. Dez 2008  es-f_2.0.0rc2.tgz
drwxr-xr-x  5 root root    4096 27. Sep 2007  esniper_2.16.1
drwxr-xr-x  6 root root    4096  2. Okt 2007  esniper_2.17.0
drwxr-xr-x  5 root root    4096  4. Okt 2007  esniper_2.17.1
drwxr-xr-x  6 root root    4096  1. Apr 2008  esniper_2.17.1QnD
drwxr-xr-x  4  500  500    4096  3. Apr 2008  esniper-2-18-0
drwxr-xr-x  4  500  500    4096  5. Aug 2008  esniper-2-19-0
-rw-r--r--  1 root root  110571  5. Aug 2008  esniper-2-19-0.tgz
//NSLU2~/ebay# wget http://downloads.sourceforge.net/project/esniper/esniper/2.20.0/esniper-2-20-0.tgz?use_mirror=dfn
--2009-10-20 09:26:01--  http://downloads.sourceforge.net/project/esniper/esniper/2.20.0/esniper-2-20-0.tgz?use_mirror=dfn
Auflösen des Hostnamen »downloads.sourceforge.net«.... 216.34.181.59
Verbindungsaufbau zu downloads.sourceforge.net|216.34.181.59|:80... verbunden.
HTTP Anforderung gesendet, warte auf Antwort... 302 Found
Platz: http://dfn.dl.sourceforge.net/project/esniper/esniper/2.20.0/esniper-2-20-0.tgz[folge]
--2009-10-20 09:26:01--  http://dfn.dl.sourceforge.net/project/esniper/esniper/2.20.0/esniper-2-20-0.tgz
Auflösen des Hostnamen »dfn.dl.sourceforge.net«.... 194.95.236.6
Verbindungsaufbau zu dfn.dl.sourceforge.net|194.95.236.6|:80... verbunden.
HTTP Anforderung gesendet, warte auf Antwort... 200 OK
Länge: 125589 (123K) [application/x-gzip]
In »esniper-2-20-0.tgz« speichern.
100%[========================================================================================>] 125.589      104K/s   in 11s
2009-10-20 09:26:32 (11,5 KB/s) - »esniper-2-20-0.tgz« gespeichert [125589/125589]
Auspacken:
//NSLU2~/ebay# tar xvf esniper-2-20-0.tgz
esniper-2-20-0/
esniper-2-20-0/misc.mk
esniper-2-20-0/html.c
esniper-2-20-0/auction.c
esniper-2-20-0/configure.in
esniper-2-20-0/README
esniper-2-20-0/Makefile.in
esniper-2-20-0/sample_auction.txt
esniper-2-20-0/auction.h
esniper-2-20-0/http.h
esniper-2-20-0/COPYING
esniper-2-20-0/util.h
esniper-2-20-0/frontends/
esniper-2-20-0/frontends/README
esniper-2-20-0/frontends/snipe
esniper-2-20-0/history.c
esniper-2-20-0/options.h
esniper-2-20-0/configure
esniper-2-20-0/util.c
esniper-2-20-0/http.c
esniper-2-20-0/AUTHORS
esniper-2-20-0/aclocal.m4
esniper-2-20-0/auctionfile.h
esniper-2-20-0/NEWS
esniper-2-20-0/sample_config.txt
esniper-2-20-0/missing
esniper-2-20-0/TODO
esniper-2-20-0/history.h
esniper-2-20-0/html.h
esniper-2-20-0/auctioninfo.h
esniper-2-20-0/buffer.c
esniper-2-20-0/ChangeLog
esniper-2-20-0/buffer.h
esniper-2-20-0/options.c
esniper-2-20-0/esniper.h
esniper-2-20-0/esniper.c
esniper-2-20-0/Makefile.am
esniper-2-20-0/INSTALL
esniper-2-20-0/auctionfile.c
esniper-2-20-0/esniper.1
esniper-2-20-0/depcomp
esniper-2-20-0/esniper_man.html
esniper-2-20-0/install-sh
esniper-2-20-0/auctioninfo.c
Ins Verzeichnis wechseln und das Kompilieren mittels configure vorbereiten:
//NSLU2~/ebay# cd esniper-2-20-0
//NSLU2~/ebay/esniper-2-20-0# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether make sets $(MAKE)... (cached) yes
checking for curl-config... curl-config
checking for curl_easy_setopt... yes
checking for curl_easy_strerror... yes
checking for cURL SSL support... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: executing depfiles commands
Dieser Vorgang sollte ohne Fehlermeldungen durchlaufen. Danach kann man das eigentliche Kompilieren starten, in meinem Fall gleich mit Installation des fertigen Binaries:
//NSLU2~/ebay/esniper-2-20-0# make && make install
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"esniper\" -DVERSION=\"2.20.0\" -I.     -g -O2 -MT auction.o -MD -MP -MF .deps/auction.Tpo -c -o auction.o auction.c
mv -f .deps/auction.Tpo .deps/auction.Po
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"esniper\" -DVERSION=\"2.20.0\" -I.     -g -O2 -MT auctionfile.o -MD -MP -MF .deps/auctionfile.Tpo -c -o auctionfile.o auctionfile.c
mv -f .deps/auctionfile.Tpo .deps/auctionfile.Po
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"esniper\" -DVERSION=\"2.20.0\" -I.     -g -O2 -MT auctioninfo.o -MD -MP -MF .deps/auctioninfo.Tpo -c -o auctioninfo.o auctioninfo.c
mv -f .deps/auctioninfo.Tpo .deps/auctioninfo.Po
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"esniper\" -DVERSION=\"2.20.0\" -I.     -g -O2 -MT buffer.o -MD -MP -MF .deps/buffer.Tpo -c -o buffer.o buffer.c mv -f .deps/buffer.Tpo .deps/buffer.Po
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"esniper\" -DVERSION=\"2.20.0\" -I.     -g -O2 -MT esniper.o -MD -MP -MF .deps/esniper.Tpo -c -o esniper.o esniper.c mv -f .deps/esniper.Tpo .deps/esniper.Po
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"esniper\" -DVERSION=\"2.20.0\" -I.     -g -O2 -MT history.o -MD -MP -MF .deps/history.Tpo -c -o history.o history.c
mv -f .deps/history.Tpo .deps/history.Po
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"esniper\" -DVERSION=\"2.20.0\" -I.     -g -O2 -MT html.o -MD -MP -MF .deps/html.Tpo -c -o html.o html.c
mv -f .deps/html.Tpo .deps/html.Po
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"esniper\" -DVERSION=\"2.20.0\" -I.     -g -O2 -MT http.o -MD -MP -MF .deps/http.Tpo -c -o http.o http.c
mv -f .deps/http.Tpo .deps/http.Po
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"esniper\" -DVERSION=\"2.20.0\" -I.     -g -O2 -MT options.o -MD -MP -MF .deps/options.Tpo -c -o options.o options.c
mv -f .deps/options.Tpo .deps/options.Po
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"esniper\" -DVERSION=\"2.20.0\" -I.     -g -O2 -MT util.o -MD -MP -MF .deps/util.Tpo -c -o util.o util.c
mv -f .deps/util.Tpo .deps/util.Po
gcc  -g -O2  -lcurl  -o esniper auction.o auctionfile.o auctioninfo.o buffer.o esniper.o history.o html.o http.o options.o util.o -lcurl
make[1]: Entering directory `/root/ebay/esniper-2-20-0'
test -z "/usr/local/bin" || /bin/mkdir -p "/usr/local/bin"   /usr/bin/install -c esniper '/usr/local/bin'
test -z "/usr/local/share/man/man1" || /bin/mkdir -p "/usr/local/share/man/man1"
/usr/bin/install -c -m 644 esniper.1 '/usr/local/share/man/man1' make[1]: Leaving directory `/root/ebay/esniper-2-20-0'
Nun mal kurz die Version testen und alles wird gut:
//NSLU2~/ebay/esniper-2-20-0# esniper -v
esniper version 2.20.0
Please visit http://esniper.sf.net/ for updates and bug reports.  To learn
about updates to and major bugs in esniper, subscribe to the esniper mailing
list at http://lists.sf.net/lists/listinfo/esniper-announce
Ging doch schnell, oder?

blog comments powered by Disqus

Design von Dicas Blogger, angepasst durch Mario Ruprecht