#167 Cygwin: libtool: link: warning: undefined symbols not allowd

v1.0_(example)
closed-wont-fix
5
2014-02-21
2012-03-14
Anonymous
No

When building under Cygwin, receive many of these warnings. This is the first warning. I copied the command into another shell, added --debug option to libtool, and here is the log file attached.

This appears to be the first appearance of the warning.
-----------------------------------

../libtool --mode=link gcc -msse2 -o libgretl-1.0.la adf_kpss.lo bhhh_max.lo bootstrap.lo boxplots.lo calendar.lo compare.lo compat.lo csvdata.lo dataio.lo dataset.lo dbread.lo dbwrite.lo describe.lo discrete.lo estimate.lo flow_control.lo forecast.lo geneval.lo genfuncs.lo genlex.lo genmain.lo gensyntax.lo gmm.lo graphing.lo gretl_bfgs.lo gretl_bundle.lo gretl_commands.lo gretl_data_io.lo gretl_errors.lo gretl_fft.lo gretl_foreign.lo gretl_func.lo gretl_intl.lo gretl_list.lo gretl_matrix.lo gretl_model.lo gretl_panel.lo gretl_paths.lo gretl_prn.lo gretl_restrict.lo gretl_scalar.lo gretl_string_table.lo gretl_untar.lo gretl_utils.lo gretl_www.lo gretl_xml.lo interact.lo kalman.lo libglue.lo libset.lo matrix_extra.lo missing.lo modelprint.lo monte_carlo.lo nls.lo nonparam.lo objstack.lo options.lo plotspec.lo plugins.lo printout.lo printscan.lo pvalues.lo qr_estimate.lo random.lo strutils.lo subsample.lo system.lo texprint.lo transforms.lo tsls.lo usermat.lo var.lo varprint.lo vartest.lo irfboot.lo bdtr.lo btdtr.lo chbevl.lo chdtr.lo const.lo expx2.lo fdtr.lo gamma.lo gdtr.lo igam.lo igami.lo incbet.lo incbi.lo mtherr.lo nbdtr.lo ndtr.lo ndtri.lo pdtr.lo polevl.lo polrt.lo stdtr.lo unity.lo airy.lo hyp2f1.lo hyperg.lo i0.lo i1.lo iv.lo j0.lo j1.lo jn.lo jv.lo k0.lo k1.lo kn.lo psi.lo struve.lo yn.lo kv.lo chkder.lo dpmpar.lo enorm.lo fdjac2.lo lmder.lo lmder1.lo lmdif.lo lmpar.lo qrfac.lo qrsolv.lo dlog10.lo lbfgsb.lo \ -rpath /usr/local/lib -L/usr/lib -llapack -lblas -lgfortran -XCClinker,-lgfortran -lm -ldl -lz -lxml2 -lz -liconv -lm -lglib-2.0 -lintl -liconv -lgmp -lfftw3 -lm -version-info 2:0:0
libtool: link: warning: undefined symbols not allowed in i686-pc-cygwin shared libraries
-------------------------------------------

I added --debug to produce the log file.

Discussion

  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous - 2012-03-14
     
    Last edit: Anonymous 2014-05-09
  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous - 2012-03-14

    Debug + verbose, --debug -v

     
  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous - 2012-03-15

    I solved the problem. I found this
    http://cygwin.com/ml/cygwin/2010-06/msg00747.html

    And exported that option via
    export LDFLAGS=-no-undefined

    This is something that should be set in the Makefiles via configure.

    It also solves this warning
    --------------

    *** Warning: This system can not link to static lib archive _________
    *** I have the capability to make that library automatically link in when
    *** you link to this library. But I can only do this if you have a
    *** shared version of the library, which you do not appear to have.
    libtool: link: warning: undefined symbols not allowed in i686-pc-cygwin shared libraries
    ------------------

     
  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous - 2012-03-15

    Sorry, I spoke too soon.
    export LDFLAGS
    does not work. I had to manually edit the Makefile and add -no-undefined to the LDFLAGS variable:

    LDFLAGS = -no-undefined

    And it doesn't fix the "*** Warning: This system can not link to static lib archive" either. It only fixes the "undefined symbols not allowed in i686-pc-cygwin shared libraries" warning.

     
    Last edit: Anonymous 2016-02-03
  • Allin Cottrell

    Allin Cottrell - 2012-03-16

    Gretl relies on GNU libtool to take care of the details of building
    libraries on different platforms. In CVS I've now updated from
    libtool 2.4 to 2.4.2. I don't know if this will help on cygwin but it
    might. Anyway, this cygwin problem is probably not one that we
    will try to solve in the gretl Makefiles -- it's up to libtool.

     
  • Allin Cottrell

    Allin Cottrell - 2012-03-16
    • assigned_to: nobody --> allin
    • status: open --> open-wont-fix
     
  • Sven S.

    Sven S. - 2014-02-21

    [This action is part of a little round of maintenance, sorry for the delay.]

    If the problem is in an external library I tend to view this as not being a gretl bug, although I agree this classification is debatable to some extent. (For example if we didn't get graphs in gretl due to some gnuplot problems we would probably want a workaround within gretl.) But for the sake of cleaning up I'm changing this from "open-wontfix" to "close-wontfix". By the way, please post a comment if the issue is actually fixed in the meantime.

    thanks,
    sven

     
  • Sven S.

    Sven S. - 2014-02-21
    • status: open-wont-fix --> closed-wont-fix
    • Group: --> v1.0_(example)
     

Log in to post a comment.