axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sahan Gamage" <sah...@gmail.com>
Subject Re: Solaris 10 - undefined symbol on tools/md5/src
Date Mon, 05 May 2008 16:45:17 GMT
Hi Mark,

Seems that you need to link with the socket library. (use -lsocket
option).  I am not sure how to do it properly under automake system.
But as a quick workaround try setting environment variable LDFLAGS to
-lsocket ('export LDFLAGS=-lsocket' in bash)

Thanks
-sahan

On 5/5/08, mark tokheim <mark.tokheim@gmail.com> wrote:
>
>
> Hey all,
>
>     I am running into an undefined symbol when trying to comple the axis2c
> source.   I am running on Solaris 10 with the following configure line.  Any
> help would be appreciated.  Thanks
>
> -Mark
>
>
>
> ./configure --prefix=${AXIS2C_HOME} CFLAGS="-m64 -O2 -D_LARGEFILE64_SOURCE
> -ansi -Wall -Werror -Wno-implicit-function-declaration
> -R/usr/sfw/lib/64" CXXFLAGS="-m64 -O2"
>
>
>
> Here is the make error
>
>
>
> Making all in tools/md5
>
> Making all in src
>
> /bin/bash ../../../libtool --tag=CC --mode=link gcc  -m64 -O2
> -D_LARGEFILE64_SOURCE -ansi -Wall -Werror
> -Wno-implicit-function-declaration -R/usr/sfw/lib/64
> -D_LARGEFILE64_SOURCE -ansi -Wall -Werror
> -Wno-implicit-function-declaration -g
> -DAXIS2_SVR_MULTI_THREADED   -lpthread -o md5  md5.o
> ../../../util/src/libaxutil.la -lz -ldl
>
> gcc -m64 -O2 -D_LARGEFILE64_SOURCE -ansi -Wall -Werror
> -Wno-implicit-function-declaration -D_LARGEFILE64_SOURCE
> -ansi -Wall -Werror -Wno-implicit-function-declaration -g
> -DAXIS2_SVR_MULTI_THREADED -o .libs/md5 md5.o
> ../../../util/src/.libs/libaxutil.so -lpthread -lz -ldl
> -R/opt/installs/axis2c-1.3.0/lib -R/usr/sfw/lib/64
>
> Undefined                       first referenced
>
>  symbol                             in file
>
> bind
> ../../../util/src/.libs/libaxutil.so
>
> recv
> ../../../util/src/.libs/libaxutil.so
>
> send
> ../../../util/src/.libs/libaxutil.so
>
> getsockname
> ../../../util/src/.libs/libaxutil.so
>
> accept
> ../../../util/src/.libs/libaxutil.so
>
> listen
> ../../../util/src/.libs/libaxutil.so
>
> gethostbyname
> ../../../util/src/.libs/libaxutil.so
>
> socket
> ../../../util/src/.libs/libaxutil.so
>
> setsockopt
> ../../../util/src/.libs/libaxutil.so
>
> connect
> ../../../util/src/.libs/libaxutil.so
>
> getpeername
> ../../../util/src/.libs/libaxutil.so
>
> inet_addr
> ../../../util/src/.libs/libaxutil.so
>
> inet_ntoa
> ../../../util/src/.libs/libaxutil.so
>
> shutdown
> ../../../util/src/.libs/libaxutil.so
>
> ld: fatal: Symbol referencing errors. No output written to .libs/md5
>
> collect2: ld returned 1 exit status
>
> *** Error code 1
>
> make: Fatal error: Command failed for target `md5'
>
> Current working directory
> /import/installs/products/apache/axis/axis2c-src-1.3.0/tools/md5/src
>
> *** Error code 1
>
> The following command caused the error:
>
> failcom='exit 1'; \
>
> for f in x $MAKEFLAGS; do \
>
>   case $f in \
>
>     *=* | --[!k]*);; \
>
>     *k*) failcom='fail=yes';; \
>
>   esac; \
>
> done; \
>
> dot_seen=no; \
>
> target=`echo all-recursive | sed s/-recursive//`; \
>
> list='src'; for subdir in $list; do \
>
>   echo "Making $target in $subdir"; \
>
>   if test "$subdir" = "."; then \
>
>     dot_seen=yes; \
>
>     local_target="$target-am"; \
>
>   else \
>
>     local_target="$target"; \
>
>   fi; \
>
>   (cd $subdir && make  $local_target) \
>
>   || eval $failcom; \
>
> done; \
>
> if test "$dot_seen" = "no"; then \
>
>   make  "$target-am" || exit 1; \
>
> fi; test -z "$fail"
>
> make: Fatal error: Command failed for target `all-recursive'
>
> Current working directory
> /import/installs/products/apache/axis/axis2c-src-1.3.0/tools/md5
>
> *** Error code 1
>
> The following command caused the error:
>
> failcom='exit 1'; \
>
> for f in x $MAKEFLAGS; do \
>
>   case $f in \
>
>     *=* | --[!k]*);; \
>
>     *k*) failcom='fail=yes';; \
>
>   esac; \
>
> done; \
>
> dot_seen=no; \
>
> target=`echo all-recursive | sed s/-recursive//`; \
>
> list='util  axiom neethi src  include ides tools/tcpmon tools/md5'; for
> subdir in $list; do \
>
>   echo "Making $target in $subdir"; \
>
>   if test "$subdir" = "."; then \
>
>     dot_seen=yes; \
>
>     local_target="$target-am"; \
>
>   else \
>
>     local_target="$target"; \
>
>   fi; \
>
>   (cd $subdir && make  $local_target) \
>
>   || eval $failcom; \
>
> done; \
>
> if test "$dot_seen" = "no"; then \
>
>   make  "$target-am" || exit 1; \
>
> fi; test -z "$fail"
>
> make: Fatal error: Command failed for target `all-recursive'
>
> Current working directory
> /import/installs/products/apache/axis/axis2c-src-1.3.0
>
> *** Error code 1
>
> make: Fatal error: Command failed for target `all'

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-user-help@ws.apache.org


Mime
View raw message