You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by "Jonathan Leffler (JIRA)" <ji...@apache.org> on 2008/07/09 01:14:33 UTC
[jira] Issue Comment Edited: (AXIS2C-638) Linker error while trying
to bulid Axis/C on Solaris
[ https://issues.apache.org/jira/browse/AXIS2C-638?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12611835#action_12611835 ]
jleffler edited comment on AXIS2C-638 at 7/8/08 4:13 PM:
-----------------------------------------------------------------
I've just built Axis2/C 1.4.0 on Solaris 10 and ran into this problem, but also worked around it.
The problem is that the socket library on Solaris 10 (presumably, given the symptoms, on Solaris 9 too), is in /usr/lib/libsocket.so or /usr/lib/sparcv9/libsocket.so (32-bit vs 64-bit).
I had to do manual link steps for the programs in:
neetha/test
src/core/transport/http/server/simpler_axis2_server
tools/tcpmon/src
tools/md5/src
In each case, I ran the failing make, copied the bash/libtool line, and added -lsocket to the end (after -ldl), and ran the command again.
I was also getting warning from the linker about libaxutils.so and libaxis2_parser.so being linked twice.
I did not need to include -lnsl (which I see was suggested on 2008-04-16 by Manfred Bohlmann). That might be because -lsocket ensured it was included already. I added just -lnsl the first time, and none of the missing symbols were resolved.
(FWIW: I have a library that uses socket code and is autoconfigured. The configure.ac uses the line:
AC_SEARCH_LIBS([socket], [socket])
If that's added to the corresponding file in Axis, it may be sufficient.)
was (Author: jleffler):
I've just built Axis2/C 1.4.0 on Solaris 10 and ran into this problem, but also worked around it.
The problem is that the socket library on Solaris 10 (presumably, given the symptoms, on Solaris 9 too), is in /usr/lib/libsocket.so or /usr/lib/sparcv9/libsocket.so (32-bit vs 64-bit).
I had to do manual link steps for the programs in:
neetha/test
src/core/transport/http/server/simpler_axis2_server
tools/tcpmon/src
tools/md5/src
In each case, I ran the failing make, copied the bash/libtool line, and added -lsocket to the end (after -ldl), and ran the command again.
I was also getting warning from the linker about libaxutils.so and libaxis2_parser.so being linked twice.
I did not need to include -lnsl (which I see was suggested on 2008-04-16 by Manfred Bohlmann). That might be because -lsocket ensured it was included already. I added just -lnsl the first time, and none of the missing symbols were resolved.
> Linker error while trying to bulid Axis/C on Solaris
> ----------------------------------------------------
>
> Key: AXIS2C-638
> URL: https://issues.apache.org/jira/browse/AXIS2C-638
> Project: Axis2-C
> Issue Type: Bug
> Components: build system
> Environment: SunOS 5.9 sparc
> gcc version 4.1.1
> libtool (GNU libtool) 1.5.22
> automake (GNU automake) 1.9.6
> autoconf (GNU Autoconf) 2.61
> Reporter: velmurugan
> Assignee: Sanjaya Ratnaweera
>
> We need to evaluate Axis/C , so we neet to build Axis/C source on Linux, Solaris, AIX and HPUX.
> My buddy has built the code already on Linux. Somehow i overcome the compilation errors.
> I am getting some linker errors. I may need to link lsocket or someother library somewhere.
> Really dont know which Makefile i need to edit. Pasted the console ouput below.
> ../../../../../../util/src/.libs/libaxutil.so: undefined reference to `recv'
> ../../../../../../util/src/.libs/libaxutil.so: undefined reference to `connect'
> ../../../../../../util/src/.libs/libaxutil.so: undefined reference to `socket'
> ../../../../../../util/src/.libs/libaxutil.so: undefined reference to `send'
> ../../../../../../util/src/.libs/libaxutil.so: undefined reference to `accept'
> ../../../../../../util/src/.libs/libaxutil.so: undefined reference to `bind'
> ../../../../../../util/src/.libs/libaxutil.so: undefined reference to `inet_addr'
> ../../../../../../util/src/.libs/libaxutil.so: undefined reference to `setsockopt'
> ../../../../../../util/src/.libs/libaxutil.so: undefined reference to `scandir'
> ../../../../../../util/src/.libs/libaxutil.so: undefined reference to `alphasort'
> ../../../../../../util/src/.libs/libaxutil.so: undefined reference to `listen'
> ../../../../../../util/src/.libs/libaxutil.so: undefined reference to `inet_ntoa'
> ../../../../../../util/src/.libs/libaxutil.so: undefined reference to `shutdown'
> ../../../../../../util/src/.libs/libaxutil.so: undefined reference to `gethostbyname'
> ../../../../../../util/src/.libs/libaxutil.so: undefined reference to `getpeername'
> ../../../../../../util/src/.libs/libaxutil.so: undefined reference to `ether_ntoa'
> ../../../../../../util/src/.libs/libaxutil.so: undefined reference to `getsockname'
> collect2: ld returned 1 exit status
> *** Error code 1
> make: Fatal error: Command failed for target `axis2_http_server'
> Current working directory /usr/velms/axis2c-src-1.0.0/src/core/transport/http/server/simple_axis2_server
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org