Axis2-C
  1. Axis2-C
  2. AXIS2C-1577

neethi does not build with strict linking

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.6.0
    • Fix Version/s: None
    • Component/s: neethi
    • Labels:
      None
    • Environment:
      openSUSE Factory

      Description

      With strcit linking enabled, i.e. no undefined symbols allowed the test for neethi fails to build with the following error:

      gcc g -O2 -pthread -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -D_LARGEFILE64_SOURCE -ansi -Wall -Werror -Wno-implicit-function-declaration -o .libs/test test.o -lpthread ../../axiom/src/om/.libs/libaxis2_axiom.so ../../util/src/.libs/libaxutil.so ../src/.libs/libneethi.so -ldl -Wl,-rpath -Wl,/usr/lib64
      /usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../x86_64-suse-linux/bin/ld: test.o: undefined reference to symbol 'axiom_xml_reader_free'

        Activity

        Hide
        Robert Schweikert added a comment -

        The attached patch fixes this problem by adding libaxis2_parser.so.0 to the link line

        Show
        Robert Schweikert added a comment - The attached patch fixes this problem by adding libaxis2_parser.so.0 to the link line
        Hide
        Nandika Jayawardana added a comment -

        Checked the Makefile.am in neethi/test. It already has the line ../../axiom/src/parser/$(WRAPPER_DIR)/libaxis2_parser.la. Hence this patch is not required.

        Show
        Nandika Jayawardana added a comment - Checked the Makefile.am in neethi/test. It already has the line ../../axiom/src/parser/$(WRAPPER_DIR)/libaxis2_parser.la. Hence this patch is not required.

          People

          • Assignee:
            Nandika Jayawardana
            Reporter:
            Robert Schweikert
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development