[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gawk] undefined symbol (major, minor) on Solaris11
From: |
Aharon Robbins |
Subject: |
Re: [bug-gawk] undefined symbol (major, minor) on Solaris11 |
Date: |
Fri, 31 May 2013 06:16:22 +0300 |
User-agent: |
Heirloom mailx 12.5 6/20/10 |
Hi. Thanks for the bug report.
Can you try compiling with CFLAGS="-m64 -Xc -D_XPG4_2"?
If that doesn't work I will work on a patch.
Thanks!
Arnold
> From: ICHII Takashi <address@hidden>
> To: address@hidden
> Subject: [bug-gawk] undefined symbol (major, minor) on Solaris11
>
> Hi,
>
> Building gawk-4.1.0 on Solaris11, SolarisStudio12.3 (sun compiler)
> fails as below:
> ===
> libtool: link: /opt/solstudio/bin/cc -G -z defs -h filefuncs.so -o
> .libs/filefuncs.so .libs/filefuncs.o .libs/stack.o .libs/gawkfts.o
> -lc -m64 -m64
> Undefined first referenced
> symbol in file
> major .libs/filefuncs.o
> minor .libs/filefuncs.o
> ld: fatal: symbol referencing errors. No output written to .libs/filefuncs.so
> ===
>
> The compiler flags are:
> CC=/opt/solstudio/bin/cc
> CFLAGS="-m64 -Xc"
>
> % uname -a
> SunOS bigbird 5.11 11.1 i86pc i386 i86pc Solaris
> % /opt/solstudio/bin/cc -V
> cc: Sun C 5.12 SunOS_i386 2011/11/16
>
> Note that it's successful with gawk-4.0.1, which has "#include
> <sys/sysmacros.h>" in filefunc.c.
>
> Regards,
> Takashi
> --
> ICHII Takashi
> address@hidden