Here is the bug-tracker report that explains libpng-1.2.17rc3
Glenn
>X-McAfeeVS-TimeoutProtection: 0
>X-Originating-IP: [66.35.250.206]
>To: noreply@so...
>From: "SourceForge.net" <noreply@so...>
>Subject: [ libpng-Bugs-1715219 ] version script fails with symbol prefixes
>X-SourceForge-Tracker-unixname: libpng
>X-SourceForge-Tracker-trackerid: 105624
>X-SourceForge-Tracker-itemid: 1715219
>X-SourceForge-Tracker-itemstatus: Open
>X-SourceForge-Tracker-itemassignee: glennrp
>X-SourceForge-Tracker-itemupdate-reason: Comment added
>X-SourceForge-Tracker-itemupdate-username: glennrp
>Sender: Nobody <nobody@sc...>
>Date: Wed, 09 May 2007 12:20:37 -0700
>
>Bugs item #1715219, was opened at 2007-05-08 15:36
>Message generated for change (Comment added) made by glennrp
>You can respond by visiting:
>https://sourceforge.net/tracker/?func=detail&atid=105624&aid=1715219&group_id=5624
>
>Please note that this message will contain a full copy of the comment thread,
>including the initial issue submission, for this request,
>not just the latest update.
>Category: None
>Group: None
>Status: Open
>Resolution: Accepted
>Priority: 5
>Private: No
>Submitted By: Mike Frysinger (vapier)
>Assigned to: Glenn Randers-Pehrson (glennrp)
>Summary: version script fails with symbol prefixes
>
>Initial Comment:
>some compilers/ABIs require symbol prefixes (like an underscore) but libpng's use of a
version script does not handle this ... by translating C symbols directly to those visible
by the linker, the compiler misses the chance to automatically prefix the symbols
>
>a configure.ac test would be:
>if test "$have_ld_version_script" = "yes"; then
> AC_MSG_CHECKING([for symbol prefix])
> SYMBOL_PREFIX=`echo "PREFIX=__USER_LABEL_PREFIX__" \
> | ${CPP-${CC-gcc} -E} - 2>&1 \
> | ${EGREP-grep} "^PREFIX=" \
> | ${SED-sed} "s:^PREFIX=::"`
> AC_SUBST(SYMBOL_PREFIX)
> test "x$SYMBOL_PREFIX" = x && SYMBOL_PREFIX="none needed!"
> AC_MSG_RESULT($SYMBOL_PREFIX)
>fi
>
>and then just use $(SYMBOL_PREFIX) in Makefile.am when creating libpng.sym
>
>patch attached
>
>----------------------------------------------------------------------
>
>>Comment By: Glenn Randers-Pehrson (glennrp)
>Date: 2007-05-09 15:20
>
>Message:
>Logged In: YES
>user_id=7859
>Originator: NO
>
>The patch has been applied to libpng version 1.2.17rc3
>
>Glenn
>
>----------------------------------------------------------------------
>
>Comment By: Glenn Randers-Pehrson (glennrp)
>Date: 2007-05-09 10:23
>
>Message:
>Logged In: YES
>user_id=7859
>Originator: NO
>
>Thanks
>
>----------------------------------------------------------------------
>
>You can respond by visiting:
>https://sourceforge.net/tracker/?func=detail&atid=105624&aid=1715219&group_id=5624
>
|