Thread

  1. Compilation error on sparc-solaris

    Shiby Thomas <sthomas@cise.ufl.edu> — 1998-02-02T16:52:35Z

    Hi,
    
    compiling on sparc-solaris 2.5 with gcc.
    
    tas not defined error.
    
    gmake[3]: Entering directory `/amd/dolphin/export/database22/data-mining/postgr
    e
    s/pgsql/src/backend/storage/buffer'
    gcc -I../../../include -I../../../backend  -I../../../backend/port/sparc_solari
    s
      -Wall -Wmissing-prototypes -I../..    -c buf_table.c -o buf_table.o
    gcc -I../../../include -I../../../backend  -I../../../backend/port/sparc_solari
    s
      -Wall -Wmissing-prototypes -I../..    -c buf_init.c -o buf_init.o
    ../../../include/storage/s_lock.h:123: warning: `tas' declared `static' but 
    neve
    r defined
    gcc -I../../../include -I../../../backend  -I../../../backend/port/sparc_solari
    s
      -Wall -Wmissing-prototypes -I../..    -c bufmgr.c -o bufmgr.o
    ../../../include/storage/s_lock.h:123: warning: `tas' declared `static' but 
    neve
    r defined
    gcc -I../../../include -I../../../backend  -I../../../backend/port/sparc_solari
    s
      -Wall -Wmissing-prototypes -I../..    -c freelist.c -o freelist.o
    gcc -I../../../include -I../../../backend  -I../../../backend/port/sparc_solari
    s
      -Wall -Wmissing-prototypes -I../..    -c localbuf.c -o localbuf.o
    gcc -I../../../include -I../../../backend  -I../../../backend/port/sparc_solari
    s
      -Wall -Wmissing-prototypes -I../..    -c s_lock.c -o s_lock.o
    ../../../include/storage/s_lock.h:123: warning: `tas' declared `static' but 
    neve
    r defined
    
    later the linking fails:
    gcc -o postgres access/SUBSYS.o bootstrap/SUBSYS.o catalog/SUBSYS.o 
    commands/SUB
    SYS.o executor/SUBSYS.o lib/SUBSYS.o libpq/SUBSYS.o main/SUBSYS.o 
    nodes/SUBSYS.o
     optimizer/SUBSYS.o parser/SUBSYS.o port/SUBSYS.o postmaster/SUBSYS.o 
    regex/SUBS
    YS.o rewrite/SUBSYS.o storage/SUBSYS.o tcop/SUBSYS.o utils/SUBSYS.o 
    ../utils/ver
    sion.o -lgen -lcrypt -lnsl -lsocket -ldl -lm -lreadline -ltermcap -lcurses
    Undefined           first referenced
     symbol                 in file
    tas                                 storage/SUBSYS.o
    
    --shiby