[Speex-dev] Missing getopt_long in Solaris 8 Sparc

Jean-Marc Valin Jean-Marc.Valin at USherbrooke.ca
Fri Apr 17 06:31:32 PDT 2009


Hi Dagobert,

Unfortunately, I also have very limited understanding of all the autotools stack
and I doubt I'm the one who added that getopt compatibility work-around (it's
so old I don't remember when it came in). Anyone has an idea how to fix it?

   Jean-Marc

Quoting Dagobert Michelsen <dam at opencsw.org>:

> Hi Jean-Marc,
>
> Am 17.04.2009 um 13:35 schrieb Jean-Marc Valin:
> > It should be using getopt1.c when getopt isn't available.c. Can you
> > check why it doesn't? In any case, that's only required for the Ogg
> > tools, not for the library.
>
> config.log says
>    ac_cv_func_getopt_long=no
>    ac_cv_header_getopt_h=no
>    ac_cv_lib_gnugetopt_getopt_long=no
>
> LIBOBJS=' ${LIBOBJDIR}getopt$U.o ${LIBOBJDIR}getopt1$U.o'
> LIBS='-lm '
> LIBTOOL='$(SHELL) $(top_builddir)/libtool'
> LN_S='ln -s'
> LTLIBOBJS=' ${LIBOBJDIR}getopt$U.lo ${LIBOBJDIR}getopt1$U.lo'
>
> However, the files in src/ are not compiled:
>
> build8s% ls -l src/
> total 269
> -rw-r--r--   1 dam      csw        18710 Apr 17 13:42 Makefile
> -rw-r--r--   1 dam      csw          839 Jun  2  2008 Makefile.am
> -rw-r--r--   1 dam      csw        19185 Jul 21  2008 Makefile.in
> -rw-r--r--   1 dam      csw        31054 Jun  8  2007 getopt.c
> -rw-r--r--   1 dam      csw         4741 Jun  8  2007 getopt1.c
> -rw-r--r--   1 dam      csw         6030 Jun  8  2007 getopt_win.h
> -rw-r--r--   1 dam      csw         6651 Jun 23  2007 skeleton.c
> -rw-r--r--   1 dam      csw         3022 Jun 23  2007 skeleton.h
> -rw-r--r--   1 dam      csw         4660 Apr 17 13:45 skeleton.o
> -rw-r--r--   1 dam      csw         1534 Jun  2  2008 speexdec.1
> -rw-r--r--   1 dam      csw        24511 May 30  2008 speexdec.c
> -rw-r--r--   1 dam      csw         2133 Jun  2  2008 speexenc.1
> -rw-r--r--   1 dam      csw        30320 May 30  2008 speexenc.c
> -rw-r--r--   1 dam      csw        32356 Apr 17 13:45 speexenc.o
> -rw-r--r--   1 dam      csw         5834 Aug 11  2007 wav_io.c
> -rw-r--r--   1 dam      csw         2530 Aug 11  2007 wav_io.h
> -rw-r--r--   1 dam      csw         5344 Apr 17 13:45 wav_io.o
> -rw-r--r--   1 dam      csw         6913 Jun 23  2007 wave_out.c
> -rw-r--r--   1 dam      csw         2923 Jun 23  2007 wave_out.h
>
>
> Unfortunately I am not fluent enough in autoconf/automake to diagnose
> the
> problem properly. What information can I offer to help debugging?
>
>
> Best regards
>
>    -- Dago
>
> >
> > 	Jean-Marc
> >
> >
> > Dagobert Michelsen a écrit :
> >> Hi,
> >>
> >> I have problems compiling speex 1.2rc1:
> >>
> >>>        /opt/studio/SOS11/SUNWspro/bin/cc -DHAVE_CONFIG_H -I. -I. -
> >>> I.. -I../include -I../include -I.. -I/opt/csw/include  -I/opt/csw/
> >>> include  -xO3 -xarch=v8 -I/opt/csw/include -c skeleton.c
> >>> /bin/bash ../libtool --mode=link /opt/studio/SOS11/SUNWspro/bin/
> >>> cc  -
> >>> xO3 -xarch=v8 -I/opt/csw/include  -xarch=v8 -L/opt/csw/lib -o
> >>> speexenc  speexenc.o wav_io.o skeleton.o ../libspeex/libspeex.la ../
> >>> libspeex/libspeexdsp.la -L/opt/csw/lib -logg      -lm
> >>> mkdir .libs
> >>> /opt/studio/SOS11/SUNWspro/bin/cc -xO3 -xarch=v8 -I/opt/csw/
> >>> include -
> >>> xarch=v8 -o .libs/speexenc speexenc.o wav_io.o skeleton.o  -L/opt/
> >>> csw/lib ../libspeex/.libs/libspeex.so ../libspeex/.libs/
> >>> libspeexdsp.so /opt/csw/lib/libogg.so -lm -R/opt/csw/lib
> >>> Undefined                       first referenced
> >>> symbol                             in file
> >>> getopt_long                         speexenc.o
> >>
> >>
> >> However, it is correctly detected on configure-time that getopt_long
> >> is not
> >> available:
> >>
> >>> checking for Ogg... yes
> >>> checking for sin in -lm... yes
> >>> checking for getopt_long... no
> >>> checking for getopt_long in -lgnugetopt... no
> >>> checking for main in -lwinmm... no
> >>
> >>
> >> Did I hit a bug?
> >>
> >>
> >> Best regards
> >>
> >>   -- Dago
> >> _______________________________________________
> >> Speex-dev mailing list
> >> Speex-dev at xiph.org
> >> http://lists.xiph.org/mailman/listinfo/speex-dev
> >>
> >>
>
>
>





More information about the Speex-dev mailing list