f



Re: Puzzle: Converting 1-10 to 1,2,3,4,5,6,7,8,9,10 #5

Wow! I didn't know that the do statement could do that!  Certainly one =
could write code to replace all dashes with a ' to '. =20

-Mary
  ----- Original Message -----=20
  From: Miller, Scott=20
  To: Mary ; walker.627@OSU.EDU=20
  Sent: Friday, October 03, 2008 4:08 PM
  Subject: RE: Re: Puzzle: Converting 1-10 to 1,2,3,4,5,6,7,8,9,10


  i did your approach, mary, except with a slight change in the numbers. =
 i replaced the - with ' to ' and used a do statement to get the values. =
 then used a similar sql statement to load those numbers into a macro =
var.   =20

  data z;
  do x=3D1 to 10,21,22,30 to 35,40,41;
  output;
  end;
  run;


  Scott D. Miller, MA

  Evaluation and Informatics Analyst
  West Virginia Medical Institute
  (304) 346-9864 ext 2240

  Every good scientist should be one part P.T. Barnum and one part B.F. =
Skinner.

  Sumus quid sumus=20

  ...and why did I leave the plow in the field, and look for a job in =
the town



  -----Original Message-----
  From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU]On Behalf Of =
Mary
  Sent: Friday, October 03, 2008 4:48 PM
  To: SAS-L@LISTSERV.UGA.EDU
  Subject: Re: Puzzle: Converting 1-10 to 1,2,3,4,5,6,7,8,9,10


  I'm not sure I can actually do this, but I'll give an approach for =
doing it; I think it could be done in a data step or in IML.  Maybe =
someone else can work out the code! =20

  1.   Take the original string and form a data set that creates an =
observation for each value between the commas:
  1-10,21,22,30-35,40,41 becomes

  1-10
  21
  22
  30-35
  40
  41

  2.  Take that new data set and search for a dash (using INDEX).  If =
not found, then output the value.   If found, then assign the start =
value to the part to the right of the dash, the ending value to the part =
to the left of the dash, using SUBSTR.    Convert the start and end =
value to numeric, then do a do loop with an output, such as:
  do i=3Dstart to end;
      value=3Di;
      output;
  end;

  3.  Then you should wind up with values down of each of the individual =
values:
  1
  2
  3
  ..
  41

  4.   Then you can get the thing into a comma delimited string by a =
couple of approaches.   One is the Proc SQL into a variable list, such =
as
  proc sql noprint;
      select value into :valuelist
      separated by ','
      from values;
  quit;

  Or you could read the data set sequentially and then substring.  =20


  A similar approach could be used in IML- assign each value between the =
commas to a matrix, then process each value in the matrix by searching =
for the dash.  If there's no dash, copy the value to the new matrix.   =
If there is a dash, then grab the start and end value and get into a do =
loop and add each value as you loop to the new matrix.   Then do a do =
loop on the entire matrix concatenating it together back into one scalar =
matrix.=20

  -Mary  =20
    ----- Original Message -----=20
    From: Paul Walker=20
    To: SAS-L@LISTSERV.UGA.EDU=20
    Sent: Friday, October 03, 2008 3:27 PM
    Subject: Puzzle: Converting 1-10 to 1,2,3,4,5,6,7,8,9,10


    What is the best way to convert a string like 1-10 to a string like
    1,2,3,4,5,6,7,8,9,10?  The string is stored as a variable in a =
datastep.
    I am looking for a function that could be called like this maybe.

    data _null_;
      string =3D '1-10';
      newstring =3D function(string);
    run;

    Add a twist to the puzzle: what if I mixed and matched.  For =
example, a
    string 1-10,21,22,30-35,40,41.

    data _null_;
      string =3D '1-10,21,22,30-35,40,41';
      newstring =3D function(string);
    run;

    newstring =3D 1,2,3,4,5,6,7,8,9,10,21,22,30,31,32,33,34,35,40,41

    You get the idea.  Any suggestions for the function?

    - Paul

  _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ =
_ _ _

  CONFIDENTIALITY NOTICE: This e-mail and any files transmitted with it =
are=20
  confidential and intended solely for the use of the individual or =
entity to=20
  whom they are addressed.

  Any views expressed in this message are those of the individual =
sender,=20
  except where the sender specifies and with authority, states them to =
be the
  views of WVMI.
0
mlhoward (1803)
10/3/2008 9:17:57 PM
comp.soft-sys.sas 142828 articles. 3 followers. Post Follow

0 Replies
1042 Views

Similar Articles

[PageSpeed] 46

Reply:

Similar Artilces:

