pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg/48334: graphics/gd uses "ceill()", silently succeeds on amd64-6.1_STABLE, undefined symbol on macppc-6.99.24
The following reply was made to PR pkg/48334; it has been noted by GNATS.
From: "John D. Baker" <jdbaker%mylinuxisp.com@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc:
Subject: Re: pkg/48334: graphics/gd uses "ceill()", silently succeeds on
amd64-6.1_STABLE, undefined symbol on macppc-6.99.24
Date: Fri, 25 Oct 2013 15:52:39 -0500 (CDT)
On Wed, 23 Oct 2013, John D. Baker wrote:
> I can check on NetBSD/sparc for both netbsd-6 and 6.99.24, but it will
Compilation fails on NetBSD/sparc-6.1_STABLE in the same fashion as on
NetBSD/macppc-6.99.24. It also emits:
gd_bmp.c -fPIC -DPIC -o .libs/gd_bmp.o
gd_bmp.c: In function 'bmp_read_1bit':
gd_bmp.c:795:2: warning: implicit declaration of function 'ceill'
gd_bmp.c:795:18: warning: incompatible implicit declaration of built-in
function 'ceill'
which would seem to imply that the compiler will attempt to insert an
internal implementation but later, linking a utility with "libgd" fails
as on macppc-6.99.24:
libtool: link: gcc -std=gnu99 -O2 -pthread
-I/var/tmp/pkgsrc/graphics/gd/work/.buildlink/include
-I/var/tmp/pkgsrc/graphics/gd/work/.x11-buildlink/include/freetype2
-I/var/tmp/pkgsrc/graphics/gd/work/.x11-buildlink/include -fvisibility=hidden
-Wl,-R/usr/pkg/lib -Wl,-R/usr/X11R7/lib -pthread -o .libs/gdcmpgif gdcmpgif.o
-Wl,-rpath -Wl,/usr/X11R7/lib
-L/var/tmp/pkgsrc/graphics/gd/work/.buildlink/lib
-L/var/tmp/pkgsrc/graphics/gd/work/.x11-buildlink/lib -L./.libs -lgd -lpng16
-lbz2 -lfontconfig -lfreetype -lexpat -lvpx -lrt -ltiff -llzma -ljbig -ljpeg
-lz -lm -pthread -Wl,-rpath,/usr/pkg/lib
-Wl,-rpath,/var/tmp/pkgsrc/graphics/gd/work/.buildlink/lib
./.libs/libgd.so: undefined reference to `ceill'
*** Error code 1
Stop.
make: stopped in /var/tmp/pkgsrc/graphics/gd/work/libgd-2.1.0/src
Line 795 of "src/gd_bmp.c" is the only use of "ceill()" in the entire
${WRKSRC} tree of "graphics/gd" while there are many uses of "ceil()".
Thus, I'm still of the opinion that that singular use of "ceill()" is a
typographical error.
I entered an issue asking for clarification on the issue tracker at the
web site for "gd". No feedback yet.
--
|/"\ John D. Baker, KN5UKS NetBSD Darwin/MacOS X
|\ / jdbaker[snail]mylinuxisp[flyspeck]com OpenBSD FreeBSD
| X No HTML/proprietary data in email. BSD just sits there and works!
|/ \ GPGkeyID: D703 4A7E 479F 63F8 D3F4 BD99 9572 8F23 E4AD 1645
Home |
Main Index |
Thread Index |
Old Index