Ghee Teo wrote: > 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. > Yes, the gsapi_* calls are part of libgs from ghostscript, but Solaris delivers libgs. It was something that we were thinking about as we were upgrading various packages. You will have to build your own. as for some of the others, I don't know where they are from off the top of my head, I suspect glibc for the strxxx functions, though it's not there either. strndup has implementations in libpapi and libprint if I remember correctly.
-Norm > -Ghee > >> collect2: ld returned 1 exit status >> *** Error exit code 1 >> >> Stop. >> *** Error exit code 1 >> >> Stop. >> >> Please help. >> >> Thanks. >> >> > > _______________________________________________ > printing-discuss mailing list > printing-discuss at opensolaris.org >