Re: Puzzle: Converting 1-10 to 1,2,3,4,5,6,7,8,9,10 #10
This is absurd - but uses the call execute as I intended.... data strings; String='1-10,21,22,30-35,40,43'; output; String='7-8,11-22,26-35,36'; output; String='9-20,31,32,34-35,41,44'; output; run; Data _Null_; set strings; call execute ( "proc format;value numstr " ||String||"='Nums';run;"); if _n_=1 then call execute (" Data NewStrings(drop=_:); Length NewString $ 200 ; if _n_=1 then do; Do _K = input(Scan('"||String||"',1,',-'),best12.) To input(Scan('"||String||"',-1,',-'),best12.); If put(_K,numstr.)='Nums' then NewString=CatX(',',NewString,_K) ; End; output; End; Run;"); else call execute (" Data NewStrings(drop=_:); Length NewString $ 200 ; if _n_=1 then do; Do _K = input(Scan('"||String||"',1,',-'),best12.) To input(Scan('"||String||"',-1,',-'),best12.); If put(_K,numstr.)='Nums' then NewString=CatX(',',NewString,_K) ; End; output; End; set newstrings; output; Run;"); Run; Paul Choate DDS Data Extraction (916) 654-2160 -----Original Message----- From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Choate, Paul@DDS Sent: Friday, October 03, 2008 4:10 PM To: SAS-L@LISTSERV.UGA.EDU Subject: Re: Puzzle: Converting 1-10 to 1,2,3,4,5,6,7,8,9,10 Yeah, the format only gets resolved before or after depending on double o...

Re: Puzzle: Converting 1-10 to 1,2,3,4,5,6,7,8,9,10 #2
I'm not sure I can actually do this, but I'll give an approach for doing = it; I think it could be done in a data step or in IML. Maybe someone = else can work out the code! =20 1. Take the original string and form a data set that creates an = observation for each value between the commas: 1-10,21,22,30-35,40,41 becomes 1-10 21 22 30-35 40 41 2. Take that new data set and search for a dash (using INDEX). If not = found, then output the value. If found, then assign the start value to = the part to the right of the dash, the ending value to the part to the = left of the dash, using SUBSTR. Convert the start and end value to = numeric, then do a do loop with an output, such as: do i=3Dstart to end; value=3Di; output; end; 3. Then you should wind up with values down of each of the individual = values: 1 2 3 ... 41 4. Then you can get the thing into a comma delimited string by a = couple of approaches. One is the Proc SQL into a variable list, such = as proc sql noprint; select value into :valuelist separated by ',' from values; quit; Or you could read the data set sequentially and then substring. =20 A similar approach could be used in IML- assign each value between the = commas to a matrix, then process each value in the matrix by searching = for the dash. If there's no dash, copy the value to the new matrix. = If there is a dash, then grab the start and end value and get into a do = loop and add each value as yo...

Re: Puzzle: Converting 1-10 to 1,2,3,4,5,6,7,8,9,10 #6
All positive ranges? Thinking about a way to get SAS to do most of the work this is what I came up with.... 7227 %let string = 1-10,21,22,30-35,40,41; 7228 data _null_; 7229 length newstring $256; 7230 do _n_ = %qsysfunc(tranwrd(%superq(string),-,%str( to ))); 7231 newstring = catx(',',newstring,_n_); 7232 end; 7233 put 'NOTE: ' newstring=; 7234 run; NOTE: newstring=1,2,3,4,5,6,7,8,9,10,21,22,30,31,32,33,34,35,40,41 On 10/3/08, Paul Walker <walker.627@osu.edu> wrote: > What is the best way to convert a string like 1-10 to a string like > 1,2,3,4,5,6,7,8,9,10? The string is stored as a variable in a datastep. > I am looking for a function that could be called like this maybe. > > data _null_; > string = '1-10'; > newstring = function(string); > run; > > Add a twist to the puzzle: what if I mixed and matched. For example, a > string 1-10,21,22,30-35,40,41. > > data _null_; > string = '1-10,21,22,30-35,40,41'; > newstring = function(string); > run; > > newstring = 1,2,3,4,5,6,7,8,9,10,21,22,30,31,32,33,34,35,40,41 > > You get the idea. Any suggestions for the function? > > - Paul > ...

Re: Puzzle: Converting 1-10 to 1,2,3,4,5,6,7,8,9,10 #8
You program does not work "the first time" becasue NUMSTR does not exist. 7235 Data _Null_; 7236 Length NewString $ 200 ; 7237 String = '1-10,21,22,30-35,40,41' ; 7238 7239 7240 call execute ( "proc format; value numstr " || 7241 String || 7242 " ='Nums'; run ;"); 7243 7244 Do _K = input(Scan( String , 1 , ',-' ),best12.) To 7245 input(Scan( String , -1 , ',-'),best12.); 7246 if put(_K,numstr.)='Nums' then ------- 484 NOTE 484-185: Format NUMSTR was not found or could not be loaded. 7247 7248 NewString = CatX( ',' , NewString , _K ) ; 7249 End; 7250 7251 Put NewString= ; 7252 run; NewString= NOTE: CALL EXECUTE generated line. 1 + proc format; 1 + value numstr 1-10,21,22,30-35,40,41 ='Nums'; NOTE: Format NUMSTR has been output. 1 + run ; On 10/3/08, Choate, Paul@DDS <pchoate@dds.ca.gov> wrote: > Hey Toby - What no regex? No hash? > > How about a proc format wrapped in a call execute? > > Data _Null_; > Length NewString $ 200 ; > String = '1-10,21,22,30-35,40,41' ; > > call execute ( "proc format; value numstr " || > String || > " ='Nums'; run ;"); > > Do _K = input(Scan( String , 1 , &...

Re: Puzzle: Converting 1-10 to 1,2,3,4,5,6,7,8,9,10 #3
Very nice! -Mary ----- Original Message -----=20 From: Toby Dunn=20 To: SAS-L@LISTSERV.UGA.EDU=20 Sent: Friday, October 03, 2008 3:55 PM Subject: Re: Puzzle: Converting 1-10 to 1,2,3,4,5,6,7,8,9,10 Data _Null_ ; Length NewString $ 200 ; String =3D '1-10,21,22,30-35,40,41' ; Do I =3D 1 To ( 1 + CountC( String , ',' ) ) ; TempA =3D Scan( String , I , ',' ) ; If Find( TempA , '-' ) Then Do ; Start =3D Input( Scan( TempA , 1 , '-' ) , Best12. ) ; Stop =3D Input( Scan( TempA , 2 , '-' ) , Best12. ) ; Do K =3D Start To Stop ; NewString =3D CatX( ',' , NewString , K ) ; End ; End ; Else Do ; NewString =3D CatX( ',' , NewString , TempA ) ; End ; End ; Put NewString=3D ; Run ; On Fri, 3 Oct 2008 16:27:44 -0400, Paul Walker <walker.627@OSU.EDU> = wrote: >What is the best way to convert a string like 1-10 to a string like >1,2,3,4,5,6,7,8,9,10? The string is stored as a variable in a = datastep. >I am looking for a function that could be called like this maybe. > >data _null_; > string =3D '1-10'; > newstring =3D function(string); >run; > >Add a twist to the puzzle: what if I mixed and matched. For example, = a >string 1-10,21,22,30-35,40,41. > >data _null_; > string =3D '1-10,21,22,30-35,40,41'; > newstring =3D function(strin...

Re: Puzzle: Converting 1-10 to 1,2,3,4,5,6,7,8,9,10 #7
Hey Toby - What no regex? No hash? How about a proc format wrapped in a call execute? Data _Null_; Length NewString $ 200 ; String = '1-10,21,22,30-35,40,41' ; call execute ( "proc format; value numstr " || String || " ='Nums'; run ;"); Do _K = input(Scan( String , 1 , ',-' ),best12.) To input(Scan( String , -1 , ',-'),best12.); if put(_K,numstr.)='Nums' then NewString = CatX( ',' , NewString , _K ) ; End; Put NewString= ; run; Paul Choate DDS Data Extraction (916) 654-2160 -----Original Message----- From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Toby Dunn Sent: Friday, October 03, 2008 1:55 PM To: SAS-L@LISTSERV.UGA.EDU Subject: Re: Puzzle: Converting 1-10 to 1,2,3,4,5,6,7,8,9,10 Data _Null_ ; Length NewString $ 200 ; String = '1-10,21,22,30-35,40,41' ; Do I = 1 To ( 1 + CountC( String , ',' ) ) ; TempA = Scan( String , I , ',' ) ; If Find( TempA , '-' ) Then Do ; Start = Input( Scan( TempA , 1 , '-' ) , Best12. ) ; Stop = Input( Scan( TempA , 2 , '-' ) , Best12. ) ; Do K = Start To Stop ; NewString = CatX( ',' , NewString , K ) ; End ; End ; Else Do ; NewString = CatX( ',' , NewString , TempA ) ; End ; End ; Put NewString= ; Run ; On Fri, 3 Oct 2008 16:27:44 -0400, Paul Walker <walker.627@OSU.EDU> wrot...

Re: Puzzle: Converting 1-10 to 1,2,3,4,5,6,7,8,9,10 #9
Yeah, the format only gets resolved before or after depending on double or single quotes. The datastep uses only whatever format is there when it executes....Oh well Paul Choate DDS Data Extraction (916) 654-2160 -----Original Message----- From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of ./ ADD NAME=Data _null_, Sent: Friday, October 03, 2008 4:00 PM To: SAS-L@LISTSERV.UGA.EDU Subject: Re: Puzzle: Converting 1-10 to 1,2,3,4,5,6,7,8,9,10 You program does not work "the first time" becasue NUMSTR does not exist. 7235 Data _Null_; 7236 Length NewString $ 200 ; 7237 String = '1-10,21,22,30-35,40,41' ; 7238 7239 7240 call execute ( "proc format; value numstr " || 7241 String || 7242 " ='Nums'; run ;"); 7243 7244 Do _K = input(Scan( String , 1 , ',-' ),best12.) To 7245 input(Scan( String , -1 , ',-'),best12.); 7246 if put(_K,numstr.)='Nums' then ------- 484 NOTE 484-185: Format NUMSTR was not found or could not be loaded. 7247 7248 NewString = CatX( ',' , NewString , _K ) ; 7249 End; 7250 7251 Put NewString= ; 7252 run; NewString= NOTE: CALL EXECUTE generated line. 1 + proc format; 1 + value numstr 1-10,21,22,30-35,40,41 ='Nums'; NOTE: Format NUMSTR has been output. 1 + run ; On ...

Re: Puzzle: Converting 1-10 to 1,2,3,4,5,6,7,8,9,10 #4
Nice! But you assume string is a macro var. What about string is a data step var and the dataset has many records? On Fri, 3 Oct 2008 16:22:31 -0500, ./ ADD NAME=Data _null_, <iebupdte@GMAIL.COM> wrote: >All positive ranges? > >Thinking about a way to get SAS to do most of the work this is what I >came up with.... > >7227 %let string = 1-10,21,22,30-35,40,41; >7228 data _null_; >7229 length newstring $256; >7230 do _n_ = %qsysfunc(tranwrd(%superq(string),-,%str( to ))); >7231 newstring = catx(',',newstring,_n_); >7232 end; >7233 put 'NOTE: ' newstring=; >7234 run; > >NOTE: newstring=1,2,3,4,5,6,7,8,9,10,21,22,30,31,32,33,34,35,40,41 > > > >On 10/3/08, Paul Walker <walker.627@osu.edu> wrote: >> What is the best way to convert a string like 1-10 to a string like >> 1,2,3,4,5,6,7,8,9,10? The string is stored as a variable in a datastep. >> I am looking for a function that could be called like this maybe. >> >> data _null_; >> string = '1-10'; >> newstring = function(string); >> run; >> >> Add a twist to the puzzle: what if I mixed and matched. For example, a >> string 1-10,21,22,30-35,40,41. >> >> data _null_; >> string = '1-10,21,22,30-35,40,41'; >> newstring = function(string); >> run; >> >> newstring = 1,2,3,4,5,6,7,8,9,10,21,22,30...

Re: Puzzle: Converting 1-10 to 1,2,3,4,5,6,7,8,9,10
Data _Null_ ; Length NewString $ 200 ; String = '1-10,21,22,30-35,40,41' ; Do I = 1 To ( 1 + CountC( String , ',' ) ) ; TempA = Scan( String , I , ',' ) ; If Find( TempA , '-' ) Then Do ; Start = Input( Scan( TempA , 1 , '-' ) , Best12. ) ; Stop = Input( Scan( TempA , 2 , '-' ) , Best12. ) ; Do K = Start To Stop ; NewString = CatX( ',' , NewString , K ) ; End ; End ; Else Do ; NewString = CatX( ',' , NewString , TempA ) ; End ; End ; Put NewString= ; Run ; On Fri, 3 Oct 2008 16:27:44 -0400, Paul Walker <walker.627@OSU.EDU> wrote: >What is the best way to convert a string like 1-10 to a string like >1,2,3,4,5,6,7,8,9,10? The string is stored as a variable in a datastep. >I am looking for a function that could be called like this maybe. > >data _null_; > string = '1-10'; > newstring = function(string); >run; > >Add a twist to the puzzle: what if I mixed and matched. For example, a >string 1-10,21,22,30-35,40,41. > >data _null_; > string = '1-10,21,22,30-35,40,41'; > newstring = function(string); >run; > >newstring = 1,2,3,4,5,6,7,8,9,10,21,22,30,31,32,33,34,35,40,41 > >You get the idea. Any suggestions for the function? > >- Paul ...

Puzzle: Converting 1-10 to 1,2,3,4,5,6,7,8,9,10
What is the best way to convert a string like 1-10 to a string like 1,2,3,4,5,6,7,8,9,10? The string is stored as a variable in a datastep. I am looking for a function that could be called like this maybe. data _null_; string = '1-10'; newstring = function(string); run; Add a twist to the puzzle: what if I mixed and matched. For example, a string 1-10,21,22,30-35,40,41. data _null_; string = '1-10,21,22,30-35,40,41'; newstring = function(string); run; newstring = 1,2,3,4,5,6,7,8,9,10,21,22,30,31,32,33,34,35,40,41 You get the idea. Any suggestions for the function? - Paul Just another possibility: %macro numlist(instring); %let j=1; %do %while(%scan(&instring,&j,',') ne ); %let instringPart=%scan(&instring,&j,','); %let start=%scan(&instringPart,1,'-'); %let stop =%scan(&instringPart,-1,'-'); %if &j=1 %then %let outstring=&start; %else %let outstring=&outstring%str(,)&start; %do i=%eval(&start+1) %to &stop; %let outstring=&outstring%str(,)&i; %end; %let j=%eval(&j+1); %end; %str(&outstring); %mend; %put %numlist(%str(1-10,21,22,30-35,40,41)); data _null_; length a $ 100; a="%numlist(%str(1-10,21,22,30-35,40,41))"; put a=; run; Think I've pushed the wrong button.... or this post will now show up twice... Just another possibility: %macro numlist(instring); %let j=1; ...

convert String "1;2;3;4;5;" to Array [1, 2, 3, 4, 5]
I'm trying to convert a String of numbers that are separated by semicolons to an Array---totally for fun, to stretch my ruby understanding, fyi. I use the Array in a while loop which does work when the Array looks like = [1,2,3,4,5,...]---so that part is working. But I want to use ruby to convert a String = "1;2;3;4;5;6;7;8;9;10" into an Array [1,2,3,4,5,...] so that I can use these values. I've tried many a method, but can't seem to get the desired result; I've tried gsub(/\;/, ","), eval (), and others. ########## raw_data = "1;2;3...

Re: Subject: Building ACE 5.3.1 on Mac OS X (Tiger) 10.4.2 was [ace-users] Building ACE on Mac OSX 10.4 #2
Hi Jason, >> I know it isn't the most recent version available, but this version >> is used extensively across the corporation. Changing the version of >> ACE all these products used will cause the architect's heads to >> explode ;) >> >> Is it your opinion that 5.3.1 is hopeless cause on Tiger? It'll take some work, but companies like Riverace, Remedy, and OCI can help out with this stuff if staying with 5.3.1 is essential. Please see http://www.cs.wustl.edu/~schmidt/commercial-support.html for help with this stuff. >> > http://cvs.doc.wustl.edu/ >> I will try it out, and let you know how it works. Great - if there are any problems please let us know quickly so that we can get the fixes into the x.4.8 beta. Thanks, Doug -- Dr. Douglas C. Schmidt Professor and Associate Chair Electrical Engineering and Computer Science TEL: (615) 343-8197 Institute for Software Integrated Systems WEB: www.dre.vanderbilt.edu/~schmidt Vanderbilt University, Nashville TN, 37203 NET: d.schmidt@vanderbilt.edu ...

RE: KRB5 1.5 or 1.6 compiled on AIX 5.2/5.3 #2
Exact same errors specifying --without-tcl. I removed the config.cache, config.log, and etc the reran configure. From my configure line - ../configure --prefix=/usr/local/kerberos --enable-dns-for-realm --without-tcl --with-vague-errors Then after make... making all in lib/rpc/unit-test... Target "all" is up to date. cc -I../../../include -I./../../../include -I. -DKRB5_DEPRECATED=1 -DKRB5_PRIVATE=1 -g -qhalt=e -O _THREAD_SAFE -c client.c cc -I../../../include -I./../../../include -I. -DKRB5_DEPRECATED=1 -DKRB5_PRIVATE=1 -g -qhalt=e -O _THREAD_SAFE -c rpc_test_clnt.c cc -L../../../lib -blibpath:/usr/local/kerberos/lib::/usr/lib:/lib -g -qhalt=e -O -D_THREAD_SAFE -o c nt client.o rpc_test_clnt.o -lgssrpc -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lkrb5support -lpthreads ld: 0706-006 Cannot find or open library file: -l k5crypto ld:open(): A file or directory in the path name does not exist. ld: 0706-006 Cannot find or open library file: -l com_err ld:open(): A file or directory in the path name does not exist. ld: 0706-006 Cannot find or open library file: -l krb5support ld:open(): A file or directory in the path name does not exist. make: 1254-004 The error code from the last command is 255. Stop. make: 1254-004 The error code from the last command is 1. Stop. make: 1254-004 The error code from the last command is 1. Stop. make: 1254-004 The error code from the last command is 1. Stop. Any ot...

RE: KRB5 1.5 or 1.6 compiled on AIX 5.2/5.3 #3
Thanks. The problem also exist using GNU ld on AIX too. See below: make[2]: Entering directory `/usr/sys/inst.images/MIT-Kerberos/krb5-1.6/5.3/src/lib/rpc' making all in lib/rpc/unit-test... make[3]: Entering directory `/usr/sys/inst.images/MIT-Kerberos/krb5-1.6/5.3/src/lib/rpc/unit-test' cc -L../../../lib -blibpath:/usr/local/kerberos/lib::/usr/lib:/lib -g -qhalt=e -O -D_THREAD_SAFE -o client client. o rpc_test_clnt.o \ -lgssrpc -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lkrb5support -lpthreads ld: 0706-006 Cannot find or open library file: -l k5crypto ld:open(): No such file or directory ld: 0706-006 Cannot find or open library file: -l com_err ld:open(): No such file or directory ld: 0706-006 Cannot find or open library file: -l krb5support ld:open(): No such file or directory make[3]: *** [client] Error 255 make[3]: Leaving directory `/usr/sys/inst.images/MIT-Kerberos/krb5-1.6/5.3/src/lib/rpc/unit-test' make[2]: *** [all-recurse] Error 1 make[2]: Leaving directory `/usr/sys/inst.images/MIT-Kerberos/krb5-1.6/5.3/src/lib/rpc' make[1]: *** [all-recurse] Error 1 make[1]: Leaving directory `/usr/sys/inst.images/MIT-Kerberos/krb5-1.6/5.3/src/lib' make: *** [all-recurse] Error 1 root@aoctoolbox:/usr/sys/inst.images/MIT-Kerberos/krb5-1.6/5.3/src:> whence ld /usr/local/bin/ld root@aoctoolbox:/usr/sys/inst.images/MIT-Kerberos/krb5-1.6/5.3/src:> ld -v GNU ld version 2.16 Lamar -----Original Message----- From: Russ Al...

RE: KRB5 1.5 or 1.6 compiled on AIX 5.2/5.3 #5
Phil, Tested on AIX 5.3 TL05 SP4 with XLC++/XLC 8.0 and worked great ! I will be testing on AIX 5.2 TL09 SP3 and AIX 4.3 ML11 here shortly... Thanks for getting this figured out ! Also, appreciate the help from Sam and Martin who were working on it too... Lamar -----Original Message----- From: Phil Pishioneri [mailto:pgp@psu.edu] Sent: Wednesday, February 07, 2007 6:35 PM To: Saxon, Lamar Cc: kerberos@mit.edu Subject: Re: KRB5 1.5 or 1.6 compiled on AIX 5.2/5.3 I've gotten 1.5.x and 1.6 to build and run on AIX 5.2 (domain referral in 1.6 works nicely). So far I have only tested the client commands: klist, kvno, kinit, kdestroy. No 3rd party software tested yet, either. This was done with the IBM VisualAge C++ Professional / C for AIX Compiler, Version 6. The one major change: add LDFLAGS="-brtl" to configure. My configure line was (prefix edited): ./configure --without-krb4 --prefix=... CC=cc LDFLAGS=-brtl There was one problem during the 1.{5,6} builds (1.5 has a bug that's been documented already), it failed in making all in plugins/kdb/db2/libdb2/test... with ld: 0706-006 Cannot find or open library file: -l db ld:open(): A file or directory in the path name does not exist. my quick&dirty fix for that was (starting in .../krb5-1.6/src/): cd lib ln -s ../plugins/kdb/db2/libdb2/libdb.so.1.1 libdb.so.1.1 ln -s libdb.so.1.1 libdb.so -Phil Privileged and Confidential. This e-mail, and any attac...

Re: Compiling 1.5.3 or 1.6.1 on Solaris 5.9
> On Jul 5, 2007, at 3:57 PM, Tom Yu wrote: >> The configure script should detect GCC and change the shared library >> build command accordingly, and in my experience it works. The >> "-shared -h libkrb5support.so.0" looks like the configure script >> thought it was compiling with Sun's C compiler. > I did a clean slate and configured 1.6.1 with ../configure --prefix=/afs/slac.stanford.edu/package/krb5/1.6.1/sun4x_59 and got the same error. I then poked around in config/shlib.conf and as near as I can tell it will never do the right thing with solaris and gcc. *-*-solaris*) if test "$krb5_cv_prog_gcc" = yes; then PICFLAGS=-fPIC LDCOMBINE='$(CC) $(CFLAGS) -shared -h $(LIBPREFIX)$ (LIBBASE)$(SHLIBSEXT)' else Changing the -h to -Wl,-h,$(LIBPREFIX)$(LIBBASE)$(SHLIBSEXT), seems to have fixed the problem. _ Booker C. Bense ...

Re: Subject: Building ACE 5.3.1 on Mac OS X (Tiger) 10.4.2 was [ace-users] Building ACE on Mac OSX 10.4
Hi Jason, Thanks for using the PRF. >> ACE VERSION: 5.3.1 This version of ACE is ANCIENT. The forthcoming ACE 5.4.8 beta should work "out of the box" for Mac OS X Tiger. If you want a preview, please download the version in our CVS repo at http://cvs.doc.wustl.edu/ take care, Doug >> HOST MACHINE and OPERATING SYSTEM: Mac OS X 10.4.2 >> COMPILER NAME AND VERSION (AND PATCHLEVEL): >> powerpc-apple-darwin8-gcc-4.0.1 >> >> CONTENTS OF $ACE_ROOT/ace/config.h: >> >> /* -*- C++ -*- */ >> // config-macosx.h,v 4.17 2003/01/20 20:02:12 seibel_r Exp >> >> // This configuration file is designed to work with the MacOS X operating >> system. >> >> #ifndef ACE_CONFIG_MACOSX_H >> #define ACE_CONFIG_MACOSX_H >> >> #if ! defined (__ACE_INLINE__) >> #define __ACE_INLINE__ >> #endif /* ! __ACE_INLINE__ */ >> >> #if defined (__GNUG__) >> # include "ace/config-g++-common.h" >> #endif /* __GNUG__ */ >> >> #undef ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION >> >> #define ACE_SIZE_T_FORMAT_SPECIFIER ACE_LIB_TEXT ("%lu") >> >> #if defined (ACE_HAS_PENTIUM) >> # undef ACE_HAS_PENTIUM >> #endif /* ACE_HAS_PENTIUM */ >> >> #if !defined (_THREAD_SAFE) >> #define _THREAD_SAFE >&g...

100,000 + ((4 + 6 + 9 + 1 + 5 + 8 + 3 + 3 + 4) * 1000)) +1,000
1010101010101010101010101010101010101010101010101010101 010 0 101 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 2 0 0 0 0 0 3 0 0 0 0 0 4 0 0 0 0 0 5 0 0 0 0 0 6 0 0 0 0 0 7 0 ...

