/ Check-in [c41d1d46]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Adjust the symbols.sh script for STAT3. Add the symbols-mingw.sh script for testing on windows with MinGW.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: c41d1d4652b8c7608322e9360c30f06965fd0942
User & Date: drh 2011-10-13 14:18:51
Context
2011-10-13
14:41
Make sure the page_count and quick_check pragmas work properly even when their names are capitalized. Fixes a problem reported on the mailing list. check-in: 150592b4 user: drh tags: trunk
14:18
Adjust the symbols.sh script for STAT3. Add the symbols-mingw.sh script for testing on windows with MinGW. check-in: c41d1d46 user: drh tags: trunk
14:05
Make sure all non-API functions in os_win.c have file scope. Ticket [35c54c874987] check-in: 17e4fde5 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Added tool/symbols-mingw.sh.

            1  +#!/bin/sh
            2  +#
            3  +# Run this script in a directory that contains a valid SQLite makefile in
            4  +# order to verify that unintentionally exported symbols.
            5  +#
            6  +make sqlite3.c
            7  +
            8  +echo '****** Exported symbols from a build including RTREE && FTS4 ******'
            9  +gcc -c -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_RTREE \
           10  +  -DSQLITE_ENABLE_MEMORY_MANAGEMENT -DSQLITE_ENABLE_STAT3 \
           11  +  -DSQLITE_ENABLE_MEMSYS5 -DSQLITE_ENABLE_UNLOCK_NOTIFY \
           12  +  -DSQLITE_ENABLE_COLUMN_METADATA -DSQLITE_ENABLE_ATOMIC_WRITE \
           13  +  sqlite3.c
           14  +nm sqlite3.o | grep " [TD] "
           15  +
           16  +echo '****** Surplus symbols from a build including RTREE & FTS4 ******'
           17  +nm sqlite3.o | grep " [TD] " | grep -v " .*sqlite3_"
           18  +
           19  +echo '****** Dependencies of the core. No extensions. No OS interface *******'
           20  +gcc -c -DSQLITE_ENABLE_MEMORY_MANAGEMENT -DSQLITE_ENABLE_STAT3 \
           21  +  -DSQLITE_ENABLE_MEMSYS5 -DSQLITE_ENABLE_UNLOCK_NOTIFY \
           22  +  -DSQLITE_ENABLE_COLUMN_METADATA -DSQLITE_ENABLE_ATOMIC_WRITE \
           23  +  -DSQLITE_OS_OTHER -DSQLITE_THREADSAFE=0 \
           24  +  sqlite3.c
           25  +nm sqlite3.o | grep " U "
           26  +
           27  +echo '****** Dependencies including RTREE & FTS4 *******'
           28  +gcc -c -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_RTREE \
           29  +  -DSQLITE_ENABLE_MEMORY_MANAGEMENT -DSQLITE_ENABLE_STAT3 \
           30  +  -DSQLITE_ENABLE_MEMSYS5 -DSQLITE_ENABLE_UNLOCK_NOTIFY \
           31  +  -DSQLITE_ENABLE_COLUMN_METADATA -DSQLITE_ENABLE_ATOMIC_WRITE \
           32  +  sqlite3.c
           33  +nm sqlite3.o | grep " U "

Changes to tool/symbols.sh.

     3      3   # Run this script in a directory that contains a valid SQLite makefile in
     4      4   # order to verify that unintentionally exported symbols.
     5      5   #
     6      6   make sqlite3.c
     7      7   
     8      8   echo '****** Exported symbols from a build including RTREE, FTS4 & ICU ******'
     9      9   gcc -c -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_RTREE \
    10         -  -DSQLITE_ENABLE_MEMORY_MANAGEMENT -DSQLITE_ENABLE_STAT2 \
           10  +  -DSQLITE_ENABLE_MEMORY_MANAGEMENT -DSQLITE_ENABLE_STAT3 \
    11     11     -DSQLITE_ENABLE_MEMSYS5 -DSQLITE_ENABLE_UNLOCK_NOTIFY \
    12     12     -DSQLITE_ENABLE_COLUMN_METADATA -DSQLITE_ENABLE_ATOMIC_WRITE \
    13     13     -DSQLITE_ENABLE_ICU \
    14     14     sqlite3.c
    15     15   nm sqlite3.o | grep ' [TD] ' | sort -k 3
    16     16   
    17     17   echo '****** Surplus symbols from a build including RTREE, FTS4 & ICU ******'
    18     18   nm sqlite3.o | grep ' [TD] ' | grep -v ' .*sqlite3_'
    19     19   
    20     20   echo '****** Dependencies of the core. No extensions. No OS interface *******'
    21         -gcc -c -DSQLITE_ENABLE_MEMORY_MANAGEMENT -DSQLITE_ENABLE_STAT2 \
           21  +gcc -c -DSQLITE_ENABLE_MEMORY_MANAGEMENT -DSQLITE_ENABLE_STAT3 \
    22     22     -DSQLITE_ENABLE_MEMSYS5 -DSQLITE_ENABLE_UNLOCK_NOTIFY \
    23     23     -DSQLITE_ENABLE_COLUMN_METADATA -DSQLITE_ENABLE_ATOMIC_WRITE \
    24     24     -DSQLITE_OS_OTHER -DSQLITE_THREADSAFE=0 \
    25     25     sqlite3.c
    26     26   nm sqlite3.o | grep ' U ' | sort -k 3
    27     27   
    28     28   echo '****** Dependencies including RTREE & FTS4 *******'
    29     29   gcc -c -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_RTREE \
    30         -  -DSQLITE_ENABLE_MEMORY_MANAGEMENT -DSQLITE_ENABLE_STAT2 \
           30  +  -DSQLITE_ENABLE_MEMORY_MANAGEMENT -DSQLITE_ENABLE_STAT3 \
    31     31     -DSQLITE_ENABLE_MEMSYS5 -DSQLITE_ENABLE_UNLOCK_NOTIFY \
    32     32     -DSQLITE_ENABLE_COLUMN_METADATA -DSQLITE_ENABLE_ATOMIC_WRITE \
    33     33     sqlite3.c
    34     34   nm sqlite3.o | grep ' U ' | sort -k 3