Forum archive 2000-2006

William Wheeler - dvipng-0.7 fixes for Solaris

William Wheeler - dvipng-0.7 fixes for Solaris

by Arnold Pizer -
Number of replies: 0
inactiveTopicdvipng-0.7 fixes for Solaris topic started 12/6/2003; 8:39:44 PM
last post 12/8/2003; 2:52:12 AM
userWilliam Wheeler - dvipng-0.7 fixes for Solaris  blueArrow
12/6/2003; 8:39:44 PM (reads: 650, responses: 1)
In order to get full functionality for dvipng-0.7 in our WeBWorK environment at Indiana University Bloomington/Indianapolis (Sun ultrasparc cpu's, Solaris 9, web2c-7.4.5, kpathsea-3.4 (kpsewhich-3.4.5), SELFAUTO... variables in /usr/local/texmf/tex/texmf.cnf), I had to make two small but substantive changes in the dvipng distribution file enc.c .

With these changes, dvipng runs when installed in /usr/local/bin, i.e., outside the texmf tree, without any special configuration, i.e., without the --enable-selfauto-set.

The modifications are:

 



-------------- Change 1 --------------



struct encoding* InitEncoding(char* encoding)
{

char *pos,*max,*buf,*enc_file =

/*  kpse_find_file(encoding,kpse_dvips_config_format,false);  */

kpse_find_file(encoding,
kpse_tex_ps_header_format,false);




===========================================================




--------------- Change 2 ----------------



struct encoding* FindEncoding(char* encoding)
{

struct encoding *temp=encodingp;

while(temp!=NULL && strcmp(encoding,temp->name)!=0)

temp=temp->next;

if (temp==NULL)

temp=InitEncoding(encoding);



/* COMMENT OUT THE FOLLOWING

if (temp!=NULL) {

temp->next=encodingp;

encodingp=temp;

}

**/


return(temp);

}



===============================================

 

Sincerely,

Bill Wheeler

<| Post or View Comments |>


userJan-Åke Larsson - Re: dvipng-0.7 fixes for Solaris  blueArrow
12/8/2003; 2:52:12 AM (reads: 803, responses: 0)
These will be included in 0.8, soon to be released. Well, the latter bug is fixed in another manner.

It is good that you can get by without using --enable-selfauto-set, but at my site the directories (of the texmf tree and where local binaries reside) are too different. It won't even find Virtual Fonts here.

I am still waiting for verification from another bug reporter, who claimed a similar bug in a non-FreeType setup. Once that is resolved, 0.8 will be out.

Jan-Åke

<| Post or View Comments |>