[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gawk] undefined symbol (major, minor) on Solaris11
From: |
ICHII Takashi |
Subject: |
Re: [bug-gawk] undefined symbol (major, minor) on Solaris11 |
Date: |
Thu, 6 Jun 2013 07:29:43 +0900 |
Hi Arnold,
> Can you try compiling with CFLAGS="-m64 -Xc -D_XPG4_2"?
Still same symbol error has happened:
===
/bin/sh ./libtool --tag=CC --mode=link /opt/solstudio/bin/cc -m64
-Xc -D_XPG4_2 -module -avoid-version -no-undefined -o filefuncs.la
-rpath /home/ichii386/opt/lib/gawk filefuncs.lo stack.lo gawkfts.lo
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
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
*** Error code 2
===
On Solaris, these symbols seem to be defined in <sys/mkdev.h>.
(AC_HEADER_MAJOR is needed?)
Sorry for the late reply, I missed the mail because my mta was wrong.
Thanks,
Takashi
> 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
>
--
Takashi Ichii
address@hidden
- Re: [bug-gawk] undefined symbol (major, minor) on Solaris11,
ICHII Takashi <=