niv wrote: > Hi, > > Thanks for the reply. > > There is actually seems to be 2 declarations for Printer model . > foomaticrip.c file has > char printer_model[128] = ""; > > options.c has > char printer_model [256]; > > I removed char printer_model [256]; from options.c file. > or you can put do static char priter_model[256]; If it is a global variable and so limit the scope to that file. > It is giving below errors. > bash-3.2# make > make all-am > gcc -g -O2 -o foomatic-rip foomaticrip.o options.o pdf.o > postscript > .o util.o spooler.o process.o renderer.o fileconverter.o -lm > ld: Unsatisfied symbol "strchrnul" in file renderer.o > ld: Unsatisfied symbol "gsapi_init_with_args" in file pdf.o > ld: Unsatisfied symbol "strndup" in file util.o > ld: Unsatisfied symbol "gsapi_set_stdio" in file pdf.o > ld: Unsatisfied symbol "strcasestr" in file foomaticrip.o > ld: Unsatisfied symbol "gsapi_exit" in file pdf.o > ld: Unsatisfied symbol "gsapi_new_instance" in file pdf.o > ld: Unsatisfied symbol "rpl_realloc" in file options.o > ld: Unsatisfied symbol "gsapi_delete_instance" in file pdf.o > ld: Unsatisfied symbol "gsapi_run_string" in file pdf.o > 10 errors. > You are missing at least 2 libraries in the link line. The one about strxxx I suspect it is libc. gsapi_xxx looks like ghost script API, but I don't know what is library name.
Can't find it on my snv 104 though for some reason. -Ghee > collect2: ld returned 1 exit status > *** Error exit code 1 > > Stop. > *** Error exit code 1 > > Stop. > > Please help. > > Thanks. >