Thread: [Cpu-users] porting cpu to solaris
Brought to you by:
matheny
|
From: Greg M. <g.m...@it...> - 2003-10-16 15:21:43
|
as a newcomer to cpu let me first say, this software is great on linux. I've managed to compile it on solaris by providing a few libraries that are required but when it is run I get a segfault: sidhean gmatt $ gdb cpu GNU gdb 5.3 Copyright 2002 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "sparc-sun-solaris2.8"... (gdb) run Starting program: /usr/local/bin/cpu Program received signal SIGSEGV, Segmentation fault. 0xff0b3ba4 in populateGlobals () at commandline.c:704 704 globalLdap->dn = buildDn ((operation > 2) ? GROUPADD : USERADD, (gdb) bt #0 0xff0b3ba4 in populateGlobals () at commandline.c:704 #1 0xff0b8c54 in CPU_init (argc=0, argv=0x0) at ldap.c:60 #2 0x00010b34 in main (argc=1, argv=0xffbefa34) at cpu.c:95 (gdb) I changed bitvector.h to use inttypes.h instead of stdint.h and provided: features.h bits/wchar.h bits/wordsize.h sys/cdefs.h gnu/stubs.h for compilation I used gcc3.2.2. I saw a couple of requests on the archives about solaris but no confirmation of anyone running it. GREG -- Greg Matthews iTSS Wallingford 01491 692445 |
|
From: Blake M. <bma...@pu...> - 2003-10-16 16:08:47
|
Hi Greg, Did these changes make running CPU under Solaris possible? -Blake Whatchu talkin' 'bout, Willis? > as a newcomer to cpu let me first say, this software is great on linux. > > I've managed to compile it on solaris by providing a few libraries that > are required but when it is run I get a segfault: > > sidhean gmatt $ gdb cpu > GNU gdb 5.3 > Copyright 2002 Free Software Foundation, Inc. > GDB is free software, covered by the GNU General Public License, and you > are > welcome to change it and/or distribute copies of it under certain > conditions. > Type "show copying" to see the conditions. > There is absolutely no warranty for GDB. Type "show warranty" for > details. > This GDB was configured as "sparc-sun-solaris2.8"... > (gdb) run > Starting program: /usr/local/bin/cpu > > Program received signal SIGSEGV, Segmentation fault. > 0xff0b3ba4 in populateGlobals () at commandline.c:704 > 704 globalLdap->dn = buildDn ((operation > 2) ? GROUPADD : > USERADD, > (gdb) bt > #0 0xff0b3ba4 in populateGlobals () at commandline.c:704 > #1 0xff0b8c54 in CPU_init (argc=0, argv=0x0) at ldap.c:60 > #2 0x00010b34 in main (argc=1, argv=0xffbefa34) at cpu.c:95 > (gdb) > > I changed bitvector.h to use inttypes.h instead of stdint.h and > provided: > features.h > bits/wchar.h > bits/wordsize.h > sys/cdefs.h > gnu/stubs.h > for compilation I used gcc3.2.2. > > I saw a couple of requests on the archives about solaris but no > confirmation of anyone running it. > > GREG > -- > Greg Matthews > iTSS Wallingford 01491 692445 > > > > ------------------------------------------------------- > This SF.net email is sponsored by: SF.net Giveback Program. > SourceForge.net hosts over 70,000 Open Source Projects. > See the people who have HELPED US provide better services: > Click here: http://sourceforge.net/supporters.php > _______________________________________________ > Cpu-users mailing list > Cpu...@li... > https://lists.sourceforge.net/lists/listinfo/cpu-users -- Blake Matheny "... one of the main causes of the fall of the bma...@pu... Roman Empire was that, lacking zero, they had http://www.mkfifo.net no way to indicate successful termination of http://ovmj.org/GNUnet/ their C programs." --Robert Firth |
|
From: Greg M. <gm...@ne...> - 2003-10-17 09:26:32
|
umm... no hence the gdb output below. I hoped it would be of use to someone who knows more about the code and has more programming skill than myself. It will compile with these changes (either with forte7 or gcc3.2.2) but wont run. This would be my tool of choice for giving to our on-site admins but most are dealing solely with solaris. As far as I can see there is no tool available for adding users to a LDAP directory with unique uidnumber from a solaris box. This small problem is turning into a major headache... GREG On Thu, 2003-10-16 at 17:03, Blake Matheny wrote: > Hi Greg, > Did these changes make running CPU under Solaris possible? > > -Blake > > Whatchu talkin' 'bout, Willis? > > as a newcomer to cpu let me first say, this software is great on linux. > > > > I've managed to compile it on solaris by providing a few libraries that > > are required but when it is run I get a segfault: > > > > sidhean gmatt $ gdb cpu > > GNU gdb 5.3 > > Copyright 2002 Free Software Foundation, Inc. > > GDB is free software, covered by the GNU General Public License, and you > > are > > welcome to change it and/or distribute copies of it under certain > > conditions. > > Type "show copying" to see the conditions. > > There is absolutely no warranty for GDB. Type "show warranty" for > > details. > > This GDB was configured as "sparc-sun-solaris2.8"... > > (gdb) run > > Starting program: /usr/local/bin/cpu > > > > Program received signal SIGSEGV, Segmentation fault. > > 0xff0b3ba4 in populateGlobals () at commandline.c:704 > > 704 globalLdap->dn = buildDn ((operation > 2) ? GROUPADD : > > USERADD, > > (gdb) bt > > #0 0xff0b3ba4 in populateGlobals () at commandline.c:704 > > #1 0xff0b8c54 in CPU_init (argc=0, argv=0x0) at ldap.c:60 > > #2 0x00010b34 in main (argc=1, argv=0xffbefa34) at cpu.c:95 > > (gdb) > > > > I changed bitvector.h to use inttypes.h instead of stdint.h and > > provided: > > features.h > > bits/wchar.h > > bits/wordsize.h > > sys/cdefs.h > > gnu/stubs.h > > for compilation I used gcc3.2.2. > > > > I saw a couple of requests on the archives about solaris but no > > confirmation of anyone running it. > > > > GREG > > -- > > Greg Matthews > > iTSS Wallingford 01491 692445 > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: SF.net Giveback Program. > > SourceForge.net hosts over 70,000 Open Source Projects. > > See the people who have HELPED US provide better services: > > Click here: http://sourceforge.net/supporters.php > > _______________________________________________ > > Cpu-users mailing list > > Cpu...@li... > > https://lists.sourceforge.net/lists/listinfo/cpu-users -- Greg Matthews iTSS Wallingford 01491 692445 |
|
From: Blake M. <bma...@pu...> - 2003-10-17 22:06:04
|
Hi Greg, sorry, the output you provided was a bit unclear, thanks for the extra info. The sourceforge compile farms contains a Solaris 8 machine for use with testing compilation/running. I'll take a look this weekend. Thanks. -Blake Whatchu talkin' 'bout, Willis? > umm... no hence the gdb output below. I hoped it would be of use to > someone who knows more about the code and has more programming skill > than myself. It will compile with these changes (either with forte7 or > gcc3.2.2) but wont run. > > This would be my tool of choice for giving to our on-site admins but > most are dealing solely with solaris. As far as I can see there is no > tool available for adding users to a LDAP directory with unique > uidnumber from a solaris box. This small problem is turning into a major > headache... > > GREG > > On Thu, 2003-10-16 at 17:03, Blake Matheny wrote: > > Hi Greg, > > Did these changes make running CPU under Solaris possible? > > > > -Blake > > > > Whatchu talkin' 'bout, Willis? > > > as a newcomer to cpu let me first say, this software is great on linux. > > > > > > I've managed to compile it on solaris by providing a few libraries that > > > are required but when it is run I get a segfault: > > > > > > sidhean gmatt $ gdb cpu > > > GNU gdb 5.3 > > > Copyright 2002 Free Software Foundation, Inc. > > > GDB is free software, covered by the GNU General Public License, and you > > > are > > > welcome to change it and/or distribute copies of it under certain > > > conditions. > > > Type "show copying" to see the conditions. > > > There is absolutely no warranty for GDB. Type "show warranty" for > > > details. > > > This GDB was configured as "sparc-sun-solaris2.8"... > > > (gdb) run > > > Starting program: /usr/local/bin/cpu > > > > > > Program received signal SIGSEGV, Segmentation fault. > > > 0xff0b3ba4 in populateGlobals () at commandline.c:704 > > > 704 globalLdap->dn = buildDn ((operation > 2) ? GROUPADD : > > > USERADD, > > > (gdb) bt > > > #0 0xff0b3ba4 in populateGlobals () at commandline.c:704 > > > #1 0xff0b8c54 in CPU_init (argc=0, argv=0x0) at ldap.c:60 > > > #2 0x00010b34 in main (argc=1, argv=0xffbefa34) at cpu.c:95 > > > (gdb) > > > > > > I changed bitvector.h to use inttypes.h instead of stdint.h and > > > provided: > > > features.h > > > bits/wchar.h > > > bits/wordsize.h > > > sys/cdefs.h > > > gnu/stubs.h > > > for compilation I used gcc3.2.2. > > > > > > I saw a couple of requests on the archives about solaris but no > > > confirmation of anyone running it. > > > > > > GREG > > > -- > > > Greg Matthews > > > iTSS Wallingford 01491 692445 > > > > > > > > > > > > ------------------------------------------------------- > > > This SF.net email is sponsored by: SF.net Giveback Program. > > > SourceForge.net hosts over 70,000 Open Source Projects. > > > See the people who have HELPED US provide better services: > > > Click here: http://sourceforge.net/supporters.php > > > _______________________________________________ > > > Cpu-users mailing list > > > Cpu...@li... > > > https://lists.sourceforge.net/lists/listinfo/cpu-users > -- > Greg Matthews > iTSS Wallingford 01491 692445 > > > > ------------------------------------------------------- > This SF.net email is sponsored by: SF.net Giveback Program. > SourceForge.net hosts over 70,000 Open Source Projects. > See the people who have HELPED US provide better services: > Click here: http://sourceforge.net/supporters.php > _______________________________________________ > Cpu-users mailing list > Cpu...@li... > https://lists.sourceforge.net/lists/listinfo/cpu-users -- Blake Matheny "... one of the main causes of the fall of the bma...@pu... Roman Empire was that, lacking zero, they had http://www.mkfifo.net no way to indicate successful termination of http://ovmj.org/GNUnet/ their C programs." --Robert Firth |
|
From: Greg M. <gm...@ne...> - 2003-10-22 10:47:57
|
Hi Blake... have you had a chance to look at this? I'm currently plugging away trying to learn a bit more perl but if theres anything I can do to try to debug it let me know. GREG On Fri, 2003-10-17 at 18:20, Blake Matheny wrote: > Hi Greg, > sorry, the output you provided was a bit unclear, thanks for the extra info. > The sourceforge compile farms contains a Solaris 8 machine for use with > testing compilation/running. I'll take a look this weekend. Thanks. > > -Blake > -- Greg Matthews iTSS Wallingford 01491 692445 |