Re: [PATCH] Fix building kernel under Solaris 11_snv

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jan Engelhardt
Date: Friday, March 9, 2007 - 3:55 pm

On Mar 9 2007 23:23, Sam Ravnborg wrote:


Reference: http://lkml.org/lkml/2007/3/8/368
Signed-off-by: Jan Engelhardt <jengelh@gmx.de>

Happy cherrypicking.
More comments below.


I am not sure, but I would tend to say "no".

kallsyms.c:
	p1 = table[i].sym;                                              
                                                                                
	/* find the token on the symbol */                              
	p2 = memmem(p1, len, str, 2);                                   
	if (!p2) continue;                                              

My first impression would be that 'p1' is a multi-nul-terminated string
array ("foo\0bar\0next\0symbol\0..."), much like the entire .strtab
section (I have not actually bothered to check, so it is a raw guess), and
I do not think strstr would replace memmem here if that was the case.


Humm humm. Linux's /usr/include does not have any (glibc) file with the
string __EXTENSIONS__ in it. Though, the linux manpage for fileno() does
not mention fileno() conforming to anything. Under Linux, fileno() is
wrapped inside __USE_POSIX, and the comments in Solaris's headers also
indicate it is something posixy.

Perhaps have something like

#ifdef __sun__
#	define __EXTENSIONS__ 1
#endif


Exactly.


How much do we want to support Solaris anyway? It's like trying to make
ICC a thoroughly supported compiler. Hey, do we want to support GCC
compilation under BSD too? What about CYGWIN - there have been efforts
before! :p  Seriously, what build platforms do we want to support in
the near future?



Thanks,
Jan
-- 
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] Fix building kernel under Solaris, Deepak Saxena, (Tue Mar 6, 11:09 am)
Re: [PATCH] Fix building kernel under Solaris, Deepak Saxena, (Tue Mar 6, 11:22 am)
Re: [PATCH] Fix building kernel under Solaris, Sam Ravnborg, (Tue Mar 6, 12:23 pm)
Re: [PATCH] Fix building kernel under Solaris, Christoph Hellwig, (Wed Mar 7, 2:42 am)
Re: [PATCH] Fix building kernel under Solaris, Jan Engelhardt, (Wed Mar 7, 3:45 pm)
Re: [PATCH] Fix building kernel under Solaris, Christoph Hellwig, (Thu Mar 8, 1:35 am)
Re: [PATCH] Fix building kernel under Solaris, Jan Engelhardt, (Thu Mar 8, 1:43 pm)
Re: [PATCH] Fix building kernel under Solaris, Sam Ravnborg, (Thu Mar 8, 2:25 pm)
Re: [PATCH] Fix building kernel under Solaris 11_snv, Jan Engelhardt, (Thu Mar 8, 3:01 pm)
Re: [PATCH] Fix building kernel under Solaris 11_snv, Sam Ravnborg, (Fri Mar 9, 12:00 pm)
Re: [PATCH] Fix building kernel under Solaris 11_snv, Jan Engelhardt, (Fri Mar 9, 1:16 pm)
Re: [PATCH] Fix building kernel under Solaris 11_snv, Sam Ravnborg, (Fri Mar 9, 3:23 pm)
Re: [PATCH] Fix building kernel under Solaris 11_snv, Jan Engelhardt, (Fri Mar 9, 3:55 pm)
Re: [PATCH] Fix building kernel under Solaris 11_snv, Christoph Hellwig, (Sat Mar 10, 2:37 am)