Can't browse to some sites.

2008-01-15 Thread David Harel
Hi there,


At first this sounds real stupid so I apologize.
I fail to connect to zap.co.il. other computers (MS) on my network go
there with out any problems but another Gentoo (k2.4 and not updated at
all) also fails to connect.
Didn't notice any other site with similar problems.
I tried everything I could.
1. removed all protection definition on the firewall.
2. removed all port forwarding on the firewall.
3. removed all services on my client.
4. changed my IP
5. switched to wireless connection.
6. tried different browsers such as FF, LYNX, IEs for Linux (IE6 on
wine), Opera (lynx says: HTTP request sent; waiting for response).
7. tried via different user.
8. telnet zap.co.il 80
9. use older kernel 2.6.20-gentoo-r8.
10. check if I have iptables filtering things.

My current configuration:
Gentoo updated almost to the last bit. (had trouble with openssh openssl...)
Kernel 2.6.23-gentoo-r3
HW: Fujitsu Siemens S7020 laptop (intel dual...w 2G)

-- 
Regards.

David Harel,

==

Home office +972 77 7657645
Fax:+972 77 7657645
Cellular:   +972 54 4534502
Snail Mail: Amuka
D.N Merom Hagalil
13802
Israel
Email:  [EMAIL PROTECTED]



SCSI Mischif

2008-01-15 Thread Noam Rathaus
Hi,

I have come across a weird behavior of my SCSI:
1) It tends every once if a while to go offline
2) It tends on reboots (might happen after step 1, but not sure if only after 
step 1) to switch places, disks that used to be sda are now sdb etc.

Anyone seen this?

I m running:
2.6.18-4-686

Based on Debian Stable

04:00.0 SCSI storage controller: LSI Logic / Symbios Logic 53c1030 PCI-X 
Fusion-MPT Dual Ultra320 SCSI (rev 08)

Any other details just ask.

-- 
Noam Rathaus
CTO
[EMAIL PROTECTED]
http://www.beyondsecurity.com

Know that you are safe.

Beyond Security Finalist for the Red Herring 100 Global Awards 2007

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word unsubscribe in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: Can't browse to some sites.

2008-01-15 Thread Noam Rathaus
Hi,

I would guess MTU issues, use (temporarily):
ifconfig eth0 mtu 1400

eth0 should be the network/ppp interface you use, if you are connected through 
a router, and he is the PPP connector use ethN otherwise use pppN

On Tuesday 15 January 2008 10:19:37 you wrote:
 Hi there,


 At first this sounds real stupid so I apologize.
 I fail to connect to zap.co.il. other computers (MS) on my network go
 there with out any problems but another Gentoo (k2.4 and not updated at
 all) also fails to connect.
 Didn't notice any other site with similar problems.
 I tried everything I could.
 1. removed all protection definition on the firewall.
 2. removed all port forwarding on the firewall.
 3. removed all services on my client.
 4. changed my IP
 5. switched to wireless connection.
 6. tried different browsers such as FF, LYNX, IEs for Linux (IE6 on
 wine), Opera (lynx says: HTTP request sent; waiting for response).
 7. tried via different user.
 8. telnet zap.co.il 80
 9. use older kernel 2.6.20-gentoo-r8.
 10. check if I have iptables filtering things.

 My current configuration:
 Gentoo updated almost to the last bit. (had trouble with openssh
 openssl...) Kernel 2.6.23-gentoo-r3
 HW: Fujitsu Siemens S7020 laptop (intel dual...w 2G)



-- 
Noam Rathaus
CTO
[EMAIL PROTECTED]
http://www.beyondsecurity.com

Know that you are safe.

Beyond Security Finalist for the Red Herring 100 Global Awards 2007

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word unsubscribe in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: Can't browse to some sites.

2008-01-15 Thread David Harel
Thanks

Noam Rathaus wrote:

 Hi,

 I would guess MTU issues, use (temporarily):
 ifconfig eth0 mtu 1400
   
Didn't help.
 eth0 should be the network/ppp interface you use, if you are connected 
 through 
 a router, and he is the PPP connector use ethN otherwise use pppN

 On Tuesday 15 January 2008 10:19:37 you wrote:
   
 Hi there,


 At first this sounds real stupid so I apologize.
 I fail to connect to zap.co.il. other computers (MS) on my network go
 there with out any problems but another Gentoo (k2.4 and not updated at
 all) also fails to connect.
 Didn't notice any other site with similar problems.
 I tried everything I could.
 1. removed all protection definition on the firewall.
 2. removed all port forwarding on the firewall.
 3. removed all services on my client.
 4. changed my IP
 5. switched to wireless connection.
 6. tried different browsers such as FF, LYNX, IEs for Linux (IE6 on
 wine), Opera (lynx says: HTTP request sent; waiting for response).
 7. tried via different user.
 8. telnet zap.co.il 80
 9. use older kernel 2.6.20-gentoo-r8.
 10. check if I have iptables filtering things.

 My current configuration:
 Gentoo updated almost to the last bit. (had trouble with openssh
 openssl...) Kernel 2.6.23-gentoo-r3
 HW: Fujitsu Siemens S7020 laptop (intel dual...w 2G)
 



   

-- 
Regards.

David Harel,

==

Home office +972 77 7657645
Fax:+972 77 7657645
Cellular:   +972 54 4534502
Snail Mail: Amuka
D.N Merom Hagalil
13802
Israel
Email:  [EMAIL PROTECTED]




