Share

FreeTDS

Tracker: Bugs

5 FreeTDS 0.65dev doesn't compile under Mac OS X - ID: 1772182
Last Update: Comment added ( stronk7 )

Hi,

some minutes ago I've downloaded and ./configure and make the latest
0.65dev available.

And, under MacOS X it fails with this error:

....
sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < .libs/libsybdb.exp >
.libs/libsybdb-symbols.expsym
gcc -dynamiclib ${wl}-flat_namespace ${wl}-undefined ${wl}suppress -o
.libs/libsybdb.5.0.0.dylib .libs/dblib.o .libs/dbutil.o .libs/rpc.o
.libs/bcp.o .libs/xact.o .libs/libsybdb.lax/libtds.a/challenge.o
.libs/libsybdb.lax/libtds.a/config.o .libs/libsybdb.lax/libtds.a/convert.o
.libs/libsybdb.lax/libtds.a/data.o .libs/libsybdb.lax/libtds.a/des.o
.libs/libsybdb.lax/libtds.a/getmac.o .libs/libsybdb.lax/libtds.a/iconv.o
.libs/libsybdb.lax/libtds.a/locale.o .libs/libsybdb.lax/libtds.a/log.o
.libs/libsybdb.lax/libtds.a/login.o .libs/libsybdb.lax/libtds.a/md4.o
.libs/libsybdb.lax/libtds.a/md5.o .libs/libsybdb.lax/libtds.a/mem.o
.libs/libsybdb.lax/libtds.a/net.o .libs/libsybdb.lax/libtds.a/numeric.o
.libs/libsybdb.lax/libtds.a/query.o .libs/libsybdb.lax/libtds.a/read.o
.libs/libsybdb.lax/libtds.a/tds_checks.o
.libs/libsybdb.lax/libtds.a/tdsstring.o
.libs/libsybdb.lax/libtds.a/threadsafe.o
.libs/libsybdb.lax/libtds.a/token.o .libs/libsybdb.lax/libtds.a/util.o
.libs/libsybdb.lax/libtds.a/vstrbuild.o .libs/libsybdb.lax/libtds.a/write.o
.libs/libsybdb.lax/libreplacements.a/gettimeofday.o
.libs/libsybdb.lax/libreplacements.a/iconv.o
/usr/local/lib/libiconv.dylib -install_name
/usr/local/lib/libsybdb.5.dylib -Wl,-compatibility_version -Wl,6
-Wl,-current_version -Wl,6.0
nmedit -s .libs/libsybdb-symbols.expsym .libs/libsybdb.5.0.0.dylib
nmedit: symbols names listed in: .libs/libsybdb-symbols.expsym not in:
/Users/stronk7/Desktop/freetds-0.65.dev/src/dblib/.libs/libsybdb.5.0.0.dyli
b
_dbperror
make[3]: *** [libsybdb.la] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1

I cannot say too much else, just that the 0.64 stable release compiles and
works perfectly.

Ciao :-)


Eloy Lafuente ( stronk7 ) - 2007-08-11 11:13

5

Closed

Fixed

Nobody/Anonymous

None

None

Public


Comments ( 7 )




Date: 2007-11-29 17:42
Sender: stronk7


Hi again,

I've downloaded freetds-0.65.dev.20071129.

Then configure and make and I'm getting:

tsql.c: In function ‘main’:
tsql.c:686: error: ‘rl_inhibit_completion’ undeclared (first use in
this function)
tsql.c:686: error: (Each undeclared identifier is reported only once
tsql.c:686: error: for each function it appears in.)
make[3]: *** [tsql.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1

Ciao :-)


Date: 2007-11-26 15:51
Sender: freddy77Accepting Donations


I found in internet that someone installed a readline library from Fink
repository. However I just realize that fisql use these functions so I bet
MacOsX readline do not exports these symbols. I added a check in configure
to detect this and do not call these functions if not available.
So I closed again the bug report !

freddy77



Date: 2007-11-26 15:29
Sender: freddy77Accepting Donations


Reopened.

I think that this last problem is related on readline library, not to
libtool. Have You installed readline headers?
Perhaps readline under MacOSX require some additional library

freddy77



Date: 2007-11-22 17:57
Sender: stronk7


Hi freddy77,

I've downloaded freetds-0.65.dev.20071122 some minutes ago (it seems to
include the AM_CONDITIONAL(MACOSX, false) change). And it continues not
compiling. Now I'm getting:

