#78 Compile bug on Fedora Core 1

open
nobody
None
5
2004-01-05
2004-01-05
No

Hi
I'm unable to compile LUFS on FC1
compiler stops like this
g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../
-I/usr/src/lufs-0.9.7/include -O2 -Wall
-DSSHPROG=\"/usr/bin/ssh\" -O2 -Wall
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -MT sshfs.lo
-MD -MP -MF .deps/sshfs.Tpo -c sshfs.cpp -fPIC -DPIC
-o .libs/sshfs.o
g++: Internal error: Segmentation fault (program cc1plus)

Discussion

  • Nobody/Anonymous

    Logged In: NO

    Upgrading to gcc-2.2.3-6 helps.

    <e-ploko@mail.ru>

     
  • Wayne Pearson

    Wayne Pearson - 2004-03-01

    Logged In: YES
    user_id=146134

    Additionally,

    In the SSHFS::do_open() function, line 348 (in the 0.9.7
    code), you can change

    handles.push_back((struct atbl){string(file), handle, time
    (NULL),
    mode});

    to

    struct atbl a={string(file), handle, time(NULL), mode};
    handles.push_back(a);

    to get around the issue.

    --
    Wayne

     
  • Nobody/Anonymous

    Logged In: NO

    I'm having the same issue compiling on fedora core 1

    here is the version of g++ i am using

    g++ (GCC) 3.3.2 20031022 (Red Hat Linux 3.3.2-1)
    Copyright (C) 2003 Free Software Foundation, Inc.
    This is free software; see the source for copying
    conditions. There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A
    PARTICULAR PURPOSE.

    Wayne i'll try that work around and see if it works

    -Paul

     
  • Eddy Macnaghten

    Eddy Macnaghten - 2004-05-30

    Logged In: YES
    user_id=1053148

    In filesystems/sshfs/sshfs.cpp
    Line 348

    Change

    handles.push_back((struct atbl){string(file), handle,
    time(NULL), mode});

    to

    struct atbl aa = {string(file), handle, time(NULL), mode} ;

    handles.push_back(aa);

    (I will get around to submitting a patch sometime :-))

     

Log in to post a comment.

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

Sign up for the SourceForge newsletter:





No, thanks