View previous topic :: View next topic |
Author |
Message |
erzapito Tux's lil' helper
Joined: 02 Feb 2007 Posts: 136
|
Posted: Wed Sep 12, 2012 4:48 pm Post subject: ebuild for mldonkey-3.1.3 |
|
|
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 |
|
|
erzapito Tux's lil' helper
Joined: 02 Feb 2007 Posts: 136
|
Posted: Thu Sep 13, 2012 10:01 am Post subject: |
|
|
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 |
|
|
FireFlash n00b
Joined: 20 Feb 2003 Posts: 8 Location: O0o [NL] o0O
|
Posted: Fri Dec 07, 2012 10:12 pm Post subject: |
|
|
Did you find a solution yet? This is bugging me too... |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21624
|
Posted: Fri Dec 07, 2012 10:53 pm Post subject: |
|
|
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 |
|
|
erzapito Tux's lil' helper
Joined: 02 Feb 2007 Posts: 136
|
Posted: Mon Dec 10, 2012 9:35 am Post subject: |
|
|
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 |
|
|
|