Re: Can't browse to some sites.

2008-01-15 Thread Hetz Ben Hamo
I had that issue before with another router (EDIMAX) and then I
switched to Linksys.

I would suggest to set the MTU to 1452 and see if that works.

Thanks,
Hetz

On Jan 15, 2008 10:40 AM, David Harel [EMAIL PROTECTED] wrote:



 Thanks

  Noam Rathaus wrote:

  Hi,

 I would guess MTU issues, use (temporarily):
 ifconfig eth0 mtu 1400

  Didn't help.



  eth0 should be the network/ppp interface you use, if you are connected
 through
 a router, and he is the PPP connector use ethN otherwise use pppN

 On Tuesday 15 January 2008 10:19:37 you wrote:


  Hi there,


 At first this sounds real stupid so I apologize.
 I fail to connect to zap.co.il. other computers (MS) on my network go
 there with out any problems but another Gentoo (k2.4 and not updated at
 all) also fails to connect.
 Didn't notice any other site with similar problems.
 I tried everything I could.
 1. removed all protection definition on the firewall.
 2. removed all port forwarding on the firewall.
 3. removed all services on my client.
 4. changed my IP
 5. switched to wireless connection.
 6. tried different browsers such as FF, LYNX, IEs for Linux (IE6 on
 wine), Opera (lynx says: HTTP request sent; waiting for response).
 7. tried via different user.
 8. telnet zap.co.il 80
 9. use older kernel 2.6.20-gentoo-r8.
 10. check if I have iptables filtering things.

 My current configuration:
 Gentoo updated almost to the last bit. (had trouble with openssh
 openssl...) Kernel 2.6.23-gentoo-r3
 HW: Fujitsu Siemens S7020 laptop (intel dual...w 2G)





  --
 Regards.

 David Harel,

 ==

 Home office +972 77 7657645
 Fax: +972 77 7657645
 Cellular: +972 54 4534502
 Snail Mail: Amuka

 D.N Merom Hagalil
  13802
  Israel
 Email: [EMAIL PROTECTED]






-- 
Skepticism is the lazy person's default position.
my blog (hebrew): http://benhamo.org

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word unsubscribe in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: Can't browse to some sites.

2008-01-15 Thread David Harel
Thanks for your help.


Hetz Ben Hamo wrote:

 I had that issue before with another router (EDIMAX) and then I
 switched to Linksys.
   
If it was the router, wouldn't other machines on my network have the
same problem?
 I would suggest to set the MTU to 1452 and see if that works.
   
Tried both 1400 and 1452. No good.
 Thanks,
 Hetz

 On Jan 15, 2008 10:40 AM, David Harel [EMAIL PROTECTED] wrote:
   

 Thanks

  Noam Rathaus wrote:

  Hi,

 I would guess MTU issues, use (temporarily):
 ifconfig eth0 mtu 1400

  Didn't help.



  eth0 should be the network/ppp interface you use, if you are connected
 through
 a router, and he is the PPP connector use ethN otherwise use pppN

 On Tuesday 15 January 2008 10:19:37 you wrote:


  Hi there,


 At first this sounds real stupid so I apologize.
 I fail to connect to zap.co.il. other computers (MS) on my network go
 there with out any problems but another Gentoo (k2.4 and not updated at
 all) also fails to connect.
 Didn't notice any other site with similar problems.
 I tried everything I could.
 1. removed all protection definition on the firewall.
 2. removed all port forwarding on the firewall.
 3. removed all services on my client.
 4. changed my IP
 5. switched to wireless connection.
 6. tried different browsers such as FF, LYNX, IEs for Linux (IE6 on
 wine), Opera (lynx says: HTTP request sent; waiting for response).
 7. tried via different user.
 8. telnet zap.co.il 80
 9. use older kernel 2.6.20-gentoo-r8.
 10. check if I have iptables filtering things.

 My current configuration:
 Gentoo updated almost to the last bit. (had trouble with openssh
 openssl...) Kernel 2.6.23-gentoo-r3
 HW: Fujitsu Siemens S7020 laptop (intel dual...w 2G)





  --
 Regards.

 David Harel,

 ==

 Home office +972 77 7657645
 Fax: +972 77 7657645
 Cellular: +972 54 4534502
 Snail Mail: Amuka

 D.N Merom Hagalil
  13802
  Israel
 Email: [EMAIL PROTECTED]



 



   

-- 
Regards.

David Harel,

==

Home office +972 77 7657645
Fax:+972 77 7657645
Cellular:   +972 54 4534502
Snail Mail: Amuka
D.N Merom Hagalil
13802
Israel
Email:  [EMAIL PROTECTED]




Re: Can't browse to some sites.

2008-01-15 Thread Aviram Jenik
On Tuesday 15 January 2008 David Harel wrote:
 Noam Rathaus wrote:
  Hi,
 
  I would guess MTU issues, use (temporarily):
  ifconfig eth0 mtu 1400

 Didn't help.

Try:

echo 409616384   131072   /proc/sys/net/ipv4/tcp_wmem
echo 409687380   174760   /proc/sys/net/ipv4/tcp_rmem

(I used to have the same problem and the above fixed it for me).

- Aviram


=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word unsubscribe in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



gcc thoughts

2008-01-15 Thread Leonid Podolny

