Re: XForms: Compile: flcolor.o(.text+0x1139): undefined reference to `_IO_stderr_'

From: Robert Williams (
Date: Fri Jul 06 2001 - 22:02:29 EDT

  • Next message: Steve Lamont: "Re: XForms: Compile: flcolor.o(.text+0x1139): undefined reference to `_IO_stderr_'"

    # To subscribers of the xforms list from Robert Williams <> :

    Steve Lamont wrote:

    > Hm. FORTRAN.

    Mixed. Most of it is c and c++, but some FORTRAN is called through
    a wrapper. As I recall, if FORTRAN is called, g77 must be the linker,
    but in fact those rules have escaped me. I'll have to do some reading
    unless someone else on the list is old enough - and remembers...
    This was all working and hasn't been changed, so I'm thinking
    that it might be a change in f77.

    > Did you try including libc?

    Yes. No help.

    > g77 -d_lines -g -static matrix_utils.o ...
    > ...
    > -L/usr/X11R6/lib -lX11 -lgcc -lfftw -lm -lc
    > On what flavor system is this being built?

    Linux, i386.
    Here is the whole make output.

    [bob@son xspectra]$ make
    cc -c -g -fpic -O -static -DRPLOT_PS_LIB matrix_utils.c
    cc -c -g -fpic -O -static -DRPLOT_PS_LIB xspectra.c
    cc -c -g -fpic -O -static -DRPLOT_PS_LIB xspectra_cb.c
    cc -c -g -fpic -O -static -DRPLOT_PS_LIB spline3.c
    cc -c -g -fpic -O -static -DRPLOT_PS_LIB xspectra_main.c
    cc -c -g -fpic -O -static -DRPLOT_PS_LIB deriv2.c
    cc -c -g -fpic -O -static -DRPLOT_PS_LIB pgplot_cb.c
    f2c -f factda.f
    cc -g -fpic -O -static factda.c -c
    f2c -f factor.f
    cc -g -fpic -O -static factor.c -c
    f2c -f ldp.f
    cc -g -fpic -O -static ldp.c -c
    f2c -f lssol.f
    cc -g -fpic -O -static lssol.c -c
    f2c -f mfeout.f
    cc -g -fpic -O -static mfeout.c -c
    cc -g -fpic -O -static qrbd.c -c
    f2c -f svaplt.f
    cc -g -fpic -O -static svaplt.c -c
    f2c -f svdrs.f
    cc -g -fpic -O -static svdrs.c -c
    cc -g -fpic -O -static epssnnls_main.c -c
    cc -g -fpic -O -static diff.c -c
    f2c -f epssnnls_sub.f
    cc -g -fpic -O -static epssnnls_sub.c -c
    f2c -f reference_ir_data.f
       BLOCK DATA:
    cc -g -fpic -O -static reference_ir_data.c -c
    f2c -f fit.f
    cc -g -fpic -O -static fit.c -c
    f2c -f g1.f
    cc -g -fpic -O -static g1.c -c
    f2c -f g2.f
    cc -g -fpic -O -static g2.c -c
    f2c -f h12.f
    cc -g -fpic -O -static h12.c -c
    f2c -f nnls.f
    cc -g -fpic -O -static nnls.c -c
    f2c -f reference_raman_data.f
       BLOCK DATA:
    cc -g -fpic -O -static reference_raman_data.c -c
    f2c -f reference_raman_amide3.f
       BLOCK DATA:
    cc -g -fpic -O -static reference_raman_amide3.c -c
    cc -g -fpic -O -static normalize.c -c
    cd ./russ;make
    make[1]: Entering directory `/usr/local/src/xforms/xspectra/russ'
    gcc -c -g vtest.c
    gcc -g -c v1.c
    gcc -g -c v2.c
    gcc -g -c v3.c
    g77 -g -o vtest vtest.o v1.o v2.o v3.o -L/usr/X11R6/lib -lX11 -lgcc -lm
    make[1]: Leaving directory `/usr/local/src/xforms/xspectra/russ'
    rm -f epss_out.dat
    g77 -d_lines -g -static matrix_utils.o xspectra.o xspectra_cb.o spline3.o
    xspectra_main.o deriv2.o pgplot_cb.o factda.o factor.o ldp.o lssol.o mfeout.o
    qrbd.o svaplt.o svdrs.o epssnnls_main.o diff.o epssnnls_sub.o
    reference_ir_data.o fit.o g1.o g2.o h12.o nnls.o reference_raman_data.o
    reference_raman_amide3.o normalize.o -o xspectra -ltooltips -lforms russ/v1.o
    russ/v2.o russ/v3.o -L/usr/X11R6/lib -lX11 -lgcc -lfftw -lm -lc
    /usr/X11R6/lib/libforms.a(flcolor.o): In function `get_shared_cmap':
    flcolor.o(.text+0x1139): undefined reference to `_IO_stderr_'
    flcolor.o(.text+0x119f): undefined reference to `_IO_stderr_'
    flcolor.o(.text+0x1205): undefined reference to `_IO_stderr_'
    flcolor.o(.text+0x126b): undefined reference to `_IO_stderr_'
    flcolor.o(.text+0x12d1): undefined reference to `_IO_stderr_'
    /usr/X11R6/lib/libforms.a(flcolor.o)(.text+0x1337): more undefined references
    to `_IO_stderr_' follow
    collect2: ld returned 1 exit status
    make: [xspectra] Error 1 (ignored)

    To unsubscribe, send the message "unsubscribe" to or see
    XForms Home Page:
    List Archive:

    This archive was generated by hypermail 2b29 : Fri Jul 06 2001 - 21:58:05 EDT