gcc -D_THREAD_SAFE -g -O2 -Wdeclaration-after-statement -o .libs/fisql
fisql.o terminal.o edit.o handlers.o interrupt.o
../../dblib/.libs/libsybdb.dylib /usr/local/lib/libiconv.dylib
../../replacements/.libs/libreplacements.a -lncurses -lreadline
/usr/bin/ld: warning empty table of contents:
../../replacements/.libs/libreplacements.a (can't load from it)
/usr/bin/ld: Undefined symbols:
_rl_on_new_line
_rl_reset_line_state
collect2: ld returned 1 exit status
make[3]: *** [fisql] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1

Ciao, Eloy Lafuente (stronk7)


Date: 2007-11-22 08:49
Sender: freddy77Accepting Donations


Finally I decided to brutally remove the problem. Simply I disable symbol
filtering (which seems broken under MacOsX) if MacOsX is detected. A bit
less optimized but should work.

freddy77



Date: 2007-08-25 10:55
Sender: stronk7


Hi, sorry by the delay, I've been out last weeks. Here it's some more
data:

I'm running Mac OS X 10.4.10 (Intel) - Darwin Kernel Version 8.10.1 - with
developer tools installed.

I've tried to compile the 0.65dev (make) by using the "libtool" present in
the 0.64 directory (that compiles properly). No luck. Same error.

Then I've tried to compile the 0.65dev with another libtool that I had in
my php 5.2 source directory. No luck. Different errors but doesn't compile
either.

Then I've tried to compile the 0.65dev with another libtool that I had in
my php 5.1 source directory. No luck. Different errors but doesn't compile
either.

No more libtool scripts found in the system.

When using the own 0.65dev libtool, I get these contents in the requested
files:

.libs/libsybdb.exp (found under ./src/dblib/):

abort_xact
bcp_batch
bcp_bind
bcp_colfmt
bcp_colfmt_ps
bcp_collen
bcp_colptr
bcp_columns
bcp_control
bcp_done
bcp_exec
bcp_getbatchsize
bcp_getl
bcp_init
bcp_moretext
bcp_options
bcp_readfmt
bcp_sendrow
bcp_writefmt
build_xact_string
close_commit
commit_xact
dbadata
dbadlen
dbaltbind
dbaltcolid
dbaltlen
dbaltop
dbalttype
dbaltutype
dbanullbind
dbbind
dbbylist
dbcancel
dbcanquery
dbchange
dbclose
dbclrbuf
dbclropt
dbcmd
dbcmdrow
dbcolinfo
dbcollen
dbcolname
dbcolsource
dbcoltype
dbcoltypeinfo
dbcolutype
dbconvert
dbconvert_ps
dbcount
dbcurcmd
dbcurrow
dbdata
dbdatecmp
dbdatecrack
dbdatlen
dbdead
dberrhandle
dbexit
dbfcmd
dbfirstrow
dbfreebuf
dbgetchar
dbgetmaxprocs
dbgetpacket
dbgetrow
dbgettime
dbgetuserdata
dbhasretstat
dbinit
dbiordesc
dbiowdesc
dbisavail
dbisopt
dblastrow
dblogin
dbloginfree
dbmny4add
dbmny4cmp
dbmny4copy
dbmny4divide
dbmny4minus
dbmny4mul
dbmny4sub
dbmny4zero
dbmnyadd
dbmnycmp
dbmnycopy
dbmnydec
dbmnydivide
dbmnydown
dbmnyinc
dbmnyinit
dbmnymaxneg
dbmnymaxpos
dbmnyminus
dbmnymul
dbmnyndigit
dbmnyscale
dbmnysub
dbmnyzero
dbmonthname
dbmorecmds
dbmoretext
dbmsghandle
dbname
dbnextrow
dbnullbind
dbnumalts
dbnumcols
dbnumcompute
dbnumrets
dbperror
dbpoll
dbprhead
dbprrow
dbprtype
dbreadtext
dbrecftos
dbregexec
dbreginit
dbreglist
dbregparam
dbresults
dbretdata
dbretlen
dbretname
dbretstatus
dbrettype
dbrows
dbrowtype
dbrpcinit
dbrpcparam
dbrpcsend
dbrpwclr
dbrpwset
dbsafestr
dbservcharset
dbsetavail
dbsetdefcharset
dbsetdeflang
dbsetifile
dbsetinterrupt
dbsetlbool
dbsetllong
dbsetlname
dbsetlogintime
dbsetlshort
dbsetlversion
dbsetmaxprocs
dbsetnull
dbsetopt
dbsetrow
dbsettime
dbsetuserdata
dbsetversion
dbspid
dbspr1row
dbspr1rowlen
dbsprhead
dbsprline
dbsqlexec
dbsqlok
dbsqlsend
dbstrbuild
dbstrcpy
dbstrlen
dbtablecolinfo
dbtds
dbtxptr
dbtxtimestamp
dbuse
dbvarylen
dbversion
dbwillconvert
dbwritetext
open_commit
remove_xact
scan_xact
start_xact
stat_xact
tdsdbopen
tdsdump_open

.libs/libsybdb-symbols.expsym (found under ./src/dblib/):

_abort_xact
_bcp_batch
_bcp_bind
_bcp_colfmt
_bcp_colfmt_ps
_bcp_collen
_bcp_colptr
_bcp_columns
_bcp_control
_bcp_done
_bcp_exec
_bcp_getbatchsize
_bcp_getl
_bcp_init
_bcp_moretext
_bcp_options
_bcp_readfmt
_bcp_sendrow
_bcp_writefmt
_build_xact_string
_close_commit
_commit_xact
_dbadata
_dbadlen
_dbaltbind
_dbaltcolid
_dbaltlen
_dbaltop
_dbalttype
_dbaltutype
_dbanullbind
_dbbind
_dbbylist
_dbcancel
_dbcanquery
_dbchange
_dbclose
_dbclrbuf
_dbclropt
_dbcmd
_dbcmdrow
_dbcolinfo
_dbcollen
_dbcolname
_dbcolsource
_dbcoltype
_dbcoltypeinfo
_dbcolutype
_dbconvert
_dbconvert_ps
_dbcount
_dbcurcmd
_dbcurrow
_dbdata
_dbdatecmp
_dbdatecrack
_dbdatlen
_dbdead
_dberrhandle
_dbexit
_dbfcmd
_dbfirstrow
_dbfreebuf
_dbgetchar
_dbgetmaxprocs
_dbgetpacket
_dbgetrow
_dbgettime
_dbgetuserdata
_dbhasretstat
_dbinit
_dbiordesc
_dbiowdesc
_dbisavail
_dbisopt
_dblastrow
_dblogin
_dbloginfree
_dbmny4add
_dbmny4cmp
_dbmny4copy
_dbmny4divide
_dbmny4minus
_dbmny4mul
_dbmny4sub
_dbmny4zero
_dbmnyadd
_dbmnycmp
_dbmnycopy
_dbmnydec
_dbmnydivide
_dbmnydown
_dbmnyinc
_dbmnyinit
_dbmnymaxneg
_dbmnymaxpos
_dbmnyminus
_dbmnymul
_dbmnyndigit
_dbmnyscale
_dbmnysub
_dbmnyzero
_dbmonthname
_dbmorecmds
_dbmoretext
_dbmsghandle
_dbname
_dbnextrow
_dbnullbind
_dbnumalts
_dbnumcols
_dbnumcompute
_dbnumrets
_dbperror
_dbpoll
_dbprhead
_dbprrow
_dbprtype
_dbreadtext
_dbrecftos
_dbregexec
_dbreginit
_dbreglist
_dbregparam
_dbresults
_dbretdata
_dbretlen
_dbretname
_dbretstatus
_dbrettype
_dbrows
_dbrowtype
_dbrpcinit
_dbrpcparam
_dbrpcsend
_dbrpwclr
_dbrpwset
_dbsafestr
_dbservcharset
_dbsetavail
_dbsetdefcharset
_dbsetdeflang
_dbsetifile
_dbsetinterrupt
_dbsetlbool
_dbsetllong
_dbsetlname
_dbsetlogintime
_dbsetlshort
_dbsetlversion
_dbsetmaxprocs
_dbsetnull
_dbsetopt
_dbsetrow
_dbsettime
_dbsetuserdata
_dbsetversion
_dbspid
_dbspr1row
_dbspr1rowlen
_dbsprhead
_dbsprline
_dbsqlexec
_dbsqlok
_dbsqlsend
_dbstrbuild
_dbstrcpy
_dbstrlen
_dbtablecolinfo
_dbtds
_dbtxptr
_dbtxtimestamp
_dbuse
_dbvarylen
_dbversion
_dbwillconvert
_dbwritetext
_open_commit
_remove_xact
_scan_xact
_start_xact
_stat_xact
_tdsdbopen
_tdsdump_open

And that's all. If I can provide more info, just request it. TIA and ciao,
Eloy :-)




Date: 2007-08-16 12:22
Sender: freddy77Accepting Donations


Which Mac OS X version are you using?
This seems a libtool problem :(
Try findind another libtool file in your system and copy it in suorce
directory after configure.
Also, what's .libs/libsybdb.exp and .libs/libsybdb-symbols.expsym contents
?

bye
freddy77



Log in to comment.




Attached File

No Files Currently Attached

Changes ( 9 )

Field Old Value Date By
close_date - 2007-11-26 15:51 freddy77
status_id Open 2007-11-26 15:51 freddy77
resolution_id None 2007-11-26 15:51 freddy77
resolution_id Fixed 2007-11-26 15:29 freddy77
status_id Closed 2007-11-26 15:29 freddy77
close_date 2007-11-22 08:49 2007-11-26 15:29 freddy77
status_id Open 2007-11-22 08:49 freddy77
close_date - 2007-11-22 08:49 freddy77
resolution_id None 2007-11-22 08:49 freddy77