Freesco, NND, CDN, EOS

http://www.freesco.pl
Dzisiaj jest wtorek, 17 czerwca 2025, 17:05

Strefa czasowa UTC+2godz.




Nowy temat Odpowiedz w temacie  [ Posty: 8 ] 
Autor Wiadomość
Post: sobota, 29 grudnia 2007, 02:16 
Offline

Rejestracja: sobota, 18 lutego 2006, 21:29
Posty: 8
Witam

Przekompilowalem na mandrivie 2008 Xtreme niceshapera według zaleceń:

[quote]
[...]

Znajdz w kodzie niceshapera linie: (sa to znaki ktore ns zaakceptuje jako ostatnia litera nazwy interface)
else return false;
if ( dev[ n ] < 48 || dev[ n ] > 57 ) return false;
zamien 48 na 43, skompiluj ns'a

nastepny krok: dodac w konfiguracji interface lokalny ppp+ z takim samym adresem jak eth1(twoj lokalny lan) czyli:
NS 0.6: iface ppp+ dst network 192.168.0.0/24
NS 0.5: iface ppp+ local 192.168.0.0/24
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[quote]

i po podrzuceniu na nowe NND wyskakuje mi komunikat bark ibstdc++.so.6 a przy kompilacji na nnd wysypują sie errory i staje.

Wydaje mi sie, ze potrzeba gcc w wersji 3.4.X, ktore w paczce pod NNd nie jest dostepne. Sprobuj wrzucic je recznie.

To wiem z tego posta: http://forum.freesco.pl/viewtopic.php?t ... ht=libstdc
kombinowałem i ni hu hu

Więc zwracam sie do Was dobrzy ludzie udostępnijcie lub prześlijcie mi skompilowanego niceshapera 0.5.1 lub 0.5.2 pod pppoe na vido@gazeta.pl bo mnie juz powoli zaczyna trafiac :oops: a nie chce mi sie szukac jakiegos starego lina na ktorym bym to pewnie skompilowal albo jeszcze bardzie zdenerwował.

Pozdrawiam


Na górę
 Wyświetl profil  
 
Post: sobota, 29 grudnia 2007, 02:34 
Offline
MODERATOR

Rejestracja: piątek, 5 lipca 2002, 17:31
Posty: 2449
Lokalizacja: Londyn
vido pisze:
Przekompilowalem na mandrivie 2008 Xtreme


głupio zrobiłeś

vido pisze:
i po podrzuceniu na nowe NND wyskakuje mi komunikat bark ibstdc++.so.6 a przy kompilacji na nnd wysypują sie errory i staje.

Wydaje mi sie, ze potrzeba gcc w wersji 3.4.X, ktore w paczce pod NNd nie jest dostepne.


Żle Ci się wydaje. libstdc++ jest spakietowane. Użyj wyszukiwarki Luke...
http://www.nnd-linux.pl/modules.php?name=Pakiety

_________________
Mis'
___________________________________
"Real Men Use Telnet on port 80" (el bid)


Na górę
 Wyświetl profil  
 
 Tytuł:
Post: sobota, 29 grudnia 2007, 10:34 
Offline

Rejestracja: sobota, 18 lutego 2006, 21:29
Posty: 8
Wiem że głupio zrobiłem bo nie działa :lol:
Oto wynik wyszukiwarki:

Pakietów zawieraj&plusmn;cych "libstdc++.so.6" w nazwie: 0

Pakietów zawieraj&plusmn;cych "libstdc++.so.6" w PKGINFO: 0

Pakietów zawieraj&plusmn;cych "libstdc++.so.6" w FILELIST: 0

bo chyba o takie wyszukiwanie ci chodziło, jak wpisze libstdc++ to pokazuje wersje 3.3.3 ktora mam. Prościej bedzie chyba jak sciągne jakiegos starszego slaka z jajkiem 2,4 i przykompiluje.

Ale moze ma to ktos skompilowane i zaoszczedzi mi czasu??

Pozdrawiam


Na górę
 Wyświetl profil  
 
 Tytuł:
Post: sobota, 29 grudnia 2007, 11:59 
Offline
MODERATOR

Rejestracja: piątek, 5 lipca 2002, 17:31
Posty: 2449
Lokalizacja: Londyn
vido pisze:
Pakietów zawieraj&plusmn;cych "libstdc++.so.6" w nazwie: 0

Pakietów zawieraj&plusmn;cych "libstdc++.so.6" w PKGINFO: 0

Pakietów zawieraj&plusmn;cych "libstdc++.so.6" w FILELIST: 0


uparłeś się, żeby uruchomić program kompilowany z nowszymi wersjami bibliotek. Zapewniam Cię że to nie tylko problem libstdc++ i najprawdopodobniej jeśli dodasz do systemu odpowiednia wersję biblioteki to wyjdą problemy z innymi...

vido pisze:
bo chyba o takie wyszukiwanie ci chodziło, jak wpisze libstdc++ to pokazuje wersje 3.3.3 ktora mam. Prościej bedzie chyba jak sciągne jakiegos starszego slaka z jajkiem 2,4 i przykompiluje.


Gdybyś pokazał błędy jakie masz przy kompilacji w środowisku NND to pewnie by dało się coś więcej powiedzieć... a tak to nawet zgadywać trudno.
Niceshaper kompiluje się na NND - jest wszak w pakiecie...

Czy używasz PKGBUILDa pobranego z cvs?

_________________
Mis'
___________________________________
"Real Men Use Telnet on port 80" (el bid)


Na górę
 Wyświetl profil  
 
 Tytuł:
Post: sobota, 29 grudnia 2007, 16:17 
Offline
Użytkownik

Rejestracja: środa, 8 czerwca 2005, 19:39
Posty: 571
Kompilujesz zgodnie z instrukcja na niceshaper.jedwabny.net ?

_________________
| ArchLinux X64 2.6.29-6 (Custom) @ IBM eServer 235
| Intel Xeon 2,4GHz (x2) : 2GB RAM : 2x36GB SCSI (RAID1)
| httpd2.6 mysql exim dhcpd named proftpd stats niceshaper06
| WAN: 35|35 mb/s (GTS) @ 500+ hosts


Na górę
 Wyświetl profil  
 
 Tytuł:
Post: sobota, 29 grudnia 2007, 22:01 
Offline

Rejestracja: sobota, 18 lutego 2006, 21:29
Posty: 8
g++ niceshaper.cpp -o niceshaper


wynik nowe NND

