Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ebuild for mldonkey-3.1.3
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
erzapito
Tux's lil' helper
Tux's lil' helper


Joined: 02 Feb 2007
Posts: 82

PostPosted: Wed Sep 12, 2012 4:48 pm    Post subject: ebuild for mldonkey-3.1.3 Reply with quote

Hi, I'm trying to generate an ebuild for mldonkey-3.1.3 from the 3.1.0 version.

When compiling, I get the following error and I don't know what it could be:
Code:

undefined reference to symbol 'png_access_version_number@@PNG15_0'


Can anybody give me a clue about what direction to follow?

Regards.
Back to top
View user's profile Send private message
erzapito
Tux's lil' helper
Tux's lil' helper


Joined: 02 Feb 2007
Posts: 82

PostPosted: Thu Sep 13, 2012 10:01 am    Post subject: Reply with quote

I found out that there is a missing dependency with "png15" and that I should add "-lpng15" to LDFLAGS before configuring.

I've tried with "append-ldflags -lpng15" at the end of the setup section but that doesn't seem to work.
Back to top
View user's profile Send private message
FireFlash
n00b
n00b


Joined: 20 Feb 2003
Posts: 8
Location: O0o [NL] o0O

PostPosted: Fri Dec 07, 2012 10:12 pm    Post subject: Reply with quote

Did you find a solution yet? This is bugging me too...
Back to top
View user's profile Send private message
Hu
Watchman
Watchman


Joined: 06 Mar 2007
Posts: 9067

PostPosted: Fri Dec 07, 2012 10:53 pm    Post subject: Reply with quote

Passing libraries through $LDFLAGS is wrong and not guaranteed to work. Indeed, if the upstream build system is correctly written, it is very likely to fail. Assuming the upstream build system follows standard practices, you can pass the library via $LDLIBS or possibly $LIBS.
Back to top
View user's profile Send private message
erzapito
Tux's lil' helper
Tux's lil' helper


Joined: 02 Feb 2007
Posts: 82

PostPosted: Mon Dec 10, 2012 9:35 am    Post subject: Reply with quote

You're right, I finally did it that way and changed the following fuction in the ebuild:
Code:

src_configure() {
   # the dirs are not (yet) used, but it doesn't hurt to specify them anyway
   # onlygui   Disable all nets support, build only chosen GUI

   if use gtk || use guionly; then
      myconf="--enable-gui=newgui2"
   else
      myconf="--disable-gui"
   fi

   if use guionly; then
      myconf="${myconf} --disable-multinet --disable-donkey"
   fi

   cd "${S}"

        local my_extra_libs
        if use gd; then
                my_extra_libs="-lpng15"
        fi

   econf LIBS="${my_extra_libs}"\
      --sysconfdir=/etc/mldonkey \
      --sharedstatedir=/var/mldonkey \
      --localstatedir=/var/mldonkey \
      --enable-checks \
      --disable-batch \
      $(use_enable bittorrent) \
      $(use_enable fasttrack) \
      $(use_enable gnutella) \
      $(use_enable gnutella gnutella2) \
      $(use_enable gd) \
      $(use_enable magic) \
      ${myconf}
}
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum