Hello Raymond, From the nm output that you provided, we can see that the requested symbol pca_path_completions() is _Local_ to the library. It is not a publicly available symbol. So the error message is logical.
But as libtecla is bundled with Solaris, it looks to me like the API exported by the library is incomplete - Probably this function has been forgotten from the mapfile as it is declared using the CPL_MATCH_FN macro - and it is documented in the manual. Raymond, you should open a bug against libtecla in this case. Probably something in: Product: solaris Category: library Subcategory: libtecla HTH, William. Raymond Xiong wrote: > Hi, > > While I compiled a program using libtelca distributed with snv > latest build(snv66), I saw the following error message on both > SPARC and x86: > > $ which cc > /ws/onnv-tools/SUNWspro/SS11/bin/cc > $ cc -o demo2 demo2.c -L/usr/lib > -ltecla > Undefined first referenced > symbol in file > pca_path_completions demo2.o > ld: fatal: Symbol referencing errors. No output written to demo2 > > However, /usr/lib/libtecla.so did contain pca_path_completions() > functions: > > $ nm /usr/lib/libtecla.so | grep pca_path_completions > [87] | 123240| 1264|FUNC |LOCL |2 |11 |pca_path_completions > > I aslo tried its original tarball(available from > http://www.astro.caltech.edu/~mcs/tecla/index.html), using the > same tool and on the same platform. It didn't have this issue. > Maybe there is something wrong with its makefiles on Solaris? > > I attached the demo2.c program(it is from libtecla original > package) for the reference. Thanks for any suggestions on > how to fix or work around it. >