vfprintf

DoN Nichols dnichols at ceilidh.beartrack.com
Fri Jun 7 05:49:08 AEST 1991


In article <1991Jun6.030111.6761 at ms.uky.edu> amir at ms.uky.edu (Amir Sadr) writes:
>I am trying to compile the TeX previewer which I recently got from the OSU
>UNIXpc archives and I am having difficulties.  The program uses vfprintf()
>which is not in any of the libraries on 3.51 software.  Can someone post
>or mail me a copy of this routine?  Thank you-

	It is in /lib/libc.a, just not in the shared libs.  If you want to
link with the shared libs, and don't have ccc yet (The most recent version
was recently posted in comp.sources.3b1), you can get it from /lib/libc.a by:

ar -xv /lib/libc.a vfprintf.o

You should extract it in the directory for the program in question, and
modify the makefile to include it in the list of objects to be linked, or
make a local lib with ar, including it, and anything else that's missing
from shlib and present in libc.a, and mention the lib in your final compile
line (The one which does the linking.)  There may be other routines in there
which should be included.  If so, ld(1) will tell you about what is missing.

	Here's the result of:

	ar -tv /lib/libc.a | grep 'print'

rw-r--r--     0/     0    436 Apr 18 23:29 1987 printf.o
rw-r--r--     0/     0    398 Apr 18 23:29 1987 fprintf.o
rw-r--r--     0/     0    422 Apr 18 23:29 1987 sprintf.o
rw-r--r--     0/     0    426 Apr 18 23:30 1987 vfprintf.o
rw-r--r--     0/     0    486 Apr 18 23:29 1987 vprintf.o
rw-r--r--     0/     0    414 Apr 18 23:29 1987 vsprintf.o


	There are more elegant ways of dealing with this, but this will work
for this program.  The more elegant ways will provide a fix for future
programs as well.  The above-mentioned 'ccc' is one example.

	Good Luck
		DoN.
-- 
Donald Nichols (DoN.)		| Voice (Days):	(703) 664-1585
D&D Data			| Voice (Eves):	(703) 938-4564
Disclaimer: from here - None	| Email:     <dnichols at ceilidh.beartrack.com>
	--- Black Holes are where God is dividing by zero ---



More information about the Comp.sys.3b1 mailing list