Skip to Content.
Sympa Menu

freetds - RE: [freetds] freetds installation failed on Solaris 9

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Magician7 usa" <magician7usa AT hotmail.com>
  • To: freetds AT lists.ibiblio.org
  • Subject: RE: [freetds] freetds installation failed on Solaris 9
  • Date: Wed, 02 Feb 2005 01:30:39 +0000

That error occurs after you do a "make clean". Unfortunately, it cleans (removes) too much.

You have two choices:

1) Re-untar all the freetds stuff again, recreating your directory structure and start from scratch.

2) Find the line: "SUBDIRS = include src doc samples win32" in the main make file and get rid of the "doc". That will allow make to finish, BUT the documentation directory won't be setup correctly. You'll have to put the doc HTM files in place by hand.

There might be other options--I just don't know what they are. Maybe someone else can give you a better solution.

And here's a helpful hint. When you get it all straightened out, do the first part of #2 (i.e. Remove the "doc" from the SUBDIRS line). That way if you have to do another "make clean", it won't mess up the doc stuff again, preventing you from getting the "sed command garbled" message.

Good luck.


From: jun_chen AT bankone.com
Reply-To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
To: freetds AT lists.ibiblio.org
Subject: [freetds] freetds installation failed on Solaris 9
Date: Tue, 1 Feb 2005 14:47:12 -0500

Thanks a lot, freddy77.

After I added /usr/ccs/bin to the environment variable PATH, the error is
gone. ar is in /usr/ccs/bin.
But I got the following new errors for 0.62.4 when I tried to make:

mkdir doc/freetds-0.62.4/userguide
touch doc/freetds-0.62.4/userguide/t.htm
rm -f doc/freetds-0.62.4/userguide/*
make dblib.api.sgml
grep '^dblib' ./api_status.txt > .dblib.api
test -s .dblib.api
mv .dblib.api dblib.api
echo '<table id="dblib.api"><title>db-lib API Implementation
Summary</title>' > .dblib.api.head
echo '<tgroup cols=5><thead><row> \
<entry>Category</> \
<entry>Microsoft name</> \
<entry>Sybase name</> \
<entry>Status</> \
<entry>Comments</> \
</row></thead> \
<tbody>' \
> .tableheader
sed -e' s!^dblib[ ]!<row><entry>!; \
s![ ][ ]*!</> <entry>!g; \
s!$!</></row>!; \
' dblib.api \
> .dblib.api.body
sed: command garbled: s!^dblib[ ]!<row><entry>!; \
s![ ][ ]*!</> <entry>!g; \
s!$!</></row>!; \

*** Error code 2
make: Fatal error: Command failed for target `dblib.api.sgml'
Current working directory /data1/freetds-0.62.4/doc
*** Error code 1
make: Fatal error: Command failed for target
`doc/freetds-0.62.4/userguide/index.htm'
Current working directory /data1/freetds-0.62.4/doc
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'

Any more ideas?

Jun

>
> Alex,
>
> Here are the lines above the 'Error 1' message:
>
> gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include
> -D_FREETDS_LIBRARY_SOURCE -DUNIXODBC -D_REENTRANT
> -D_THREAD_SAFE -DDEBUG=1
> -Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-long-long
> -g -O2 -MT
> vasprintf.lo -MD -MP -MF .deps/vasprintf.Tpo -c vasprintf.c
> -fPIC -DPIC
> -o .libs/vasprintf.o
> gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include
> -D_FREETDS_LIBRARY_SOURCE -DUNIXODBC -D_REENTRANT
> -D_THREAD_SAFE -DDEBUG=1
> -Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-long-long
> -g -O2 -MT
> vasprintf.lo -MD -MP -MF .deps/vasprintf.Tpo -c vasprintf.c
> -o vasprintf.o
> >/dev/null 2>&1
> if /bin/bash ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I.
> -I../../include -I../../include -D_FREETDS_LIBRARY_SOURCE -DUNIXODBC
> -D_REENTRANT -D_THREAD_SAFE -DDEBUG=1 -Wall -Wstrict-prototypes
> -Wmissing-prototypes -Wno-long-long -g -O2 -MT
> readpassphrase.lo -MD -MP
> -MF ".deps/readpassphrase.Tpo" \
> -c -o readpassphrase.lo `test -f 'readpassphrase.c' || echo
> './'`readpassphrase.c; \
> then mv ".deps/readpassphrase.Tpo" ".deps/readpassphrase.Plo"; \
> else rm -f ".deps/readpassphrase.Tpo"; exit 1; \
> fi
> gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include
> -D_FREETDS_LIBRARY_SOURCE -DUNIXODBC -D_REENTRANT
> -D_THREAD_SAFE -DDEBUG=1
> -Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-long-long
> -g -O2 -MT
> readpassphrase.lo -MD -MP -MF .deps/readpassphrase.Tpo -c
> readpassphrase.c
> -fPIC -DPIC -o .libs/readpassphrase.o
> readpassphrase.c: In function `readpassphrase':
> readpassphrase.c:169: warning: subscript has type `char'

Mmm.... this can be a problem...

> gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include
> -D_FREETDS_LIBRARY_SOURCE -DUNIXODBC -D_REENTRANT
> -D_THREAD_SAFE -DDEBUG=1
> -Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-long-long
> -g -O2 -MT
> readpassphrase.lo -MD -MP -MF .deps/readpassphrase.Tpo -c
> readpassphrase.c
> -o readpassphrase.o >/dev/null 2>&1
> /bin/bash ../../libtool --mode=link gcc -g -O2
> -L/usr/local/unixODBC/lib
> -o libreplacements.la iconv.lo asprintf.lo vasprintf.lo
> readpassphrase.lo -lc
> false cru .libs/libreplacements.a .libs/iconv.o .libs/asprintf.o
> .libs/vasprintf.o .libs/readpassphrase.o
>

?? what ?? false ?? Perhaps libtool was not able to find ar for some
reasons ??

>
> Thanks.
>
> Jun
>

freddy77

This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you.

_______________________________________________
FreeTDS mailing list
FreeTDS AT lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/freetds






Archive powered by MHonArc 2.6.24.

Top of Page