|
View:
New views
9 Messages
—
Rating Filter:
Alert me
|
|
|
Building Slashem on Solaris 10Hi
After several successful builds of Slashem on various Linux boxes, I thought that I'd try to build it on my SunBlade 100 (Ultrasparc) running Solaris 10. Having done a bit of Googling, I have been unable to find anything at all on configuring for Solaris 10, so have tried a) leaving at Unix defaults and b) defining SUNOS4 in unixconf.h. Looks like all the Slashem references to Solaris - of which there are a good few - are to ancient versions. No matter what I do, I always get this straight off: touch ../src/config.h-t cc -O -I../include -c monst.c In file included from monst.c:30: ../include/color.h:71: error: field `match' has incomplete type I'm using gcc with specs thus: Reading specs from /usr/local/lib/gcc/sparc-sun-solaris2.10/3.4.6/specs Configured with: ../configure --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld --enable-shared --enable-languages=c,c++,f77 Thread model: posix gcc version 3.4.6 I have to confess that whilst I have used/administered Solaris before, this is the first time that I have tried to build anything and am only really familiar with Linux/GNU, so don't even know what compiler flags should be set. Any help on this would be much appreciated. Cheers M -- Matthew Smith IT Consultancy & Web Application Development Business: http://www.kbc.net.au/ Personal: http://www.smiffysplace.com/ LinkedIn: http://www.linkedin.com/in/smiffy ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Slashem-discuss mailing list Slashem-discuss@... https://lists.sourceforge.net/lists/listinfo/slashem-discuss |
|
|
Re: Building Slashem on Solaris 10On 2006-10-28 11:16:34 AM, Matthew Smith wrote:
> Hi > > After several successful builds of Slashem on various Linux boxes, I > thought that I'd try to build it on my SunBlade 100 (Ultrasparc) > running Solaris 10. > > Having done a bit of Googling, I have been unable to find anything at > all on configuring for Solaris 10, so have tried a) leaving at Unix > defaults and b) defining SUNOS4 in unixconf.h. Looks like all the > Slashem references to Solaris - of which there are a good few - are > to ancient versions. > > No matter what I do, I always get this straight off: > > touch ../src/config.h-t > cc -O -I../include -c monst.c > In file included from monst.c:30: > ../include/color.h:71: error: field `match' has incomplete type This looks like a bug in Slash'EM. Can you try changing the last few lines of unixconf.h so that it checks RE_SYNTAX_POSIX_BASIC instead (the default really ought to be POSIX here). The section then becomes: #if defined(USE_REGEX_MATCH) # ifdef RE_SYNTAX_POSIX_BASIC # define POSIX_REGEX # else # define GNU_REGEX # endif #endif Logged as bug #1586216: http://sourceforge.net/tracker/index.php?func=detail&aid=1586216&group_id=9746&atid=109746 Cheers, Ali. ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Slashem-discuss mailing list Slashem-discuss@... https://lists.sourceforge.net/lists/listinfo/slashem-discuss |
|
|
Re: Building Slashem on Solaris 10Quoth J. Ali Harlow at 10/28/06 21:16...
> This looks like a bug in Slash'EM. Can you try changing the last few > lines of unixconf.h so that it checks RE_SYNTAX_POSIX_BASIC instead > (the default really ought to be POSIX here). The section then becomes: > > #if defined(USE_REGEX_MATCH) > # ifdef RE_SYNTAX_POSIX_BASIC > # define POSIX_REGEX > # else > # define GNU_REGEX > # endif > #endif > > Logged as bug #1586216: > http://sourceforge.net/tracker/index.php?func=detail&aid=1586216&group_id=9746&atid=109746 Thanks for that. Based on what you have said, I got it working by losing the ifs and replacing that entire section with: #define POSIX_REGEX ...there is no reference to RE_SYNTAX_POSIX_BASIC anywhere in the Slashem source tree, so didn't work with the suggestion as-is. For the record, I did my build using gcc, bison and flex from www.sunfreeware.com, so the appropriate settings need to be made in util/Makefile. I will have another go at this, using Sun-provided tools (when I can find the language pack for the compiler) and see how I go. I will document all this on my site, as I was unable to find Solaris 10 specific information via Google. Cheers M -- Matthew Smith IT Consultancy & Web Application Development Business: http://www.kbc.net.au/ Personal: http://www.smiffysplace.com/ LinkedIn: http://www.linkedin.com/in/smiffy ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Slashem-discuss mailing list Slashem-discuss@... https://lists.sourceforge.net/lists/listinfo/slashem-discuss |
|
|
Re: Building Slashem on Solaris 10On 2006-10-28 11:08:40 PM, Matthew Smith wrote:
> Thanks for that. Based on what you have said, I got it working by > losing the ifs and replacing that entire section with: > #define POSIX_REGEX > > ...there is no reference to RE_SYNTAX_POSIX_BASIC anywhere in the > Slashem source tree, so didn't work with the suggestion as-is. It should be in the system supplied regex.h (assuming Solaris 10 has POSIX regular expressions). What I forgot is that we included regex.h _after_ unixconf.h. I've put together a new patch which moves this into unixconf.h available from: http://sourceforge.net/tracker/download.php?group_id=9746&atid=109746&file_id=200450&aid=1586216 (and also attached to this mail.) > For the record, I did my build using gcc, bison and flex from > www.sunfreeware.com, so the appropriate settings need to be made in > util/Makefile. > > I will have another go at this, using Sun-provided tools (when I can > find the language pack for the compiler) and see how I go. I will > document all this on my site, as I was unable to find Solaris 10 > specific information via Google. Thanks. If you want to help getting compiling under Solaris 10 to work out of the box, it would probably be best to get the development version and try the new autoconf system. This should work anyway, and if not can probably be made to work relatively easily. Cheers, Ali. [1586216-2.patch] Index: include/color.h =================================================================== RCS file: /cvsroot/slashem/slashem/include/color.h,v retrieving revision 1.7 diff -a -u -r1.7 color.h --- include/color.h 18 Sep 2005 14:42:02 -0000 1.7 +++ include/color.h 29 Oct 2006 00:18:52 -0000 @@ -5,12 +5,6 @@ #ifndef COLOR_H #define COLOR_H -#ifdef MENU_COLOR -# ifdef USE_REGEX_MATCH -# include <regex.h> -# endif -#endif - /* * The color scheme used is tailored for an IBM PC. It consists of the * standard 8 colors, folowed by their bright counterparts. There are Index: include/unixconf.h =================================================================== RCS file: /cvsroot/slashem/slashem/include/unixconf.h,v retrieving revision 1.19 diff -a -u -r1.19 unixconf.h --- include/unixconf.h 14 Aug 2005 19:11:53 -0000 1.19 +++ include/unixconf.h 29 Oct 2006 00:18:53 -0000 @@ -423,8 +423,9 @@ #endif /* LINUX */ #endif /* GNOME_GRAPHICS */ -#if defined(USE_REGEX_MATCH) -# if defined(__FreeBSD__) || defined(__OpenBSD__) +#if defined(MENU_COLOR) && defined(USE_REGEX_MATCH) +# include <regex.h> +# ifdef RE_SYNTAX_POSIX_BASIC # define POSIX_REGEX # else # define GNU_REGEX ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Slashem-discuss mailing list Slashem-discuss@... https://lists.sourceforge.net/lists/listinfo/slashem-discuss |
|
|
Re: Building Slashem on Solaris 10Quoth J. Ali Harlow at 10/29/06 10:56...
> On 2006-10-28 11:08:40 PM, Matthew Smith wrote: >> ...there is no reference to RE_SYNTAX_POSIX_BASIC anywhere in the >> Slashem source tree, so didn't work with the suggestion as-is. > > It should be in the system supplied regex.h (assuming Solaris 10 has > POSIX regular expressions). What I forgot is that we included regex.h > _after_ unixconf.h. I've put together a new patch which moves this into > unixconf.h available from: Had a quick look in /usr/include/regex.h - no sign of that. Built fine when I implicitly specified using the POSIX regex so wonder if we've got a case of broken POSIX compliance. Other than using gcc rather than Sun's cc (I can't find the support files I need to test this), the build ran fine with Sun's tools as supplied with the OS. When I get a mo, I'll pick up the development version of Slashem as suggested and document what is needed to get that to build on this platform. First thing for me to address is actually a system issue - getting colour working. SSHing in from my Linux boxes only gets me black and white. My goal is to get things set up so that going into the Solaris box looks no different from going into another Linux box. Fun. Cheers M -- Matthew Smith IT Consultancy & Web Application Development Business: http://www.kbc.net.au/ Personal: http://www.smiffysplace.com/ LinkedIn: http://www.linkedin.com/in/smiffy ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Slashem-discuss mailing list Slashem-discuss@... https://lists.sourceforge.net/lists/listinfo/slashem-discuss |
|
|
Re: Building Slashem on Solaris 10Quoth J. Ali Harlow at 10/29/2006 10:56 AM...
> Thanks. If you want to help getting compiling under Solaris 10 to work > out of the box, it would probably be best to get the development > version and try the new autoconf system. This should work anyway, and > if not can probably be made to work relatively easily. Should have done this first ;-) Very, very easy! For the record, here's what I did: The following is based on Solaris 10 2006/06, running on a SunBlade 100 (Ultrasparc). Installation was "Full plus OEM", the most packages from a standard install option. Testing was done with a new user created for the purpose (none of my added GNU stuff in PATH), running with a high (1001) UID and in group staff. This user's shell was the default /bin/sh. 1) The user's PATH needs to be set to pick up the required build tools: $ PATH=$PATH:/usr/ccs/bin:/usr/sfw/bin $ export PATH 2) gunzip se008e0.tar.gz 3) tar -xvf se008e0.tar 4) cd slashem-0.0.8E0 5) ./configure 6) make 7) su 8) You will need to set the root PATH as for the normal user: # PATH=$PATH:/usr/ccs/bin:/usr/sfw/bin # export PATH 9) make install ...it really was that simple. No errors, no changing any files at all, although I didn't have the user 'games' created, so things didn't get chown'd. As I run this machine "headless" and am ssh'ing in from Linux boxes, I have found that you need to set TERM in .profile on the Solaris box: TERM=dtterm export TERM Without this, you may not get colour display. Running with CCFLAGS=-m64 didn't make any noticeable difference - this may be the default for the supplied version of gcc, anyway. Cheers M -- Matthew Smith IT Consultancy & Web Application Development Business: http://www.kbc.net.au/ Personal: http://www.smiffysplace.com/ LinkedIn: http://www.linkedin.com/in/smiffy ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Slashem-discuss mailing list Slashem-discuss@... https://lists.sourceforge.net/lists/listinfo/slashem-discuss |
|
|
Re: Building Slashem on Solaris 10On 2006-10-29 01:55:50 AM, Matthew Smith wrote:
> Had a quick look in /usr/include/regex.h - no sign of that. Built > fine when I implicitly specified using the POSIX regex so wonder if > we've got a case of broken POSIX compliance. Well, not so much broken as just not claiming POSIX compliance. I've committed a fix which now tests for GNU regex and assumes POSIX-style regex otherwise. Thanks for your help, Ali. ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Slashem-discuss mailing list Slashem-discuss@... https://lists.sourceforge.net/lists/listinfo/slashem-discuss |
|
|
Re: Building Slashem on Solaris 10On 2006-10-29 03:42:45 AM, Matthew Smith wrote:
[snip re. building using the autoconf system] > ...it really was that simple. No errors, no changing any files at > all, although I didn't have the user 'games' created, so things > didn't get chown'd. Ok. We should probably check for that. > As I run this machine "headless" and am ssh'ing in from Linux boxes, > I have found that you need to set TERM in .profile on the Solaris box: > TERM=dtterm > export TERM > > Without this, you may not get colour display. dtterm is probably compatible enough with the linux terminal for this to work. If you have problems, try using xterm instead. > Running with CCFLAGS=-m64 didn't make any noticeable difference - > this may be the default for the supplied version of gcc, anyway. Quite possible. Sometimes setting the model in CFLAGS has problems. It's generally better to use CC="gcc -m64" (or whatever). Cheers, Ali. ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Slashem-discuss mailing list Slashem-discuss@... https://lists.sourceforge.net/lists/listinfo/slashem-discuss |
|
|
|
| Free embeddable forum powered by Nabble | Forum Help |