bugLordsAWar! - Bugs: bug #32932, multiple undefined referencies to...

 
 

bug #32932: multiple undefined referencies to xml* and xslt* functions

Submitted by:  Dmitrij D. Czarkoff <czarkoff>
Submitted on:  Mon 28 Mar 2011 12:32:02 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

(Jump to the original submission Jump to the original submission)

Sat 29 Oct 2011 07:44:56 PM UTC, comment #9:

Hi!

Just tried to compile lordsawar on Ubuntu 11.04. Got this same error, but on a different directories. Fixed by checking the change 2619 on the svn and modifying Makefile.am files similarily on src/gls and src/ghs dirs.

Hannu Kotipalo <nite69>
Fri 06 May 2011 10:36:34 PM UTC, comment #8:

I am closing the bug due to no response.

Ben Asselstine <benasselstine>
Project Administrator
Sat 16 Apr 2011 04:02:49 PM UTC, comment #7:

hey, I'm still waiting for the build log.

Ben Asselstine <benasselstine>
Project Administrator
Wed 30 Mar 2011 11:51:09 AM UTC, comment #6:

would you mind attaching the build log with CFLAGS enabled? I'd like to compare.

Ben Asselstine <benasselstine>
Project Administrator
Mon 28 Mar 2011 02:54:02 PM UTC, comment #5:

It compiles on my system just fine.

I can see that -lxml2 is being included in the linking.
And I can see that it's not finding symbols belonging to libxml2.

(and the same goes for -lxslt)

I think you might be on your own for this bug.

Ben Asselstine <benasselstine>
Project Administrator
Mon 28 Mar 2011 02:12:59 PM UTC, comment #4:

Revision 2619 fails to build with exactly the same output as described in original submission.

Dmitrij D. Czarkoff <czarkoff>
Mon 28 Mar 2011 01:22:06 PM UTC, comment #3:

I didn't pretend to solve the whole problem. I just showed the patch that made everything compile and run.

Now building 2619.

Dmitrij D. Czarkoff <czarkoff>
Mon 28 Mar 2011 01:11:57 PM UTC, comment #2:

Thanks for the patch but it's the wrong way of fixing the patch. On further inspection, you will notice that the configure script is going to the trouble of making the following variables available for makefiles:

XSLT_LIBS
XSLT_CFLAGS
LIBXML_LIBS
LIBXML_CFLAGS

I've addressed the Makefile.am in pbm/ in revision 2619.

Please try again and report if it works for you or it doesn't.

Ben Asselstine <benasselstine>
Project Administrator
Mon 28 Mar 2011 12:32:43 PM UTC, comment #1:

I solved the problem with the ugly patch (attached), but I believe someone with better knowledge of autoconf could make it better.

(file #23035)

Dmitrij D. Czarkoff <czarkoff>
Mon 28 Mar 2011 12:32:02 PM UTC, original submission:

Since introoduction of libxml2 and libxslt dependencies compilation of SVN fails for me:

../../src/.libs/liblordsawar.a(file-compat.o): In function `FileCompat::xsl_transform(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >) const':
file-compat.cpp:(.text+0x23cc): undefined reference to `xmlCharStrdup'
file-compat.cpp:(.text+0x23d6): undefined reference to `xsltParseStylesheetFile'
file-compat.cpp:(.text+0x23f1): undefined reference to `xmlParseFile'
file-compat.cpp:(.text+0x240f): undefined reference to `xsltApplyStylesheet'
file-compat.cpp:(.text+0x2436): undefined reference to `xmlCharStrdup'
file-compat.cpp:(.text+0x245a): undefined reference to `xsltSaveResultToFilename'
file-compat.cpp:(.text+0x2462): undefined reference to `xsltFreeStylesheet'
file-compat.cpp:(.text+0x246e): undefined reference to `xmlFreeDoc'
file-compat.cpp:(.text+0x2476): undefined reference to `xmlFreeDoc'
file-compat.cpp:(.text+0x248f): undefined reference to `xsltCleanupGlobals'
file-compat.cpp:(.text+0x2494): undefined reference to `xmlCleanupParser'
collect2: ld returned 1 exit status
make[3]: *** [lordsawar-pbm] Error 1
make[3]: Leaving directory `/home/ddc/pkg/lordsawar-svn/src/lordsawar-svn/src/pbm'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/ddc/pkg/lordsawar-svn/src/lordsawar-svn/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ddc/pkg/lordsawar-svn/src/lordsawar-svn'
make: *** [all] Error 2

See the full log (attached) for details.

Dmitrij D. Czarkoff <czarkoff>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #23035:  configure.ac.patch added by czarkoff (352B - application/octet-stream)
file #23034:  log.bz2 added by czarkoff (18KiB - application/octet-stream - Build log)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by nite69 (Posted a comment)
  • -unavailable- added by benasselstine (Posted a comment)
  • -unavailable- added by czarkoff (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 06 May 2011 10:36:34 PM UTCbenasselstineOpen/ClosedOpen=>Closed
    Mon 28 Mar 2011 12:32:43 PM UTCczarkoffAttached File-=>Added configure.ac.patch, #23035
    Mon 28 Mar 2011 12:32:02 PM UTCczarkoffAttached File-=>Added log.bz2, #23034

    Back to the top


    Powered by Savane 3.1-cleanup1