#34 trouble compiling rel-1-6 Solaris

closed-fixed
Gap4 (50)
7
2005-05-20
2005-05-11
bsenf
No

hello,

i have many trouble running newest programs (rel-1-6..)
(copy_db,gap4)
- can't create new database (gap4)
- can't copy any database. (copy-db)

The ALL failed with same error:

SYSMSG : Error 0 [0]
ERROR : read error [14]
COMMENT: cannot open database
FILE : g-files.c:287
Couldn't create database

I thing, this is related to the new code for files
bigger 2GB.

OS: Solaris 2.9 64bit
CC: a) /opt/SUNWspro/bin/CC
b) gcc V3.4.2

---------
After this all tests, I have download only
release 1.5.4 via "cvs co -r rel-1-5-3" and
all works at first try !

Discussion

  • James Bonfield

    James Bonfield - 2005-05-19
    • priority: 5 --> 7
     
  • James Bonfield

    James Bonfield - 2005-05-19
    • assigned_to: nobody --> jkbonfield
     
  • James Bonfield

    James Bonfield - 2005-05-20

    Logged In: YES
    user_id=154581

    I've spotted the error. Indeed you are correct in that it
    relates to the 64-bit file support. I managed to use the
    wrong data type for big-endian machines. I've updated CVS
    for src/g/g-io.c (it may take a while to filter to the
    public cvs server).

    Alternatively it's just a one line change - changing
    AuxIndex rec32 to AuxIndex32 rec32 in the read_aux_index32_
    function.

    *** g-io.c.~1.2.~ 2004-11-26 09:45:00.000000000 +0000
    --- g-io.c 2005-05-20 12:17:16.000000000 +0100
    ***************
    *** 358,364 ****
    int read_aux_index32_(int fd, void *recv, int num)
    {
    AuxIndex *idx = recv;
    ! AuxIndex rec32;
    int i;

    for (i = 0; i < num; i++) {
    --- 358,364 ----
    int read_aux_index32_(int fd, void *recv, int num)
    {
    AuxIndex *idx = recv;
    ! AuxIndex32 rec32;
    int i;

    for (i = 0; i < num; i++) {

    James

     
  • James Bonfield

    James Bonfield - 2005-05-20
    • status: open --> closed-fixed
     
  • bsenf

    bsenf - 2005-05-20

    Logged In: YES
    user_id=1045015

    Verified and compiled again and it works:
    - gap4-gui -> new,
    - copy_db
    Thanks.

    Bernd.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks