This is the mail archive of the cygwin-apps@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [ITP] sqlite-3.0.7


Jari wrote:

"Gerrit P. Haase" <gp@familiehaase.de> writes:
| Jari Aalto+list.cygwin-apps wrote:
| | > Good news. After busy end of the year I found time to make the
| > packages. I'm preparing separate sqlite3 package soon. Jari
| > ======================
| > 2.x
| > ======================
| > wget --non-verbose \
| > http://tierra.dyndns.org:81/cygwin/sqlite/sqlite-2.8.12-1.tar.bz2 \
| > http://tierra.dyndns.org:81/cygwin/sqlite/sqlite-2.8.12-1-src.tar.bz2 \
| > http://tierra.dyndns.org:81/cygwin/sqlite/setup.hint OR uese this:
| > mkdir sqlite ; cd sqlite
| > wget -q -O - http://tierra.dyndns.org:81/cygwin/sqlite/get.sh | sh
| | There was some discussion on this list about getting shared sqlite
| libraries, IIRC I posted a patch which enables shared libraries,
| however there are no DLLs included in the tarball:


Found your and Reini's message

  http://sources.redhat.com/ml/cygwin-apps/2004-10/msg00281.html
  http://sources.redhat.com/ml/cygwin-apps/2004-10/msg00134.html

With instructions, I added -no-undefined next to -version options, but
then it generates errors. Does anyone know how would I address this?


/usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/../../../libcygwin.a(libcmain.o)(.text+0x7c): undefined reference to `_WinMain@16'

If I leave out -no-undefined, the compilation succeeds, but then
no dll's appear.

With the -no-undefined an update of ltmain.sh is needed (at least).



Gerrit, I also looked again your path and saw this. Could you comment this portion a little:

  +++ sqlite-3.0.6/src/os.h2004-09-13 23:37:24.000000000 +0200
  @@ -30,7 +30,7 @@
   #      define OS_MAC 1
   #      define OS_WIN 0
   #      define OS_UNIX 0
  -#    elif defined(_WIN32) || defined(WIN32) || defined(__CYGWIN__) || defined(__MINGW32__) || defined(__BORLANDC__)
  +#    elif defined(_WIN32) || defined(WIN32) || defined(__MINGW32__) || defined(__BORLANDC__)
   #      define OS_MAC 0
   #      define OS_WIN 1
   #      define OS_UNIX 0

It works ok using the default interface with Cygwin, there is no need to define OS_WIN.


....
generating symbol list for `libsqlite.la'
dlltool --export-all --exclude-symbols DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12 --output-def .libs/cygsqlite-0.dll-def attach.lo auth.lo btree.lo build.lo copy.lo date.lo delete.lo expr.lo func.lo hash.lo insert.lo main.lo opcodes.lo os.lo pager.lo parse.lo pragma.lo printf.lo random.lo select.lo table.lo tokenize.lo update.lo util.lo vacuum.lo vdbe.lo vdbeaux.lo where.lo trigger.lo btree_rb.lo sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < .libs/cygsqlite-0.dll-def > .libs/libsqlite.exp
if test "x`sed 1q .libs/libsqlite.exp`" = xEXPORTS; then cp .libs/libsqlite.exp .libs/cygsqlite-0.dll-def; else echo EXPORTS > .libs/cygsqlite-0.dll-def; _lt_hint=1; cat .libs/libsqlite.exp | while read symbol; do set dummy $symbol; case $# in 2) echo " $2 @ $_lt_hint ; " >> .libs/cygsqlite-0.dll-def;; 4) echo " $2 $3 $4 ; " >> .libs/cygsqlite-0.dll-def; _lt_hint=`expr $_lt_hint - 1`;; *) echo " $2 @ $_lt_hint $3 ; " >> .libs/cygsqlite-0.dll-def;; esac; _lt_hint=`expr 1 + $_lt_hint`; done; fi
gcc -Wl,--base-file,.libs/cygsqlite-0.dll-base -Wl,-e,__cygwin_dll_entry@12 -o .libs/cygsqlite-0.dll attach.lo auth.lo btree.lo build.lo copy.lo date.lo delete.lo expr.lo func.lo hash.lo insert.lo main.lo opcodes.lo os.lo pager.lo parse.lo pragma.lo printf.lo random.lo select.lo table.lo tokenize.lo update.lo util.lo vacuum.lo vdbe.lo vdbeaux.lo where.lo trigger.lo btree_rb.lo /usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/../../../libcygwin.a(libcmain.o)(.text+0x7c): undefined reference to `_WinMain@16'
collect2: ld returned 1 exit status
make: *** [libsqlite.la] Error 1

This is because the included ltmain.sh is old. Try updating the libtool files.


Gerrit -- =^..^=


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]