Re: 'make/gmake" error on Solaris 11 SPARC
Frediano Ziglio <[email protected]> Tue, 20 Dec 2016 16:53:25 +0000
| Newsgroups | gmane.comp.db.tds.freetds |
|---|---|
| Message-ID | <CAHt6W4eSzEKWkmUXL6kqTxrjhXQCXYnKWpX1QTmYRK6dNbNdsA@mail.gmail.com> |
2016-12-19 23:46 GMT+00:00 Andrew Mak <[email protected]>: > Dear members of the list, > > I downloaded FreeTDS version 1.00.23 (freetds-patched.tar.gz) from http://www.freetds.org/software.html and compile it on SPARC Solaris 11.3 using gcc 4.8.2 compiler. The "./configure" finished successfully without any error. > However the "make" (or "gmake") generates the following error > ... > ... > ct.c:1111:6: warning: \u2018ret\u2019 may be used uninitialized in this function [-Wmaybe-uninitialized] > if (TDS_SUCCEED(ret)) > ^ > CC cs.lo > CC blk.lo > CC ctutil.lo > CCLD libct.la > ../../libtool[1721]: eval: syntax error at line 1: `|' unexpected The main issue here is the libtool. libtool is a shell script generated by configure adding some variable to a base script. It seems it does not like some shell syntax. If you have another shell installed you can open it and change the first line (I would try bash if it's available). Or if you have another libtool on your system you can try to replace with the one you have. What does "./libtool --version" says? If the above does not work I could try to send a distribution with another libtool version. > gmake[3]: *** [libct.la] Error 3 > gmake[3]: Leaving directory `/export/home/amak/freetds/freetds-1.00.23/src/ctlib' > gmake[2]: *** [all-recursive] Error 1 > gmake[2]: Leaving directory `/export/home/amak/freetds/freetds-1.00.23/src/ctlib' > gmake[1]: *** [all-recursive] Error 1 > gmake[1]: Leaving directory `/export/home/amak/freetds/freetds-1.00.23/src' > gmake: *** [all-recursive] Error 1 > root@wl-remote-deploy:/export/home/amak/freetds/freetds-1.00.23#<mailto:root@wl-remote-deploy:/export/home/amak/freetds/freetds-1.00.23#> > > > When I search for the file "libct.la", it does not exist anywhere. > > root@wl-remote-deploy:/export/home/amak/freetds/freetds-1.00.23# cd .. > root@wl-remote-deploy:/export/home/amak/freetds# find . -name libct.la > root@wl-remote-deploy:/export/home/amak/freetds# > > Any suggestions? > > Regards > Andrew Mak > Frediano