Hi, list,
This letter is probably better suited to hackers-il, but I need help 
from people that are better acquainted with a development process of gcc.
This morning, while browsing through pages of frustratingly irrelevant 
cscope output, I got an idea. In every kosher *nix development 
environment, the cross-references (i.e. jump to definition of this 
struct/function) are built by some crippled 3rd party tool (such as 
ctags, cscope or home-brewed set of elisp scrips). On the other hand, 
the only tool that actually knows what is going on during compilation is 
gcc, so it's only logical that it should build cross-references along 
the way.
It would be simply fantastic. The index would reflect the actual set of 
#ifdef's I currently work with. It would always point you to the header 
file that was actually #include-d. It would be immediately useful to 
almost everyone in FOSS world.
I have a couple of ideas, how it might be tailored into gcc running 
sequence. However, I'm a humble gcc user  and I have almost no 
experience with its inner workings.
The idea by itself is so obvious and on-the-surface that it everyone 
using gcc must come up with it sooner or later. There must be a very 
sound technical reason not to do so. What is it?

--


 Leonid Podolny   |  [EMAIL PROTECTED]
  |
 Software Engineer|  +972- 3-7668960
 Linux Platform Team  |  +972-54-5696948

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word unsubscribe in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: gcc thoughts

2008-01-15 Thread Yedidyah Bar-David
On Tue, Jan 15, 2008 at 12:57:36PM +0200, Leonid Podolny wrote:
 Hi, list,
 This letter is probably better suited to hackers-il, but I need help 
 from people that are better acquainted with a development process of gcc.
 This morning, while browsing through pages of frustratingly irrelevant 
 cscope output, I got an idea. In every kosher *nix development 
 environment, the cross-references (i.e. jump to definition of this 
 struct/function) are built by some crippled 3rd party tool (such as 
 ctags, cscope or home-brewed set of elisp scrips). On the other hand, 
 the only tool that actually knows what is going on during compilation is 
 gcc, so it's only logical that it should build cross-references along 
 the way.
 It would be simply fantastic. The index would reflect the actual set of 
 #ifdef's I currently work with. It would always point you to the header 
 file that was actually #include-d. It would be immediately useful to 
 almost everyone in FOSS world.
 I have a couple of ideas, how it might be tailored into gcc running 
 sequence. However, I'm a humble gcc user  and I have almost no 
 experience with its inner workings.
 The idea by itself is so obvious and on-the-surface that it everyone 
 using gcc must come up with it sooner or later. There must be a very 
 sound technical reason not to do so. What is it?

I recently read an interesting interview with a gcc developer who works
on this and more:
http://lwn.net/Articles/249416/
-- 
Didi


=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word unsubscribe in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: gcc thoughts

2008-01-15 Thread Constantine Shulyupin
1. compilation could be broken and you  still need to browse it
2. gcc don't know about cpp (preprocessor) defines
more tricks:
 gcc -E gives you preprocessed file and you could check defines and  ifdefs
 objdump -S - gives you disassemble

On Jan 15, 2008 12:57 PM, Leonid Podolny [EMAIL PROTECTED] wrote:
 Hi, list,
 This letter is probably better suited to hackers-il, but I need help
 from people that are better acquainted with a development process of gcc.
 This morning, while browsing through pages of frustratingly irrelevant
 cscope output, I got an idea. In every kosher *nix development
 environment, the cross-references (i.e. jump to definition of this
 struct/function) are built by some crippled 3rd party tool (such as
 ctags, cscope or home-brewed set of elisp scrips). On the other hand,
 the only tool that actually knows what is going on during compilation is
 gcc, so it's only logical that it should build cross-references along
 the way.
 It would be simply fantastic. The index would reflect the actual set of
 #ifdef's I currently work with. It would always point you to the header
 file that was actually #include-d. It would be immediately useful to
 almost everyone in FOSS world.
 I have a couple of ideas, how it might be tailored into gcc running
 sequence. However, I'm a humble gcc user  and I have almost no
 experience with its inner workings.
 The idea by itself is so obvious and on-the-surface that it everyone
 using gcc must come up with it sooner or later. There must be a very
 sound technical reason not to do so. What is it?
 --


   Leonid Podolny   |  [EMAIL PROTECTED]
|
   Software Engineer|  +972- 3-7668960
   Linux Platform Team  |  +972-54-5696948

 =
 To unsubscribe, send mail to [EMAIL PROTECTED] with
 the word unsubscribe in the message body, e.g., run the command
 echo unsubscribe | mail [EMAIL PROTECTED]





-- 
Constantine Shulyupin
Freelance Embedded Linux Engineer
054-4234440
http://www.linuxdriver.co.il/

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word unsubscribe in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: gcc thoughts

2008-01-15 Thread Tzafrir Cohen
On Tue, Jan 15, 2008 at 01:47:22PM +0200, Constantine Shulyupin wrote:
 1. compilation could be broken and you  still need to browse it
 2. gcc don't know about cpp (preprocessor) defines
 more tricks:
  gcc -E gives you preprocessed file and you could check defines and  ifdefs
  objdump -S - gives you disassemble

You meant: gcc -S, to save the middleware.

-- 
Tzafrir Cohen | [EMAIL PROTECTED] | VIM is
http://tzafrir.org.il || a Mutt's
[EMAIL PROTECTED] ||  best
ICQ# 16849754 || friend

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word unsubscribe in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: gcc thoughts

2008-01-15 Thread Leonid Podolny

Constantine Shulyupin wrote:

1. compilation could be broken and you  still need to browse it

Yes, but you can always revert to cscope to solve compilation errors.