Re: [ace-users]: ACE 5.4.2 and ACE 5.4.3 compile failed on Solaris 9 x86 and Solaris 10 x86 #2
Hi > > ACE VERSION: 5.4.3 > > > > HOST MACHINE and OPERATING SYSTEM: > > Solaris10 X86 > > TARGET MACHINE and OPERATING SYSTEM, if different from HOST: > > COMPILER NAME AND VERSION (AND PATCHLEVEL): > > Compiler: SUN CC 5.6 ^^^^^^^^^^^^^^^^^^^^^^^^ I don't think the DOC group supports this compiler anymore.. More particularly this compiler is buggy and you may land up with unresolved symbols even if you get past this part. My $0.02. Thanks Bala > > Make: GNU make 3.80 > > > > CONTENTS OF $ACE_ROOT/ace/config.h [if you use a link to a > > platform- > > specific file, simply state which one]: > > #include "ace/config-sunos5.9.h" > > > > CONTENTS OF $ACE_ROOT/include/makeinclude/platform_macros.GNU > > (unless > > this isn't used in this case, e.g., with Microsoft Visual C++): > > include $(ACE_ROOT)/include/makeinclude/platform_sunos5_sunc++.GNU > > > > > > CONTENTS OF $ACE_ROOT/bin/MakeProjectCreator/config/default.features > > (used by MPC when you generate your own makefiles): > > > > AREA/CLASS/EXAMPLE AFFECTED: > > [What example failed? What module failed to compile?] > > "ace/OS_NS_sys_stat.cpp" > > > > DOES THE ...

