[freetds] Problems building freetds on RHEL4

ZIGLIO, Frediano, VF-IT Frediano.Ziglio at vodafone.com
Mon May 16 10:22:18 EDT 2005


> 
> I can't seem to compile freetds-0.63 on a RHEL 4 box. I have included
> the error below.
> 
> Could there be a problem with my build environment ? 
> 
> creating libtds_objects.la
> (cd .libs && rm -f libtds_objects.la && ln -s ../libtds_objects.la
> libtds_objects.la)
> /bin/sh ../../libtool --mode=link gcc  -g -O2   -o libtds.la -rpath
> /usr/local/lib -version-info 4:0:0 -export-symbols-regex
> '^(tds_|tdsdump_|tds5_|tds7_).*'  libtds_objects.la
> ../replacements/libreplacements.la   -static-libgcc
> generating symbol list for `libtds.la'
> /usr/bin/nm -B   ./.libs/libtds_objects.a
> ../replacements/.libs/libreplacements.a | sed -n -e 's/^.*[  
> ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[         ][
> ]*\(\)\([_A-Za-z][_A-Za-z0-9]*\)$/  /p' | /bin/sed 's/.* //' | sort |
> uniq > .libs/libtds.exp
> grep -E -e "^(tds_|tdsdump_|tds5_|tds7_).*" ".libs/libtds.exp" >
> ".libs/libtds.expT"
> mv -f ".libs/libtds.expT" ".libs/libtds.exp"
> echo -e "{ global:" > .libs/libtds.ver
>  cat .libs/libtds.exp | sed -e "s/\(.*\)/;/" >> .libs/libtds.ver
>  echo -e "local: *; };" >> .libs/libtds.ver
>  gcc -shared  -Wl,--whole-archive ./.libs/libtds_objects.a
> ../replacements/.libs/libreplacements.a -Wl,--no-whole-archive  
> -Wl,-soname -Wl,libtds.so.4 -Wl,-version-script -Wl,.libs/libtds.ver
> -o .libs/libtds.so.4.0.0
> /usr/bin/ld:.libs/libtds.ver:2: syntax error in VERSION script
> collect2: ld returned 1 exit status
> 
> 

A cat src/tds.libs/libtds.ver would help.

>From my pc
$ head src/tds/.libs/libtds.ver
{ global:
tds5_send_optioncmd;
tds7_crypt_pass;
tds7_get_instance_port;
tds7_send_auth;
tds7_srv_charset_changed;
tds_add_row_column_size;
tds_alloc_bcp_column_data;
tds_alloc_client_sqlstate;
tds_alloc_compute_results;

$ head src/tds/.libs/libtds.exp
tds5_send_optioncmd
tds7_crypt_pass
tds7_get_instance_port
tds7_send_auth
tds7_srv_charset_changed
tds_add_row_column_size
tds_alloc_bcp_column_data
tds_alloc_client_sqlstate
tds_alloc_compute_results
tds_alloc_compute_row

freddy77



More information about the FreeTDS mailing list