2. gcc don't know about cpp (preprocessor) defines
First, cpp could pass this info via intermediate files. Second, this 
info info somehow does reach a compiler, because a debuginfo ELF section 
contains information about a file and a line number every instruction 
came from.



more tricks:
 gcc -E gives you preprocessed file and you could check defines and  ifdefs
 objdump -S - gives you disassemble


Yes, I know. Why?

--


 Leonid Podolny   |  [EMAIL PROTECTED]
  |
 Software Engineer|  +972- 3-7668960
 Linux Platform Team  |  +972-54-5696948

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word unsubscribe in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: gcc thoughts

2008-01-15 Thread Constantine Shulyupin
-S too

On Jan 15, 2008 2:45 PM, Tzafrir Cohen [EMAIL PROTECTED] wrote:
 On Tue, Jan 15, 2008 at 01:47:22PM +0200, Constantine Shulyupin wrote:
  1. compilation could be broken and you  still need to browse it
  2. gcc don't know about cpp (preprocessor) defines
  more tricks:
   gcc -E gives you preprocessed file and you could check defines and  ifdefs
   objdump -S - gives you disassemble

 You meant: gcc -S, to save the middleware.

 --
 Tzafrir Cohen | [EMAIL PROTECTED] | VIM is
 http://tzafrir.org.il || a Mutt's
 [EMAIL PROTECTED] ||  best
 ICQ# 16849754 || friend


 =
 To unsubscribe, send mail to [EMAIL PROTECTED] with
 the word unsubscribe in the message body, e.g., run the command
 echo unsubscribe | mail [EMAIL PROTECTED]





-- 
Constantine Shulyupin
Freelance Embedded Linux Engineer
054-4234440
http://www.linuxdriver.co.il/

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word unsubscribe in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: gcc thoughts

2008-01-15 Thread Constantine Shulyupin
On Jan 15, 2008 2:28 PM, Leonid Podolny [EMAIL PROTECTED] wrote:
 Constantine Shulyupin wrote:
  1. compilation could be broken and you  still need to browse it
 Yes, but you can always revert to cscope to solve compilation errors.
If you could revert, why do need duplicated functionality in gcc?


  2. gcc don't know about cpp (preprocessor) defines
 First, cpp could pass this info via intermediate files. Second, this
 info info somehow does reach a compiler, because a debuginfo ELF section
 contains information about a file and a line number every instruction
 came from.
Tell me please how info of #define goes to debuginfo?

  more tricks:
   gcc -E gives you preprocessed file and you could check defines and  ifdefs
   objdump -S - gives you disassemble
 
 Yes, I know. Why?
It it possible to generate ctags file from  objdump -S output and
other listings.


 --



   Leonid Podolny   |  [EMAIL PROTECTED]
|
   Software Engineer|  +972- 3-7668960
   Linux Platform Team  |  +972-54-5696948



-- 
Constantine Shulyupin
Freelance Embedded Linux Engineer
054-4234440
http://www.linuxdriver.co.il/

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word unsubscribe in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: Can't browse to some sites.

2008-01-15 Thread Shachar Shemesh

David Harel wrote:


Same (didn't help). Seems to me as something basic in Linux kernel.
Use tcpdump with the -w option and also -s 65535 to capture the 
traffic and post it somewhere. Let's try to debug this.


Shachar

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word unsubscribe in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: Can't browse to some sites.

2008-01-15 Thread David Harel


Aviram Jenik wrote:

 ifconfig eth0 mtu 1400
   
 Didn't help.
 

 Try:

 echo 409616384   131072   /proc/sys/net/ipv4/tcp_wmem
 echo 409687380   174760   /proc/sys/net/ipv4/tcp_rmem
   
Same (didn't help). Seems to me as something basic in Linux kernel.
 (I used to have the same problem and the above fixed it for me).

 - Aviram


   

-- 
Regards.

David Harel,

==

Home office +972 77 7657645
Fax:+972 77 7657645
Cellular:   +972 54 4534502
Snail Mail: Amuka
D.N Merom Hagalil
13802
Israel
Email:  [EMAIL PROTECTED]




Re: Can't browse to some sites.

2008-01-15 Thread Ori Idan
I had a similar problem. What I did was to set manually the DNS to use
and that solved the problem.


-- 

Ori idan


David Harel wrote:

 Hi there,


 At first this sounds real stupid so I apologize.
 I fail to connect to zap.co.il. other computers (MS) on my network go
 there with out any problems but another Gentoo (k2.4 and not updated
 at all) also fails to connect.
 Didn't notice any other site with similar problems.
 I tried everything I could.
 1. removed all protection definition on the firewall.
 2. removed all port forwarding on the firewall.
 3. removed all services on my client.
 4. changed my IP
 5. switched to wireless connection.
 6. tried different browsers such as FF, LYNX, IEs for Linux (IE6 on
 wine), Opera (lynx says: HTTP request sent; waiting for response).
 7. tried via different user.
 8. telnet zap.co.il 80
 9. use older kernel 2.6.20-gentoo-r8.
 10. check if I have iptables filtering things.

 My current configuration:
 Gentoo updated almost to the last bit. (had trouble with openssh
 openssl...)
 Kernel 2.6.23-gentoo-r3
 HW: Fujitsu Siemens S7020 laptop (intel dual...w 2G)

 -- 
 Regards.

 David Harel,

 ==

 Home office +972 77 7657645
 Fax:+972 77 7657645
 Cellular:   +972 54 4534502
 Snail Mail: Amuka
 D.N Merom Hagalil
 13802
 Israel
 Email:  [EMAIL PROTECTED]

   


=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word unsubscribe in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: gcc thoughts

2008-01-15 Thread Ori Idan
gcc as a compiler always work on a single file.

For a cross reference, you need something that knows all the files, this
is done by ld and it does create a cross reference, this is the map file.

However, during development, I still can not link (some files and
functions are broken) therefore I need different tool for the cross
reference.


-- 

Ori Idan


Leonid Podolny wrote:

 Hi, list,
 This letter is probably better suited to hackers-il, but I need help
 from people that are better acquainted with a development process of gcc.
 This morning, while browsing through pages of frustratingly irrelevant
 cscope output, I got an idea. In every kosher *nix development
 environment, the cross-references (i.e. jump to definition of this
 struct/function) are built by some crippled 3rd party tool (such as
 ctags, cscope or home-brewed set of elisp scrips). On the other hand,
 the only tool that actually knows what is going on during compilation
 is gcc, so it's only logical that it should build cross-references
 along the way.
 It would be simply fantastic. The index would reflect the actual set
 of #ifdef's I currently work with. It would always point you to the
 header file that was actually #include-d. It would be immediately
 useful to almost everyone in FOSS world.
 I have a couple of ideas, how it might be tailored into gcc running
 sequence. However, I'm a humble gcc user  and I have almost no
 experience with its inner workings.
 The idea by itself is so obvious and on-the-surface that it everyone
 using gcc must come up with it sooner or later. There must be a very
 sound technical reason not to do so. What is it?



=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word unsubscribe in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: gcc thoughts

2008-01-15 Thread Leonid Podolny

Ori Idan wrote:

gcc as a compiler always work on a single file.

For a cross reference, you need something that knows all the files, this
is done by ld and it does create a cross reference, this is the map file.

However, during development, I still can not link (some files and
functions are broken) therefore I need different tool for the cross
reference.




I thought that cc would drop aside a map file and pass a compiled file 
to assembler. This way it doesn't really interfere with 
one-file-at-a-time paradigm, because the map file is a by-product, it's 
not really passed to the assembler afterwards. A map file would hold 
only information about this specific .c file (preprocessed, i.e. along 
with its headers). It would include the information about the file for 
its external user, such as list of functions defined (name and file:line 
for every one), non-static variables (name and file:line), etc.
How to turn these files into something more useful is a different issue. 
 At a first stage, it's possible to write an external utility that 
would take specified map files, reverse the data (i.e. turn a.c defines 
func1(), func2() into func1() is defined in a.c and func2() is 
defined in a.c) and build common index. Then you would tailor it into 
makefiles to build project-wide index. The result will still be much 
better than cscope output, because you will never see header files that 
were never included (such as wrong architectures and not included code 
during kernel development). It will also correctly see your current 
settings of #ifdef's (again, in kernel, it means that it reflects your 
current .config). Cscope also sometimes fails to parse .c file 
correctly, such as failing to understand that some specific line is a 
function declaration if you put line feed between a returned value type 
and a name. This issue will also be gone -- the index is effectively 
built by the same semantical analyzer that compiler uses.
A disadvantages of this approach are also clear. The data reversing part 
is error-prone and actually means duplicating part of the functionality 
of ld, so this part should somehow move to ld. Or maybe not -- for 
example, duplicate symbols cause ld to fail, but should not be a problem 
for indexer. It all requires careful design.

Tell me if all the above makes any sense.


--


 Leonid Podolny   |  [EMAIL PROTECTED]
  |
 Software Engineer|  +972- 3-7668960
 Linux Platform Team  |  +972-54-5696948

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word unsubscribe in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: gcc thoughts

2008-01-15 Thread Leonid Podolny

Ori Idan wrote:

Leonid Podolny wrote:


Ori Idan wrote:

gcc as a compiler always work on a single file.

For a cross reference, you need something that knows all the files, this
is done by ld and it does create a cross reference, this is the map
file.

However, during development, I still can not link (some files and
functions are broken) therefore I need different tool for the cross
reference.



I thought that cc would drop aside a map file and pass a compiled file
to assembler. This way it doesn't really interfere with
one-file-at-a-time paradigm, because the map file is a by-product,
it's not really passed to the assembler afterwards. A map file would
hold only information about this specific .c file (preprocessed, i.e.
along with its headers). It would include the information about the
file for its external user, such as list of functions defined (name
and file:line for every one), non-static variables (name and
file:line), etc.
How to turn these files into something more useful is a different
issue.  At a first stage, it's possible to write an external utility
that would take specified map files, reverse the data (i.e. turn a.c
defines func1(), func2() into func1() is defined in a.c and
func2() is defined in a.c) and build common index. Then you would
tailor it into makefiles to build project-wide index. The result will
still be much better than cscope output, because you will never see
header files that were never included (such as wrong architectures and
not included code during kernel development). It will also correctly
see your current settings of #ifdef's (again, in kernel, it means that
it reflects your current .config). Cscope also sometimes fails to
parse .c file correctly, such as failing to understand that some
specific line is a function declaration if you put line feed between a
returned value type and a name. This issue will also be gone -- the
index is effectively built by the same semantical analyzer that
compiler uses.
A disadvantages of this approach are also clear. The data reversing
part is error-prone and actually means duplicating part of the
functionality of ld, so this part should somehow move to ld. Or maybe
not -- for example, duplicate symbols cause ld to fail, but should not
be a problem for indexer. It all requires careful design.
Tell me if all the above makes any sense.