: [/] [] ()
/usr/include/unistd.h:344: error: parse error before `,' token
/usr/include/unistd.h:423: error: type specifier omitted for parameter `size_t'
/usr/include/unistd.h:423: error: parse error before `)' token
In file included from niceshaper.cpp:21:
/usr/include/unistd.h:513: error: syntax error before `(' token
/usr/include/unistd.h:682: error: type specifier omitted for parameter `size_t'
/usr/include/unistd.h:682: error: parse error before `)' token
/usr/include/unistd.h:707: error: type specifier omitted for parameter `size_t'
/usr/include/unistd.h:707: error: parse error before `)' token
/usr/include/unistd.h:730: error: type specifier omitted for parameter `size_t'
/usr/include/unistd.h:730: error: parse error before `)' token
In file included from niceshaper.cpp:21:
/usr/include/unistd.h:752: error: type specifier omitted for parameter `size_t'
/usr/include/unistd.h:752: error: parse error before `)' token
/usr/include/unistd.h:759: error: type specifier omitted for parameter `size_t'
/usr/include/unistd.h:759: error: parse error before `)' token
/usr/include/unistd.h:769: error: type specifier omitted for parameter `size_t'
/usr/include/unistd.h:769: error: parse error before `)' token
/usr/include/unistd.h:770: error: type specifier omitted for parameter `size_t'
/usr/include/unistd.h:770: error: parse error before `)' token
/usr/include/unistd.h:787: error: type specifier omitted for parameter `size_t'
/usr/include/unistd.h:787: error: parse error before `,' token
In file included from niceshaper.cpp:22:
/usr/include/string.h:33:20: stddef.h: Nie ma takiego pliku ani katalogu
In file included from niceshaper.cpp:22:
/usr/include/string.h:39: error: type specifier omitted for parameter `size_t'
/usr/include/string.h:39: error: parse error before `)' token
/usr/include/string.h:42: error: type specifier omitted for parameter `size_t'
/usr/include/string.h:42: error: parse error before `)' token
/usr/include/string.h:51: error: type specifier omitted for parameter `size_t'
/usr/include/string.h:51: error: parse error before `)' token
/usr/include/string.h:58: error: type specifier omitted for parameter `size_t'
/usr/include/string.h:58: error: parse error before `)' token
/usr/include/string.h:61: error: type specifier omitted for parameter `size_t'
/usr/include/string.h:61: error: parse error before `)' token
/usr/include/string.h:65: error: type specifier omitted for parameter `size_t'
/usr/include/string.h:65: error: parse error before `)' token
/usr/include/string.h:75: error: type specifier omitted for parameter `size_t'
/usr/include/string.h:75: error: parse error before `)' token
/usr/include/string.h:86: error: type specifier omitted for parameter `size_t'
/usr/include/string.h:86: error: parse error before `)' token
/usr/include/string.h:93: error: type specifier omitted for parameter `size_t'
/usr/include/string.h:93: error: parse error before `)' token
/usr/include/string.h:99: error: type specifier omitted for parameter `size_t'
/usr/include/string.h:99: error: parse error before `)' token
/usr/include/string.h:106: error: syntax error before `(' token
In file included from niceshaper.cpp:22:
/usr/include/string.h:120: error: syntax error before `(' token
/usr/include/string.h:133: error: type specifier omitted for parameter `size_t'
/usr/include/string.h:133: error: parse error before `)' token
/usr/include/string.h:176: error: syntax error before `(' token
/usr/include/string.h:180: error: syntax error before `(' token
/usr/include/string.h:215: error: type specifier omitted for parameter `size_t'
/usr/include/string.h:215: error: parse error before `,' token
/usr/include/string.h:222: error: type specifier omitted for parameter `size_t'
/usr/include/string.h:222: error: parse error before `)' token
/usr/include/string.h:224: error: type specifier omitted for parameter `size_t'
/usr/include/string.h:224: error: parse error before `)' token
/usr/include/string.h:230: error: syntax error before `(' token
/usr/include/string.h:236: error: syntax error before `(' token
/usr/include/string.h:248: error: type specifier omitted for parameter `size_t'
/usr/include/string.h:248: error: parse error before `)' token
/usr/include/string.h:253: error: type specifier omitted for parameter `size_t'
/usr/include/string.h:253: error: parse error before `)' token
/usr/include/string.h:257: error: type specifier omitted for parameter `size_t'
/usr/include/string.h:257: error: parse error before `)' token
/usr/include/string.h:260: error: type specifier omitted for parameter `size_t'
/usr/include/string.h:260: error: parse error before `)' token
/usr/include/string.h:263: error: type specifier omitted for parameter `size_t'
/usr/include/string.h:263: error: parse error before `)' token
/usr/include/string.h:291: error: type specifier omitted for parameter `size_t'
/usr/include/string.h:291: error: parse error before `)' token
/usr/include/string.h:302: error: type specifier omitted for parameter `size_t'
/usr/include/string.h:302: error: parse error before `,' token
/usr/include/string.h:330: error: type specifier omitted for parameter `size_t'
/usr/include/string.h:330: error: parse error before `)' token
/usr/include/string.h:332: error: type specifier omitted for parameter `size_t'
/usr/include/string.h:332: error: parse error before `)' token
/usr/include/string.h:338: error: type specifier omitted for parameter `size_t'
/usr/include/string.h:338: error: parse error before `)' token
In file included from niceshaper.cpp:23:
/usr/include/stdlib.h:33:20: stddef.h: Nie ma takiego pliku ani katalogu
In file included from niceshaper.cpp:23:
/usr/include/stdlib.h:137: error: syntax error before `(' token
In file included from /usr/include/stdlib.h:414,
                 from niceshaper.cpp:23:
/usr/include/sys/types.h:147:20: stddef.h: Nie ma takiego pliku ani katalogu
In file included from /usr/include/sys/types.h:266,
                 from /usr/include/stdlib.h:414,
                 from niceshaper.cpp:23:
/usr/include/bits/pthreadtypes.h:48: error: 'size_t' is used as a type, but is
   not defined as a type.
/usr/include/bits/pthreadtypes.h:51: error: 'size_t' is used as a type, but is
   not defined as a type.
In file included from niceshaper.cpp:23:
/usr/include/stdlib.h:431: error: type specifier omitted for parameter `size_t'
/usr/include/stdlib.h:431: error: parse error before `)' token
/usr/include/stdlib.h:460: error: type specifier omitted for parameter `size_t'
/usr/include/stdlib.h:460: error: parse error before `,' token
/usr/include/stdlib.h:554: error: `size_t' was not declared in this scope
/usr/include/stdlib.h:554: error: parse error before `)' token
/usr/include/stdlib.h:556: error: `size_t' was not declared in this scope
/usr/include/stdlib.h:556: error: parse error before `,' token
/usr/include/stdlib.h:565: error: type specifier omitted for parameter `size_t'
/usr/include/stdlib.h:565: error: parse error before `)' token
In file included from /usr/include/stdlib.h:576,
                 from niceshaper.cpp:23:
/usr/include/alloca.h:25:20: stddef.h: Nie ma takiego pliku ani katalogu
In file included from /usr/include/stdlib.h:576,
                 from niceshaper.cpp:23:
/usr/include/alloca.h:33: error: `size_t' was not declared in this scope
/usr/include/alloca.h:33: error: parse error before `)' token
In file included from niceshaper.cpp:23:
/usr/include/stdlib.h:581: error: `size_t' was not declared in this scope
/usr/include/stdlib.h:581: error: parse error before `)' token
/usr/include/stdlib.h:586: error: type specifier omitted for parameter `size_t'
/usr/include/stdlib.h:586: error: parse error before `,' token
/usr/include/stdlib.h:731: error: type specifier omitted for parameter `size_t'
/usr/include/stdlib.h:731: error: parse error before `,' token
/usr/include/stdlib.h:735: error: type specifier omitted for parameter `size_t'
/usr/include/stdlib.h:735: error: parse error before `,' token
/usr/include/stdlib.h:804: error: type specifier omitted for parameter `size_t'
/usr/include/stdlib.h:804: error: parse error before `)' token
/usr/include/stdlib.h:807: error: type specifier omitted for parameter `size_t'
/usr/include/stdlib.h:807: error: parse error before `)' token
/usr/include/stdlib.h:811: error: type specifier omitted for parameter `size_t'
/usr/include/stdlib.h:811: error: parse error before `)' token
/usr/include/stdlib.h:814: error: type specifier omitted for parameter `size_t'
/usr/include/stdlib.h:814: error: parse error before `)' token
/usr/include/stdlib.h:822: error: type specifier omitted for parameter `size_t'
/usr/include/stdlib.h:822: error: parse error before `)' token
/usr/include/stdlib.h:826: error: type specifier omitted for parameter `size_t'
/usr/include/stdlib.h:826: error: parse error before `)' token
/usr/include/stdlib.h:833: error: syntax error before `(' token
/usr/include/stdlib.h:836: error: syntax error before `(' token
/usr/include/stdlib.h:898: error: type specifier omitted for parameter `size_t'
/usr/include/stdlib.h:898: error: parse error before `)' token
In file included from /usr/include/signal.h:328,
                 from niceshaper.cpp:24:
/usr/include/bits/sigstack.h:54: error: 'size_t' is used as a type, but is not
   defined as a type.
In file included from niceshaper.cpp:25:
/usr/include/fcntl.h:130: error: type specifier omitted for parameter `size_t'
/usr/include/fcntl.h:130: error: parse error before `,' token
/usr/include/fcntl.h:142: error: type specifier omitted for parameter `size_t'
/usr/include/fcntl.h:142: error: parse error before `,' token
/usr/include/fcntl.h:149: error: type specifier omitted for parameter `size_t'
/usr/include/fcntl.h:149: error: parse error before `)' token
/usr/include/fcntl.h:160: error: type specifier omitted for parameter `size_t'
/usr/include/fcntl.h:160: error: parse error before `)' token
In file included from /usr/include/netinet/in.h:212,
                 from /usr/include/netdb.h:28,
                 from niceshaper.cpp:26:
/usr/include/bits/socket.h:29:20: stddef.h: Nie ma takiego pliku ani katalogu
In file included from /usr/include/bits/socket.h:31,
                 from /usr/include/netinet/in.h:212,
                 from /usr/include/netdb.h:28,
                 from niceshaper.cpp:26:
/usr/include/limits.h:124:26: no include path in which to find limits.h
In file included from /usr/include/netinet/in.h:212,
                 from /usr/include/netdb.h:28,
                 from niceshaper.cpp:26:
/usr/include/bits/socket.h:221: error: 'size_t' is used as a type, but is not
   defined as a type.
/usr/include/bits/socket.h:224: error: 'size_t' is used as a type, but is not
   defined as a type.
/usr/include/bits/socket.h:232: error: 'size_t' is used as a type, but is not
   defined as a type.
In file included from /usr/include/netdb.h:33,
                 from niceshaper.cpp:26:
/usr/include/rpc/netdb.h:42:20: stddef.h: Nie ma takiego pliku ani katalogu
In file included from /usr/include/netdb.h:33,
                 from niceshaper.cpp:26:
/usr/include/rpc/netdb.h:61: error: type specifier omitted for parameter `
   size_t'
/usr/include/rpc/netdb.h:61: error: parse error before `,' token
/usr/include/rpc/netdb.h:65: error: type specifier omitted for parameter `
   size_t'
/usr/include/rpc/netdb.h:65: error: parse error before `,' token
/usr/include/rpc/netdb.h:69: error: type specifier omitted for parameter `
   size_t'
/usr/include/rpc/netdb.h:69: error: parse error before `,' token
In file included from niceshaper.cpp:26:
/usr/include/netdb.h:137: error: type specifier omitted for parameter `size_t'
/usr/include/netdb.h:137: error: parse error before `,' token
/usr/include/netdb.h:144: error: type specifier omitted for parameter `size_t'
/usr/include/netdb.h:144: error: parse error before `,' token
/usr/include/netdb.h:150: error: type specifier omitted for parameter `size_t'
/usr/include/netdb.h:150: error: parse error before `,' token
/usr/include/netdb.h:156: error: type specifier omitted for parameter `size_t'
/usr/include/netdb.h:156: error: parse error before `,' token
/usr/include/netdb.h:188: error: type specifier omitted for parameter `size_t'
/usr/include/netdb.h:188: error: parse error before `,' token
/usr/include/netdb.h:194: error: type specifier omitted for parameter `size_t'
/usr/include/netdb.h:194: error: parse error before `,' token
/usr/include/netdb.h:200: error: type specifier omitted for parameter `size_t'
/usr/include/netdb.h:200: error: parse error before `,' token
/usr/include/netdb.h:241: error: type specifier omitted for parameter `size_t'
/usr/include/netdb.h:241: error: parse error before `,' token
/usr/include/netdb.h:247: error: type specifier omitted for parameter `size_t'
/usr/include/netdb.h:247: error: parse error before `,' token
/usr/include/netdb.h:252: error: type specifier omitted for parameter `size_t'
/usr/include/netdb.h:252: error: parse error before `,' token
/usr/include/netdb.h:287: error: type specifier omitted for parameter `size_t'
/usr/include/netdb.h:287: error: parse error before `,' token
/usr/include/netdb.h:292: error: type specifier omitted for parameter `size_t'
/usr/include/netdb.h:292: error: parse error before `,' token
/usr/include/netdb.h:297: error: type specifier omitted for parameter `size_t'
/usr/include/netdb.h:297: error: parse error before `,' token
/usr/include/netdb.h:323: error: type specifier omitted for parameter `size_t'
/usr/include/netdb.h:323: error: parse error before `)' token
In file included from niceshaper.cpp:27:
/usr/include/arpa/inet.h:78: error: type specifier omitted for parameter `
   size_t'
/usr/include/arpa/inet.h:78: error: parse error before `)' token
/usr/include/arpa/inet.h:84: error: type specifier omitted for parameter `
   size_t'
/usr/include/arpa/inet.h:84: error: parse error before `)' token
/usr/include/arpa/inet.h:90: error: type specifier omitted for parameter `
   size_t'
/usr/include/arpa/inet.h:90: error: parse error before `)' token
niceshaper.cpp: In function `int main(int, char**)':
niceshaper.cpp:166: error: `strlen' undeclared (first use this function)
niceshaper.cpp:166: error: (Each undeclared identifier is reported only once
   for each function it appears in.)
niceshaper.cpp: In function `void signalusr1(int)':
niceshaper.cpp:533: error: `strlen' undeclared (first use this function)
niceshaper.cpp: In function `bool bitodot(char*, int)':
niceshaper.cpp:1429: error: `strlen' undeclared (first use this function)
niceshaper.cpp: In function `long int csubc(char*, char*)':
niceshaper.cpp:1454: error: `strlen' undeclared (first use this function)
niceshaper.cpp: In function `char* awk(char*, unsigned int)':
niceshaper.cpp:1489: error: `strlen' undeclared (first use this function)
niceshaper.cpp: In function `char* prioparamawk(char*, char*, unsigned int)':
niceshaper.cpp:1520: error: `strlen' undeclared (first use this function)
niceshaper.cpp:1534: error: `strspn' undeclared (first use this function)
niceshaper.cpp: In function `bool split(char*, char*, char*)':
niceshaper.cpp:1600: error: `strcspn' undeclared (first use this function)
niceshaper.cpp:1601: error: `strlen' undeclared (first use this function)
niceshaper.cpp: In function `bool valid_whiteline(char*)':
niceshaper.cpp:1684: error: `strlen' undeclared (first use this function)
niceshaper.cpp: In function `void trim(char*)':
niceshaper.cpp:1694: error: `strlen' undeclared (first use this function)
niceshaper.cpp: In function `bool hash(char*, char*)':
niceshaper.cpp:1703: error: `strcspn' undeclared (first use this function)


Na mandarynie idzie bez obiekcji. Niceshaper pobrany z jedwabnego -- moze to jest problem??


Na górę
 Wyświetl profil  
 
 Tytuł:
Post: sobota, 29 grudnia 2007, 22:11 
Offline
Honorowy Admin

Rejestracja: piątek, 5 lipca 2002, 17:30
Posty: 7800
Lokalizacja: Słupsk
Na http://nnd-linux-router.one.pl/nonpkg masz niceshapera 0.5.1 pracującego z każdym typem interfejsu. Skopiuj i zrób chmod 755.

_________________
Obrazek Belfer.one.PL
Obrazek Audio Cafe


Na górę
 Wyświetl profil  
 
 Tytuł:
Post: sobota, 29 grudnia 2007, 22:47 
Offline

Rejestracja: sobota, 18 lutego 2006, 21:29
Posty: 8
Dzieki Ci dobry człowieku. :lol:


Na górę
 Wyświetl profil  
 
Wyświetl posty nie starsze niż:  Sortuj wg  
Nowy temat Odpowiedz w temacie  [ Posty: 8 ] 

Strefa czasowa UTC+2godz.


Kto jest online

Użytkownicy przeglądający to forum: Obecnie na forum nie ma żadnego zarejestrowanego użytkownika i 1 gość


Nie możesz tworzyć nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz dodawać załączników

Szukaj:
Przejdź do:  
Technologię dostarcza phpBB® Forum Software © phpBB Group
Hosting: Compus-Net
RobertKonik.pl