RE: [ace-users]: ACE 5.4.2 and ACE 5.4.3 compile failed on Solaris 9 x86 and Solaris 10 x86 #2
Hi, > > > ACE VERSION: 5.4.3 > > > > > > HOST MACHINE and OPERATING SYSTEM: > > > Solaris10 X86 > > > TARGET MACHINE and OPERATING SYSTEM, if different from HOST: > > > COMPILER NAME AND VERSION (AND PATCHLEVEL): > > > Compiler: SUN CC 5.6 > ^^^^^^^^^^^^^^^^^^^^^^^^ > > I don't think the DOC group supports this compiler anymore.. More > particularly this compiler is buggy and you may land up with > unresolved > symbols even if you get past this part. I missed the compiler version. But, Forte 8 gives output of SUN C++ 5.5. Maybe we should add a check to one of the Sun config file to check the SUN CC version? Something like: // Forte 6 is the oldest Forte version we sopport #if __SUNPRO_CC < 0x530 # error Your SUN CC compiler is too old, upgrade to a newer version #endif Johnny ...

RE: [ace-users]: ACE 5.4.2 and ACE 5.4.3 compile failed on Solaris 9 x86 and Solaris 10 x86 #2
> Ok. Steve, could you maybe make clear with the build names > which builds use explicit templates? I'll try to get this clarified. > Explicit templates in TAO are known to be broken at this > moment. None of the tests at Riverace try to build TAO. -Steve ...