Map file is not created by gcc, it is created by ld that is called by
gcc after all files are compiled to object files.
So it has nothing to do with the assembler.



Woops, I wasn't aware of that, so I called map file to the files that 
 my indexer would produce.

sed s/map/index/g all the above

--


 Leonid Podolny   |  [EMAIL PROTECTED]
  |
 Software Engineer|  +972- 3-7668960
 Linux Platform Team  |  +972-54-5696948

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word unsubscribe in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: gcc thoughts

2008-01-15 Thread Ori Idan
Leonid Podolny wrote:

 Ori Idan wrote:
 gcc as a compiler always work on a single file.

 For a cross reference, you need something that knows all the files, this
 is done by ld and it does create a cross reference, this is the map
 file.

 However, during development, I still can not link (some files and
 functions are broken) therefore I need different tool for the cross
 reference.



 I thought that cc would drop aside a map file and pass a compiled file
 to assembler. This way it doesn't really interfere with
 one-file-at-a-time paradigm, because the map file is a by-product,
 it's not really passed to the assembler afterwards. A map file would
 hold only information about this specific .c file (preprocessed, i.e.
 along with its headers). It would include the information about the
 file for its external user, such as list of functions defined (name
 and file:line for every one), non-static variables (name and
 file:line), etc.
 How to turn these files into something more useful is a different
 issue.  At a first stage, it's possible to write an external utility
 that would take specified map files, reverse the data (i.e. turn a.c
 defines func1(), func2() into func1() is defined in a.c and
 func2() is defined in a.c) and build common index. Then you would
 tailor it into makefiles to build project-wide index. The result will
 still be much better than cscope output, because you will never see
 header files that were never included (such as wrong architectures and
 not included code during kernel development). It will also correctly
 see your current settings of #ifdef's (again, in kernel, it means that
 it reflects your current .config). Cscope also sometimes fails to
 parse .c file correctly, such as failing to understand that some
 specific line is a function declaration if you put line feed between a
 returned value type and a name. This issue will also be gone -- the
 index is effectively built by the same semantical analyzer that
 compiler uses.
 A disadvantages of this approach are also clear. The data reversing
 part is error-prone and actually means duplicating part of the
 functionality of ld, so this part should somehow move to ld. Or maybe
 not -- for example, duplicate symbols cause ld to fail, but should not
 be a problem for indexer. It all requires careful design.
 Tell me if all the above makes any sense.


Map file is not created by gcc, it is created by ld that is called by
gcc after all files are compiled to object files.
So it has nothing to do with the assembler.

-- 
Ori Idan




=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word unsubscribe in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: gcc thoughts

2008-01-15 Thread Constantine Shulyupin
BTW, I have script, that makes tags for Linux kernel only for
configured architecture.

On Jan 15, 2008 5:05 PM, Leonid Podolny [EMAIL PROTECTED] wrote:

 were never included (such as wrong architectures and not included code
 during kernel development).

-- 
Constantine Shulyupin
Freelance Embedded Linux Engineer
054-4234440
http://www.linuxdriver.co.il/

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word unsubscribe in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: Can't browse to some sites.

2008-01-15 Thread David Harel


Shachar Shemesh wrote:
 David Harel wrote:

 Same (didn't help). Seems to me as something basic in Linux kernel.
 Use tcpdump with the -w option and also -s 65535 to capture the
 traffic and post it somewhere. 
Tried to use pastebin.com but the file is binary. Any suggestion?
 Let's try to debug this.

 Shachar


-- 
Regards.

David Harel,

==

Home office +972 77 7657645
Fax:+972 77 7657645
Cellular:   +972 54 4534502
Snail Mail: Amuka
D.N Merom Hagalil
13802
Israel
Email:  [EMAIL PROTECTED]



=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word unsubscribe in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: gcc thoughts

2008-01-15 Thread Constantine Shulyupin
This script builds name file:line table from object/exe file. It is
easy to make tags from this.
objsrc()
{
nm --defined $1 | cut -f 1 -d ' ' | addr2line -e bin/eb_client
 /tmp/lines
nm --defined $1 | cut -f 3 -d ' '  /tmp/name
paste /tmp/name /tmp/lines
}


On Jan 15, 2008 12:57 PM, Leonid Podolny [EMAIL PROTECTED] wrote:
 Hi, list,
 This letter is probably better suited to hackers-il, but I need help
 from people that are better acquainted with a development process of gcc.
 This morning, while browsing through pages of frustratingly irrelevant
 cscope output, I got an idea. In every kosher *nix development
 environment, the cross-references (i.e. jump to definition of this
 struct/function) are built by some crippled 3rd party tool (such as
 ctags, cscope or home-brewed set of elisp scrips). On the other hand,
 the only tool that actually knows what is going on during compilation is
 gcc, so it's only logical that it should build cross-references along
 the way.
 It would be simply fantastic. The index would reflect the actual set of
 #ifdef's I currently work with. It would always point you to the header
 file that was actually #include-d. It would be immediately useful to
 almost everyone in FOSS world.
 I have a couple of ideas, how it might be tailored into gcc running
 sequence. However, I'm a humble gcc user  and I have almost no
 experience with its inner workings.
 The idea by itself is so obvious and on-the-surface that it everyone
 using gcc must come up with it sooner or later. There must be a very
 sound technical reason not to do so. What is it?
 --


   Leonid Podolny   |  [EMAIL PROTECTED]
|
   Software Engineer|  +972- 3-7668960
   Linux Platform Team  |  +972-54-5696948

 =
 To unsubscribe, send mail to [EMAIL PROTECTED] with
 the word unsubscribe in the message body, e.g., run the command
 echo unsubscribe | mail [EMAIL PROTECTED]





-- 
Constantine Shulyupin
Freelance Embedded Linux Engineer
054-4234440
http://www.linuxdriver.co.il/

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word unsubscribe in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: SCSI Mischif

2008-01-15 Thread Noam Meltzer
Hi,
This sounds a bit like an hardware problem. Have you investigated in this
direction?

- Noam
On Jan 15, 2008 10:29 AM, Noam Rathaus [EMAIL PROTECTED] wrote:

 Hi,

 I have come across a weird behavior of my SCSI:
 1) It tends every once if a while to go offline
 2) It tends on reboots (might happen after step 1, but not sure if only
 after
 step 1) to switch places, disks that used to be sda are now sdb etc.

 Anyone seen this?

 I m running:
 2.6.18-4-686

 Based on Debian Stable

 04:00.0 SCSI storage controller: LSI Logic / Symbios Logic 53c1030 PCI-X
 Fusion-MPT Dual Ultra320 SCSI (rev 08)

 Any other details just ask.

 --
 Noam Rathaus
 CTO
 [EMAIL PROTECTED]
 http://www.beyondsecurity.com

 Know that you are safe.

 Beyond Security Finalist for the Red Herring 100 Global Awards 2007

 =
 To unsubscribe, send mail to [EMAIL PROTECTED] with
 the word unsubscribe in the message body, e.g., run the command
 echo unsubscribe | mail [EMAIL PROTECTED]




