Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2002
    Location
    Switzerland
    Posts
    524

    Unanswered: Compilation problem with orafce and aix

    I'm working on an IBM Aix 5.3 TL 11

    I already successfully compiled Postgresql 8.4.3 on this machine.

    I'm now trying to compile orafce.

    I downloaded, uncompressed and "untared" the file into the contrib source directory .

    Code:
    cd /home/postgres/postgresql-8.4.3/contrib/orafce
    gmake install
    ... and I have now this error :

    Code:
    yacc -d  -p cube_yy sqlparse.y
    
     yacc: 1285-742 The escape is not valid or name is not a reserved word. Line 54
    make: *** [sqlparse.c] Error 1
    What can I do now ??

    Regards
    Fadace
    Last edited by fadace; 04-13-10 at 11:01.
    F. Celaia
    DBA Sybase/DB2/Oracle/MS-SQL

  2. #2
    Join Date
    Nov 2002
    Location
    Switzerland
    Posts
    524
    I installed Bison, but it's not really better

    [code]I installed Bison, but it's not really better

    Code:
    [postgres@test01] > gmake clean
    rm -f orafunc.so   liborafunc.a liborafunc.exp
    rm -f orafunc.sql
    rm -f convert.o file.o datefce.o magic.o others.o plvstr.o plvdate.o shmmc.o plvsubst.o utility.o plvlex.o alert.o pipe.o sqlparse.o putline.o assert.o plunit.o
    rm -f sqlparse.c sqlparse.h sqlscan.c y.tab.c y.tab.h
    rm -rf results tmp_check log
    rm -f regression.diffs regression.out regress.out run_check.out
    [postgres@test01] > gmake install
    sed 's,MODULE_PATHNAME,$libdir/orafunc,g' orafunc.sql.in >orafunc.sql
    gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv  -I. -I../../src/include   -c -o convert.o convert.c
    gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv  -I. -I../../src/include   -c -o file.o file.c
    gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv  -I. -I../../src/include   -c -o datefce.o datefce.c
    gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv  -I. -I../../src/include   -c -o magic.o magic.c
    gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv  -I. -I../../src/include   -c -o others.o others.c
    others.c: In function 'appendDatum':
    others.c:412: warning: pointer targets in initialization differ in signedness
    others.c: In function 'orafce_dump':
    others.c:479: warning: format '%d' expects type 'int', but argument 4 has type 'Size'
    gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv  -I. -I../../src/include   -c -o plvstr.o plvstr.c
    gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv  -I. -I../../src/include   -c -o plvdate.o plvdate.c
    gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv  -I. -I../../src/include   -c -o shmmc.o shmmc.c
    gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv  -I. -I../../src/include   -c -o plvsubst.o plvsubst.c
    gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv  -I. -I../../src/include   -c -o utility.o utility.c
    bison -d  -o sqlparse.c sqlparse.y
    gmake: *** [sqlparse.c] Broken pipe
    Last edited by fadace; 04-13-10 at 11:00.
    F. Celaia
    DBA Sybase/DB2/Oracle/MS-SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •