[freetds] Unable to install to AIX 5.2

Evan Rempel erempel at uvic.ca
Tue Jun 10 15:02:37 EDT 2008


It looks like the "check" process requires libraries that the actual code (freetds) does not require, although
I was under the impression that it did require them.

Anyhow, building and installing libiconv should resolve this.

http://www.gnu.org/software/libiconv/

and you may have to reconfigure and build freetds because the configure process may need to "know" about
the iconv libraries.

Evan.

Martin Mann wrote:
> Thank you very much for such a quick response... I tried as you suggested and the make ran perfectly :-)
> 
> BUT (isn't there always one ;p)
> 
> I decided to run a make check to play safe and got the following;
> 
> ----------Start Quote ----------------------------
> 
> S_SCUDA_905:/usr/src/freetds-0.82> make check
> Making check in include
> Target "check" is up to date.
> Making check in src
> Making check in replacements
> Target "check" is up to date.
> Making check in tds
>         make  check-recursive
> Making check in unittests
>         make  t0001 t0002 t0003  t0004 t0005 t0006 t0007  t0008 dynamic1 convert  dataread utf8_1 utf8_2  utf8_3 numeric iconv_fread
>         if gcc -DHAVE_CONFIG_H -I. -I. -I../../../include  -I../../../include -I./.. -I../  -D_FREETDS_LIBRARY_SOURCE -D_REENTRANT -D_THREAD_SAFE -DDE
> BUG=1 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-long-long -D_THREAD_SAFE  -g -O2 -MT t0001.o -MD -MP -MF ".deps/t0001.Tpo" -c -o t0001.o t00
> 01.c;  then mv -f ".deps/t0001.Tpo" ".deps/t0001.Po"; else rm -f ".deps/t0001.Tpo"; exit 1; fi
>         if gcc -DHAVE_CONFIG_H -I. -I. -I../../../include  -I../../../include -I./.. -I../  -D_FREETDS_LIBRARY_SOURCE -D_REENTRANT -D_THREAD_SAFE -DDE
> BUG=1 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-long-long -D_THREAD_SAFE  -g -O2 -MT common.o -MD -MP -MF ".deps/common.Tpo" -c -o common.o 
> common.c;  then mv -f ".deps/common.Tpo" ".deps/common.Po"; else rm -f ".deps/common.Tpo"; exit 1; fi
>         /bin/sh ../../../libtool --tag=CC --mode=link gcc -D_THREAD_SAFE  -g -O2  -no-install -Wl,-brtl -o t0001  t0001.o common.o  ../libtds.la ../..
> /replacements/libreplacements.la 
> mkdir .libs
> gcc -D_THREAD_SAFE -g -O2 -Wl,-brtl -o t0001 t0001.o common.o  ../.libs/libtds.a ../../replacements/.libs/libreplacements.a -lpthreads
> ld: 0711-317 ERROR: Undefined symbol: .iconv_open
> ld: 0711-317 ERROR: Undefined symbol: .iconv_close
> ld: 0711-317 ERROR: Undefined symbol: .iconv
> ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
> collect2: ld returned 8 exit status
> make: 1254-004 The error code from the last command is 1.
> 
> 
> Stop.
> make: 1254-004 The error code from the last command is 2.
> 
> 
> Stop.
> make: 1254-004 The error code from the last command is 1.
> 
> 
> Stop.
> make: 1254-004 The error code from the last command is 2.
> 
> 
> Stop.
> make: 1254-004 The error code from the last command is 1.
> 
> 
> Stop.
> make: 1254-004 The error code from the last command is 1.
> 
> 
> Stop.
> --------End Quote -----------------------------------------------------------------------
> 
> Is this a problem or a symptom of the original issue?
> 
> Martin
> 
> 
> -----Original Message-----
> From: freetds-bounces at lists.ibiblio.org [mailto:freetds-bounces at lists.ibiblio.org] On Behalf Of Evan Rempel
> Sent: 10 June 2008 18:49
> To: FreeTDS Development Group
> Subject: Re: [freetds] Unable to install to AIX 5.2
> 
> Try running your configure with
> 
> env LDFLAGS='-Wl,-brtl' ./configure ....
> 
> Then "making" again.
> 
> Forthe curious, it looks like you are using the IBM linker that needs different flags for
> shared libraries.
> 
> 
> Martin Mann wrote:
>> Hiya...
>>
>> I have been asked to install freetds-0.82 on our AIX 5.2 development server in order to access MS SQL servers using Perl and have run into problems.
>>
>> The configure runs fine but the make falls over with the following;
>>
>> ---------Start Quote ----------------------------------------------------------------
>> Target "all" is up to date.
>>         if gcc -DHAVE_CONFIG_H -I. -I. -I../../include  -I../../include   -D_FREETDS_LIBRARY_SOURCE -D_REENTRANT -D_THREAD_SAFE -DDEBUG=1 -Wall -Wstri
>> ct-prototypes -Wmissing-prototypes -Wno-long-long -D_THREAD_SAFE  -g -O2 -MT tsql.o -MD -MP -MF ".deps/tsql.Tpo" -c -o tsql.o tsql.c;  then mv -f ".de
>> ps/tsql.Tpo" ".deps/tsql.Po"; else rm -f ".deps/tsql.Tpo"; exit 1; fi
>>         /bin/sh ../../libtool --tag=CC --mode=link gcc -D_THREAD_SAFE  -g -O2    -o tsql  tsql.o ../tds/libtds.la  ../replacements/libreplacements.la 
>>   -liconv   -lpthreads 
>> mkdir .libs
>> gcc -D_THREAD_SAFE -g -O2 -o tsql tsql.o  ../tds/.libs/libtds.a ../replacements/.libs/libreplacements.a -liconv -lpthreads
>>         if gcc -DHAVE_CONFIG_H -I. -I. -I../../include  -I../../include   -D_FREETDS_LIBRARY_SOURCE -D_REENTRANT -D_THREAD_SAFE -DDEBUG=1 -Wall -Wstri
>> ct-prototypes -Wmissing-prototypes -Wno-long-long -D_THREAD_SAFE  -g -O2 -MT freebcp.o -MD -MP -MF ".deps/freebcp.Tpo" -c -o freebcp.o freebcp.c;  the
>> n mv -f ".deps/freebcp.Tpo" ".deps/freebcp.Po"; else rm -f ".deps/freebcp.Tpo"; exit 1; fi
>>         /bin/sh ../../libtool --tag=CC --mode=link gcc -D_THREAD_SAFE  -g -O2    -o freebcp  freebcp.o ../dblib/libsybdb.la  -lpthreads 
>> gcc -D_THREAD_SAFE -g -O2 -o .libs/freebcp freebcp.o  -L../dblib/.libs -lsybdb -liconv -lpthreads -Wl,-blibpath:/usr/local/lib:/usr/local/lib/gcc-lib/
>> powerpc-ibm-aix5.2.0.0/3.3.2:/usr/local/lib/gcc-lib/powerpc-ibm-aix5.2.0.0/3.3.2/../../..:/usr/lib:/lib 
>> ld: 0711-317 ERROR: Undefined symbol: .tdsdump_open
>> ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
>> collect2: ld returned 8 exit status
>> make: 1254-004 The error code from the last command is 1.
>>
>>
>> Stop.
>> make: 1254-004 The error code from the last command is 1.
>> ---------End Quote ------------------------------------------------------
>>
>> Any advice would be appreciated. I have tried surfing for some answers and found a few things but they seem to be for earlier versions so the fixes may be close but not what I need. 
>>
>> I've seen the comments in the documentation regarding AIX;
>>
>> ---------Start Quote ----------------------------------------------------------------------
>> AIX®
>> AIX® can induce linker indigestion. libtool doesn't always understand that a .a file can be a shared library. One solution is to build only static libraries with the --disable-shared configure option. 
>>
>> Another problem seems to be that the linker isn't asked to pull in all the requisite libraries.
>> ---------End Quote ---------------------------------------------------------------------- 
>>
>> Sorry if this is a dumb question but is turning on the --disable-shared a big deal for out developers?
>>
>> This suggested reading the following which seemed close but I cant find the line to modify so I'm guessing it has changed since version 0.63...
>>
>> ---------Start Quote ----------------------------------------------------------------------
>>
>> [freetds] MSSQL on AIX 5.1
>> Frédéric Le Guillou frederic.leguillou at cegedim.fr 
>> Mon Aug 9 07:15:19 EDT 2004 
>>
>> Previous message: [freetds] FreeTDS 0.63 and OpenOffice 
>> Next message: [freetds] Inserting empty strings into MS SQL Server 
>> Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
>>
>> Hi All,
>>
>> I was reading the forum about MS SQL and AIX 5.1.
>> I was trying to compile FreeTDS on AIX 5.2, and the same error occurs.
>>
>> I fix the problem to add "../tds/libtds_objects.la -liconv
>> ../replacements/libreplacements.*" at the end of the line of " bin/sh
>> ../../libtool --mode=link gcc  -g -O2", which preceding the ld error.
>>
>> In fact, the problem occurs dunring the link of apps, and pool.
>>
>> In fact, all the symbols needed (tds_connect, ....) are declared in
>> ../tds/libtds_objects.la.
>>
>> I hope it will be useful for your problem on AIX 5.1
>>
>> Thanks,
>> Frédéric
>>
>> ---------End Quote ----------------------------------------------------------------------
>>
>> Martin Mann
>>
>>
>> This e-mail and its attachments are confidential and intended solely for the addressee. If you are not the intended addressee, you must not disclose, forward, copy or take any action in respect of this email or any attachments. If you have received this e-mail in error, please delete it and notify the sender. While OTM have taken every reasonable precaution to minimise this risk, we cannot accept liability for any damage, which you may sustain as a result of software viruses. You should carry out your own virus checks before opening the attachment. 
>> Opus Trust Marketing Limited, 133 Scudamore Road, Braunstone Frith Industrial Estate, Leicester, LE3 1UQ
>> Registered in England, Number 3829642
>>
>> _______________________________________________
>> FreeTDS mailing list
>> FreeTDS at lists.ibiblio.org
>> http://lists.ibiblio.org/mailman/listinfo/freetds
>>
> 
> 


-- 
Evan Rempel                erempel at uvic.ca
Senior Programmer Analyst        250.721.7691
Computing Services
University of Victoria



More information about the FreeTDS mailing list