Re: SCSI Mischif

2008-01-15 Thread Noam Rathaus
Hi,

Hrm, before I go and start my service agreement that usually results in a 
eyebrow raising on THIS IS LINUX! (on the same scale of THIS IS SPARTA :D) 
I want to confirm its not my Kernel or anything else it might be.

Hardware failures such as this are hard to confirm, verify and display to the 
repair guy.

On Tuesday 15 January 2008 21:19:01 Noam Meltzer wrote:
 Hi,
 This sounds a bit like an hardware problem. Have you investigated in this
 direction?

 - Noam

 On Jan 15, 2008 10:29 AM, Noam Rathaus [EMAIL PROTECTED] wrote:
  Hi,
 
  I have come across a weird behavior of my SCSI:
  1) It tends every once if a while to go offline
  2) It tends on reboots (might happen after step 1, but not sure if only
  after
  step 1) to switch places, disks that used to be sda are now sdb etc.
 
  Anyone seen this?
 
  I m running:
  2.6.18-4-686
 
  Based on Debian Stable
 
  04:00.0 SCSI storage controller: LSI Logic / Symbios Logic 53c1030 PCI-X
  Fusion-MPT Dual Ultra320 SCSI (rev 08)
 
  Any other details just ask.
 
  --
  Noam Rathaus
  CTO
  [EMAIL PROTECTED]
  http://www.beyondsecurity.com
 
  Know that you are safe.
 
  Beyond Security Finalist for the Red Herring 100 Global Awards 2007
 
  =
  To unsubscribe, send mail to [EMAIL PROTECTED] with
  the word unsubscribe in the message body, e.g., run the command
  echo unsubscribe | mail [EMAIL PROTECTED]



-- 
Noam Rathaus
CTO
[EMAIL PROTECTED]
http://www.beyondsecurity.com

Know that you are safe.

Beyond Security Finalist for the Red Herring 100 Global Awards 2007

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word unsubscribe in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: SCSI Mischif

2008-01-15 Thread Noam Meltzer
Hi,
I have many customers with similar kinds of SCSI controllers running mostly
RHEL4 (though many are running RHEL3  5, and a very small part of them
non-enterprise Linuxes) and never experienced such a problem.
I do not believe that this is a driver issue, and this only leads me to
suspect that this is an hardware problem.

Actually, if you'll purchase a branded server (Sun, IBM, etc.), no one will
blame the Linux. But, you might be facing support issues because of the
uncertified  untested Linux flavor. (And I wouldn't blame them, I did
encounter a few problems in the past which involved specific community Linux
releases and branded hardware)

- Noam

On Jan 15, 2008 9:24 PM, Noam Rathaus [EMAIL PROTECTED] wrote:

 Hi,

 Hrm, before I go and start my service agreement that usually results in a
 eyebrow raising on THIS IS LINUX! (on the same scale of THIS IS SPARTA
 :D)
 I want to confirm its not my Kernel or anything else it might be.

 Hardware failures such as this are hard to confirm, verify and display to
 the
 repair guy.

 On Tuesday 15 January 2008 21:19:01 Noam Meltzer wrote:
  Hi,
  This sounds a bit like an hardware problem. Have you investigated in
 this
  direction?
 
  - Noam
 
  On Jan 15, 2008 10:29 AM, Noam Rathaus [EMAIL PROTECTED] wrote:
   Hi,
  
   I have come across a weird behavior of my SCSI:
   1) It tends every once if a while to go offline
   2) It tends on reboots (might happen after step 1, but not sure if
 only
   after
   step 1) to switch places, disks that used to be sda are now sdb etc.
  
   Anyone seen this?
  
   I m running:
   2.6.18-4-686
  
   Based on Debian Stable
  
   04:00.0 SCSI storage controller: LSI Logic / Symbios Logic 53c1030
 PCI-X
   Fusion-MPT Dual Ultra320 SCSI (rev 08)
  
   Any other details just ask.
  
   --
   Noam Rathaus
   CTO
   [EMAIL PROTECTED]
   http://www.beyondsecurity.com
  
   Know that you are safe.
  
   Beyond Security Finalist for the Red Herring 100 Global Awards 2007
  
   =
   To unsubscribe, send mail to [EMAIL PROTECTED] with
   the word unsubscribe in the message body, e.g., run the command
   echo unsubscribe | mail [EMAIL PROTECTED]



 --
 Noam Rathaus
 CTO
 [EMAIL PROTECTED]
 http://www.beyondsecurity.com

 Know that you are safe.

 Beyond Security Finalist for the Red Herring 100 Global Awards 2007