Re: [ace-users]: ACE 5.4.2 and ACE 5.4.3 compile failed on Solaris 9 x86 and Solaris 10 x86 #2
Hi Jin, Thanks for using the PRF. >> ACE VERSION: 5.4.3 >> >> HOST MACHINE and OPERATING SYSTEM: >> Solaris 10 x86 >> >> TARGET MACHINE and OPERATING SYSTEM, if different from HOST: >> COMPILER NAME AND VERSION (AND PATCHLEVEL): >> Sun Studio 9 (Sun CC 5.6) As we've mentioned several times now, we don't have this compiler installed yet on this hardware platform, so if you want things to be fixed soon I recommend you figure out what's going wrong and send us the patches. Otherwise, please contact one of the companies that provides commercial support for ACE at http://www.cs.wustl.edu/~schmidt/commercial-support.html Thanks, Doug >> CONTENTS OF $ACE_ROOT/ace/config.h [if you use a link to a >> platform- >> specific file, simply state which one]: >> >> #define ACE_HAS_STANDARD_CPP_LIBRARY 1 >> #define ACE_USES_STD_NAMESPACE_FOR_STDCPP_LIB 1 >> >> #include "ace/config-sunos5.9.h" >> >> >> CONTENTS OF $ACE_ROOT/include/makeinclude/platform_macros.GNU >> (unless >> this isn't used in this case, e.g., with Microsoft Visual C++): >> >> templates = implicit >> include $(ACE_ROOT)/include/makeinclude/platform_sunos5_sunc++.GNU >> >> >> CONTENTS OF $ACE_ROOT/bin/MakeP...

RE: [ace-users]: ACE 5.4.2 and ACE 5.4.3 compile failed on Solaris 9 x86 and Solaris 10 x86 #2
Hi, > >> It's almost up. There are some issues with installing software as > >> we don't have the media in a compatible form yet. We also don't > >> have Sun CC, and we need to purchase a licence if we need to > >> support Sun CC. > > Ok, that's fine - thanks for the update. I think some other folks > (e.g., LMCO ATL and Remedy) have Solaris 9/10 and Sun CC, so we may > not need to worry about running Sun CC on our machine. Johnny/Gautam, > can you folks please confirm/deny whether you've got Sun CC on Solaris > 9/10? We are running SunCC (Forte 8) on Solaris 8. We have Solaris 9 available, but have had no time to install it on our build system. Johnny ...

Re: [ace-users]: ACE 5.4.2 and ACE 5.4.3 compile failed on Solaris 9 x86 and Solaris 10 x86 #2
Johnny- > > > > ACE VERSION: 5.4.3 > > > > > > > > HOST MACHINE and OPERATING SYSTEM: > > > > Solaris10 X86 > > > > TARGET MACHINE and OPERATING SYSTEM, if different from HOST: > > > > COMPILER NAME AND VERSION (AND PATCHLEVEL): > > > > Compiler: SUN CC 5.6 > > ^^^^^^^^^^^^^^^^^^^^^^^^ > > > > I don't think the DOC group supports this compiler anymore.. More > > particularly this compiler is buggy and you may land up with > > unresolved > > symbols even if you get past this part. > > I missed the compiler version. But, Forte 8 gives output of SUN C++ 5.5. Hmm.. Then I could be wrong. Then we need to fix the config files for SUN CC to use implicit templates for anything including and above FORTE 8. > Maybe we should add a check to one of the Sun config file to check the SUN > CC version? Something like: > > // Forte 6 is the oldest Forte version we sopport > #if __SUNPRO_CC < 0x530 > # error Your SUN CC compiler is too old, upgrade to a newer version > #endif Much better. Thanks Bala ...

