undefined 'scandir' and 'alphsort'

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

undefined 'scandir' and 'alphsort'

Abdul Sami-2
I m getting undefined symbols error on Solaris 9 while the test programs
are being linked.


gcc -g -O2 -pthread -g -O2 -D_LARGEFILE64_SOURCE -ansi -Wall -Werror
-Wno-implicit-function-declaration -o .libs/test test.o  
../../axiom/src/om/.libs/libaxis2_axiom.so
../../util/src/.libs/libaxutil.so ../src/.libs/libneethi.so
/axis2c-src-1.6.0/axiom/src/om/.libs/libaxis2_axiom.so
/axis2c-src-1.6.0/axiom/src/parser/guththila/.libs/libaxis2_parser.so
/axis2c-src-1.6.0/guththila/src/.libs/libguththila.so
/axis2c-src-1.6.0/util/src/.libs/libaxutil.so -lpthread -lsocket -lz
-ldl  -R/usr/local/axis2c/lib
gcc: unrecognized option `-pthread'
ld: warning: file
/axis2c-src-1.6.0/axiom/src/om/.libs/libaxis2_axiom.so: linked to
../../axiom/src/om/.libs/libaxis2_axiom.so: attempted multiple inclusion
of file
ld: warning: file /axis2c-src-1.6.0/util/src/.libs/libaxutil.so: linked
to ../../util/src/.libs/libaxutil.so: attempted multiple inclusion of file
Undefined                       first referenced
  symbol                             in file
alphasort                           ../../util/src/.libs/libaxutil.so
scandir                             ../../util/src/.libs/libaxutil.so



Reply | Threaded
Open this post in threaded view
|

Re: undefined 'scandir' and 'alphsort'

ramesh Gopal

These function are available only from SOL 10 onwards.

You will probably need to write an equivalent of those functions



      Your Mail works best with the New Yahoo Optimized IE8. Get it NOW! http://downloads.yahoo.com/in/internetexplorer/