Re: Can't browse to some sites.

2008-01-15 Thread Dotan Shavit
On Tuesday 15 January 2008, David Harel wrote:
 Shachar Shemesh wrote:
  David Harel wrote:
  Same (didn't help). Seems to me as something basic in Linux kernel.
 
  Use tcpdump with the -w option and also -s 65535 to capture the
  traffic and post it somewhere.

 Tried to use pastebin.com but the file is binary. Any suggestion?
Open the file with ethereal (AKA wireshark) and look for the following 
packets:
1. DNS query
2. DNS reply
3. SYN
4. SYN ACK (probably missing)

Which packets are missing?

#

  Let's try to debug this.
 
  Shachar



=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word unsubscribe in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: SCSI Mischif

2008-01-15 Thread guy keren


1. the order of assigning a SCSI Device file to a SCSI device, is the 
order of discovery. for example: if you have two internal SCSI 
controllers, the order of loading their drivers will change the device 
file assignment.


sometimes, the existene of a USB disk-on-key in the system could change 
things - if the relevant USB driver, for some reason, was loaded before 
the driver for the SCSI disks.


2. devices in Linux go offline too easily - it's a major headache in SAN 
environments that support multi-pathing (i.e. where failure to send I/O 
operations has no reason to put a path as being offline).


i would suggest that you look in your system logs - you should have long 
error messages before the device was put offline. basically, if a SCSI 
request timed out, the Linux kernel employs some recovery operatoins 
that include device reset, target reset and bus reset. if they all fail 
- the kernel marks the device as offline, and this is not always 
recoverable without a reboot (you can, in some distributions and kernel 
versions, mark the device as 'running' again - but then it might still 
get 'blocked').


if you can tell us a little more about the machine's confiugration - we 
may be able to tell you more about problem #1. regarding problem #2 - 
look in the logs, and see what you get. you'll need to translate the 
SCSI error codes into meaningfull things - look in 
/usr/include/scsi/scsi.h for the different flags that together comprise 
the SCSI error you see in the logs.


--guy

Noam Rathaus wrote:

Hi,

Hrm, before I go and start my service agreement that usually results in a 
eyebrow raising on THIS IS LINUX! (on the same scale of THIS IS SPARTA :D) 
I want to confirm its not my Kernel or anything else it might be.


Hardware failures such as this are hard to confirm, verify and display to the 
repair guy.


On Tuesday 15 January 2008 21:19:01 Noam Meltzer wrote:

Hi,
This sounds a bit like an hardware problem. Have you investigated in this
direction?

- Noam

On Jan 15, 2008 10:29 AM, Noam Rathaus [EMAIL PROTECTED] wrote:

Hi,

I have come across a weird behavior of my SCSI:
1) It tends every once if a while to go offline
2) It tends on reboots (might happen after step 1, but not sure if only
after
step 1) to switch places, disks that used to be sda are now sdb etc.

Anyone seen this?

I m running:
2.6.18-4-686

Based on Debian Stable

04:00.0 SCSI storage controller: LSI Logic / Symbios Logic 53c1030 PCI-X
Fusion-MPT Dual Ultra320 SCSI (rev 08)

Any other details just ask.

--
Noam Rathaus
CTO
[EMAIL PROTECTED]
http://www.beyondsecurity.com

Know that you are safe.

Beyond Security Finalist for the Red Herring 100 Global Awards 2007

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word unsubscribe in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]







=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word unsubscribe in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: Gnu make or replacement?

2008-01-15 Thread Maxim Veksler
On Jan 13, 2008 2:58 PM, Ira Abramov [EMAIL PROTECTED] wrote:
 I'm helping a client here to start a project from almost scratch. it
 involves java servelets for Tomcat, building with MAVEN, a few external
 GPL tarballs that are downloaded from the web, unzipped and compiled (or
 maybe we'll check them into the CVS) and some glue scripts in bash.

 Make is the standard, I just wodered how many of you tried rake and
 other tools that compete against it, and have an opinion...


If it's C / C++ code that you will be compiling then scons is bullet
proof, you will need to learn how to wear the vest though...

 Thanks,
 Ira.

 --
 The cream in your coffee
 Ira Abramov
 http://ira.abramov.org/email/

 =
 To unsubscribe, send mail to [EMAIL PROTECTED] with
 the word unsubscribe in the message body, e.g., run the command
 echo unsubscribe | mail [EMAIL PROTECTED]





-- 
Cheers,
Maxim Veksler

Free as in Freedom - Do u GNU ?

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word unsubscribe in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]