Skip Menu |

This queue is for tickets about the Encode CPAN distribution.

Report information
The Basics
Id: 131210
Status: resolved
Priority: 0/
Queue: Encode

People
Owner: Nobody in particular
Requestors: PLICEASE [...] cpan.org
Cc: pali [...] cpan.org
AdminCc:

Bug Information
Severity: (no value)
Broken in: 3.01
Fixed in: 3.02



Subject: fails to compile on Strawberry 5.14, 5.18, etc. for lack of MIN macro
On some older versions of Strawberry including at least 5.14 and 5.18 I am seeing this linker error when building Encode out of CPAN: g++ -o ..\blib\arch\auto\Encode\Unicode\Unicode.dll -Wl,--base-file -Wl,dll.base -mdll -s -L"D:\lang\perl\strawberry\x64\5.14.4\perl\lib\CORE" -L"D:\lang\perl\strawberry\x64\5.14.4\c\lib" Unicode.o D:\lang\perl\strawberry\x64\5.14.4\perl\lib\CORE\libperl514.a -lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -lversion -lodbc32 -lodbccp32 -lcomctl32 dll.exp Unicode.o:Unicode.c:(.text+0x1f10): undefined reference to `MIN' My understanding is that MIN is a macro that is a non-standard GNU extension, so this could be broken in other compilers on other platforms as well. It looks like this has been fixed in git by adding an ifndef MIN. So probably only a release is necessary to fix this.
On Sun Dec 22 04:01:49 2019, PLICEASE wrote: Show quoted text
> On some older versions of Strawberry including at least 5.14 and 5.18 > I am seeing this linker error when building Encode out of CPAN: > > g++ -o ..\blib\arch\auto\Encode\Unicode\Unicode.dll -Wl,--base-file > -Wl,dll.base -mdll -s > -L"D:\lang\perl\strawberry\x64\5.14.4\perl\lib\CORE" > -L"D:\lang\perl\strawberry\x64\5.14.4\c\lib" Unicode.o > D:\lang\perl\strawberry\x64\5.14.4\perl\lib\CORE\libperl514.a > -lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 > -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 > -lmpr -lwinmm -lversion -lodbc32 -lodbccp32 -lcomctl32 dll.exp > Unicode.o:Unicode.c:(.text+0x1f10): undefined reference to `MIN' > > My understanding is that MIN is a macro that is a non-standard GNU > extension, so this could be broken in other compilers on other > platforms as well. It looks like this has been fixed in git by adding > an ifndef MIN. So probably only a release is necessary to fix this.
This problem should be already fixed in Encode version 3.02.
On Sat Jul 25 08:55:04 2020, PALI wrote: Show quoted text
> On Sun Dec 22 04:01:49 2019, PLICEASE wrote:
> > On some older versions of Strawberry including at least 5.14 and 5.18 > > I am seeing this linker error when building Encode out of CPAN: > > > > g++ -o ..\blib\arch\auto\Encode\Unicode\Unicode.dll -Wl,--base-file > > -Wl,dll.base -mdll -s > > -L"D:\lang\perl\strawberry\x64\5.14.4\perl\lib\CORE" > > -L"D:\lang\perl\strawberry\x64\5.14.4\c\lib" Unicode.o > > D:\lang\perl\strawberry\x64\5.14.4\perl\lib\CORE\libperl514.a > > -lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 > > -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 > > -lmpr -lwinmm -lversion -lodbc32 -lodbccp32 -lcomctl32 dll.exp > > Unicode.o:Unicode.c:(.text+0x1f10): undefined reference to `MIN' > > > > My understanding is that MIN is a macro that is a non-standard GNU > > extension, so this could be broken in other compilers on other > > platforms as well. It looks like this has been fixed in git by adding > > an ifndef MIN. So probably only a release is necessary to fix this.
> > This problem should be already fixed in Encode version 3.02.