Return to BSD News archive
Newsgroups: comp.os.386bsd.apps Path: sserve!newshost.anu.edu.au!munnari.oz.au!constellation!osuunx.ucc.okstate.edu!moe.ksu.ksu.edu!vixen.cso.uiuc.edu!howland.reston.ans.net!pipex!uknet!doc.ic.ac.uk!cc.ic.ac.uk!jensting From: jensting@ic.ac.uk (Jens Tingleff) Subject: Re: Latex, and Pascal Message-ID: <1993Nov6.120244.1072@cc.ic.ac.uk> Nntp-Posting-Host: dinghy.ee Organization: Elec. Eng. Imperial College, London References: <CFzyvF.As8@latcs1.lat.oz.au> <2bdua3$m92@pdq.coe.montana.edu> Date: Sat, 6 Nov 93 12:02:43 GMT Lines: 40 In article <2bdua3$m92@pdq.coe.montana.edu>, nate@bsd.coe.montana.edu (Nate Williams) writes: > In article <CFzyvF.As8@latcs1.lat.oz.au>, > > Just wonder if a real port of Latex has been done on FreeBSD ? Or has anyone > Hopefully soon. (Maybe I should work on it today, huh?) > > I dislike shooting off my mouth without following through, but one pitfall which got me for, ahemm, a while is in Karl Berry's XDVIK-1.4 -and- DVIPSK-5.519d The function kpathsea.a library function `xputenv()' assumes that the sequence putenv("FOO=BAR1"); old = getenv("FOO") - strlen("FOO="); /* Point to start */ putenv("FOO=BAR2"); free(old); works. It doesn't (FreeBSD and maybe the others?) `putenv()'reuse the storage generated from the first store of "FOO" in the second store of "FOO" (if there's enough room). This maens that the code above breaks. So, the cure is to run '/configure' and then edit the "c-auto.h" file to comment out the #define HAVE_PUTENV 1 line. A local copy of `putenv()' will then be used, and everytthing will be honky-dory. I have mentioned this to K Berry. Other than this, WEB2C-5.581d, DVIPSK-5.519d and XDVIK-1.4 compiled without a problem. Works well, too! Jens -- Mr Jens Tingleff, M.Sc.EE. PhD student at Imperial College, Dept of EE, Exhibition Road, London SW7 2BT, England jensting@ic.ac.uk or jensting@dinghy.ee.ic... (used to be jensting@diku.dk) "You're about as 'fatale' as an after-dinner mint!" 'Cabaret'