Web resources about - Re: Puzzle: Converting 1-10 to 1,2,3,4,5,6,7,8,9,10 #5 - comp.soft-sys.sas

Facebook Begins Converting Users To HTTPS
Are you willing to sacrifice a little bit of speed for a lot more safety? Facebook is asking that very question with its announcement that it ...

Facebook No Longer Converting Groups Into Pages
Back when Facebook first launched Facebook Pages, many businesses and brands who had built up substantial audiences in their Facebook Groups ...

Vert - simply converting for iPhone, iPad, and iPod touch on the iTunes App Store
Get Vert - simply converting on the App Store. See screenshots and ratings, and read customer reviews.

Converting SIM Card to Micro SIM Card - Flickr - Photo Sharing!
Place new Micro SIM into the iPhone SIM card tray

Ayaan Hirsi Ali on Converting Muslims to Christianity - YouTube
Complete video at: http://fora.tv/2010/07/29/Nomad_From_Islam_to_America_with_Ayaan_Hirsi_Ali Ayaan Hirsi Ali explains her support of missionary ...

Converting dry air to water: solution to Broken Hill's water crisis gains support
A one-man crusade by a Broken Hill resident to solve the historic town's water crisis by introducing air to water converters is gaining support. ...

Click go fears of converting print files
Is there a way to convert a print queue item to a .RTF or .PDF file? I like to save or email them. - The Sydney Morning Herald

Sudanese woman ordered to hang under sharia law for converting to Christianity gives birth
Khartoum, Sudan: A Christian Sudanese woman sentenced to hang for apostasy has given birth in jail, a Western diplomat said on Tuesday.

Imams warn against radicalism to Aboriginal inmates converting to Islam
The prison system has enlisted the help of ASIO to crack down on radicalisation behind bars amid revelations that Aboriginals are converting ...

Converting the world's companies one by one - The Science Show - ABC Radio National (Australian Broadcasting ...
Image: Trucks carrying logs make their way up a road in Jambi, Indonesia. A vast area of the Sumatran forest, and orangutan habitat, is being ...

Resources last updated: 3/16/2016 6:28:34 PM