[Pidgin Plugins] #349: Guifications build fails due to libxml2-dev not being installed

Pidgin Plugins plugins-trac at guifications.org
Wed Jun 6 12:23:25 CDT 2007


#349: Guifications build fails due to libxml2-dev not being installed
----------------------------+-----------------------------------------------
Reporter:  jbailey          |       Owner:               
    Type:  Bugs             |      Status:  new          
Priority:  4                |   Component:  Guifications2
 Version:  Current Release  |    Keywords:               
----------------------------+-----------------------------------------------
 A user in #guifications yesterday had some issues:
 {{{
 11:46 < Ownatik> Hi, I get this  error when compiling: I get this when
 compiling:
                  http://pastebin.ca/541803
 11:46 < Ownatik> ./configure works  perfect  and make worked for like  5
 sec
 11:47 < rekkanoryo> odd...
 11:47 < rekkanoryo> and you have libxml2-dev or whtaver it's called on
 your system installed?
 11:48 < Ownatik> well
 11:48 < Ownatik> I just did sudo apt-get install libxml2
 11:48 < Ownatik> "libxml2 is already the newest version."
 11:48 < rekkanoryo> apt-get install libxml2-dev
 11:49 < Ownatik> ok it installed something
 11:49 < rekkanoryo> now try make again
 11:50 < Ownatik> I get entering directory and nothing has to be done
 11:50 < Ownatik> a bunch of that
 11:51 < rekkanoryo> ok, so it completed successfully, no errors?
 11:51 < Ownatik> don't see any
 11:51 < Ownatik> but it still not in the pugin list
 11:51 < rekkanoryo> you still need to make install
 11:52 < Ownatik> oh right :P
 11:52 < Ownatik> errors
 11:53 < Ownatik> http://pastebin.ca/541834
 11:53 < Ownatik> oh
 11:53 < Ownatik> but it's in the plugin list now
 11:54 < rekkanoryo> ok, well, just for fun try 'make clean' and
 reconfigure, then 'make' and
                     whatever you did for 'make install' to see if it still
 errors
 11:54 < Ownatik> so it seems to be working
 11:54 < Ownatik> ok
 11:55 < Ownatik> no errors anymore :)
 }}}

 The following is a log of relevant discussion in #pidgin that ensued after
 Sadrul suggested adding libxml2 to the purple.pc Requires stuff:

 {{{
 19:53 < nosnilmot> rekkanoryo: where did this missing dep on libxml2 show
 up?, I'm sure
                    you'll know
 19:53 < rekkanoryo> nosnilmot: see #guifications, although i'm more
 inclined to think it's
                     ari not including enough deps in pidgin-dev
 19:54 < nosnilmot> rekkanoryo: yeah, found it, thanks. (I'm trying to fix
 up Fedora/our RPMs
                    so we don't look as stupid)
 19:55 < nosnilmot> rekkanoryo: oh, debian ships .la files?
 19:56 < rekkanoryo> nosnilmot: apparently
 19:56 < nosnilmot> oh good, I can probably ignore that one then
 19:57 < rekkanoryo> nosnilmot: grim or anyone else around here who uses
 debian is probably
                     more familiar with the root cause of this stuff
 19:58 < rekkanoryo> I just want to know exactly where the problem is so I
 know who to yell at
 19:58 < nosnilmot> I'm not really worried about the root cause, just want
 to make the RPMs
                    better :)
 19:58 < deryni> What's the problem?
 19:59 < rekkanoryo> deryni: remember the problem earlier with the user
 compiling guifications?
 19:59 < deryni> Yes.
 19:59 < rekkanoryo> guifications actually doesn't directly depend on
 libxml2
 19:59 < deryni> So the problem was just a missing build-dep for
 pidgin/libpurple on libxml2?
 20:00 < rekkanoryo> all our stuff is using the libpurple api, but we're
 picking up flags to
                     link against it from purple.pc (according to grim)
 20:01 < deryni> I see.
 20:01 < nosnilmot> the problem there is most likely you have a
 libpurple.la file referencing
                    libxml2
 20:01 < rekkanoryo> and since debian's pidgin-dev package doesn't have
 libxml2-dev as a
                     dependency that's the cause of the error
 20:01 < rekkanoryo> well, that coupled with the user not having
 libxml2-dev installed
 20:01 < nosnilmot> which should not mean that all plugins need to link to
 libxml2
 20:03 < elb> yeah, plugins shouldn't have to link libxml2, actually
 20:05 < rekkanoryo> and looking at purple.pc shows there's no mention of
 libxml2 anywhere,
                     which means that grim's wrong on that score and we
 need to figure out
                     what is screwed up in debian's pidign-dev
 20:05 < nosnilmot> strictly plugins don't need to link to libpurple either
 (and if
                    guifications didn't, it would probably avoid this
 issue)
 20:06 < nosnilmot> nothing is screwed up in debian's pidgin-dev aside from
 the fact that they
                    are shipping a .la file
 20:06 < elb> however, shouldn't our .la work?
 20:06 < elb> (I've never seen a .la file be anything but a PITA
 20:06 < elb> )
 20:06 < rekkanoryo> ok, then I guess we just ran across a reason to listen
 to astronut's
                     incessant whining about our linking
 20:06 < nosnilmot> it does work, if you have all the corresponding .la's
 from all other
                    associated libs
 20:07 < nosnilmot> shipping .la's is generally a path to pain, yes, but I
 guess this is a
                    debian policy to ship them, or something
 20:07 < deryni> What purpose are they supposed to serve? I've only ever
 seen them break
                 things.
 20:08 < nosnilmot> they increase the pain libtool inflicts on us :)
 20:09 < nosnilmot> they can help linking with libraries in some cases, but
 in modern linux
                    distros they generally just cause pain (by introducing
 unnecessary
                    dependencies)
 20:12 < rekkanoryo> so then if I have a .la file, i have to have the .la's
 for *every*
                     library it's dependent on?
 20:15 < nosnilmot> rekkanoryo: if that's what libtool decides, yes
 20:16 < rekkanoryo> nosnilmot: then since debian is shipping the .la
 files, shouldn't they be
                     doing the -dev package depends correctly, or am I
 still missing something
                     basic as to why this is our (guifications') fault?
 20:17 < rekkanoryo> s/correctly/to reflect that need/
 20:17 < nosnilmot> they probably should, yes, but I have enough trouble
 keeping up with
                    Fedora, so I'll let you figure out debian policy and
 politics on such
                    things ;-)
 20:18 < nosnilmot> they'll probably claim something about it being a .la
 produced by libtool
                    for guifications (which is just stipid, because
 guifications is a plugin,
                    nothing should ever want to link to it)
 20:20 < rekkanoryo> of course I should try to duplicate it in a chroot or
 vm or whatever
                     before I go complaining just to back my claims up
 20:22 < nosnilmot> nah, just go and start ranting in #debian, I'm sure
 they'll appreciate it
                    :)
 20:24 < rekkanoryo> heh
 }}}

 Before taking this to ari, I will attempt to duplicate in a chroot.  Any
 money says if I can reproduce this, I'll be told that it's our breakage
 because we're linking to libpurple, Pidgin, etc., which is an unacceptable
 answer.

-- 
Ticket URL: <http://plugins.guifications.org/trac/ticket/349>
Pidgin Plugins <http://pidgin.guifications.org/>
Plugins for the Instant Messaging client Pidgin and its backend library libpurple


More information about the Plugins-tickets mailing list