Apache OpenOffice (AOO) Bugzilla – Issue 17596
IRIX: sal/osl/unx/system.h isn't right for MipsPro
Last modified: 2010-03-29 20:46:32 UTC
I haven't been able to find a way to get the program name programatically yet, using MipsPro. So far, I've changed it to use AIX's ugly method of running ps -u %d -o args Which works... but there must be a cleaner way... will keep looking.
Added dep
Ah, found it... its extern char **__Argv. Will create a diff.
This compiles... haven't tested yet: Index: system.h =================================================================== RCS file: /cvs/porting/sal/osl/unx/system.h,v retrieving revision 1.17.34.2 diff -u -r1.17.34.2 system.h --- system.h 21 Jun 2003 14:38:05 -0000 1.17.34.2 +++ system.h 30 Jul 2003 03:43:13 -0000 @@ -351,7 +351,14 @@ # endif # define SA_FAMILY_DECL \ union { struct { short sa_family2; } sa_generic; } sa_union +//# define CMD_ARG_PRG_IS_DEFINED +#if !defined GCC +# define CMD_ARG_PRG *__Argv # define CMD_ARG_ENV _environ +//# define CMD_ARG_PS "ps -p %u -o args=\"\"" +#else +# define CMD_ARG_ENV _environ +#endif # define PTR_SIZE_T(s) ((int *)&(s)) # define NO_PTHREAD_PRIORITY # include <dlfcn.h>
Hmmm, This results in an undefined symbol, so its not 100% right yet.
set target milestone to 1.1.1
reassigned.
retargeting to 1.1.2 - broken patch without update
Created attachment 19584 [details] Patch to fix some compile issues with MIPSpro and icu
Added myself as CC above.
I don't know why my patch got attached to this IZ??? It's supposed to go to 17595?
per issue 106845 sb removed the partial irix port, so this doesn't make sense in isolation anymore106845
closing