Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
midnight commander fails to compile
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
gabor
Apprentice
Apprentice


Joined: 12 Dec 2002
Posts: 156
Location: Slovakia

PostPosted: Wed Jan 15, 2003 1:34 am    Post subject: midnight commander fails to compile Reply with quote

hi,

trying to emerge mc :

Code:

if gcc -DHAVE_CONFIG_H -I. -I. -I..   -I../intl -I../intl -I..  -I/usr/X11R6/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -march=athlon-tbird -mcpu=athlon-tbird -O3 -pipe -Wall -MT fish.o -MD -MP -MF ".deps/fish.Tpo" \
  -c -o fish.o `test -f 'fish.c' || echo './'`fish.c; \
then mv ".deps/fish.Tpo" ".deps/fish.Po"; \
else rm -f ".deps/fish.Tpo"; exit 1; \
fi
In file included from utilvfs.h:1,
                 from fish.c:41:
../src/global.h:80: redefinition of `struct timeval'
In file included from utilvfs.h:1,
                 from tcputil.c:26:
../src/global.h:80: redefinition of `struct timeval'
In file included from ../src/global.h:138,
                 from utilvfs.h:1,
                 from fish.c:41:
../src/fs.h:73: warning: `struct direct' declared inside parameter list
../src/fs.h:73: warning: its scope is only this definition or declaration, which is probably not what you want
../src/fs.h: In function `compute_namelen':
../src/fs.h:77: dereferencing pointer to incomplete type
../src/fs.h:77: warning: passing arg 1 of `strlen' from incompatible pointer type
In file included from ../src/global.h:142,
                 from utilvfs.h:1,
                 from fish.c:41:
../vfs/vfs.h: At top level:
../vfs/vfs.h:63: warning: `struct utimbuf' declared inside parameter list
../vfs/vfs.h:103: field `dent' has incomplete type
../vfs/vfs.h:104: dereferencing pointer to incomplete type
../vfs/vfs.h:182: parse error before '*' token
../vfs/vfs.h:182: warning: type defaults to `int' in declaration of `mc_opendir'
../vfs/vfs.h:182: warning: data definition has no type or storage class
../vfs/vfs.h:183: parse error before '*' token
../vfs/vfs.h:184: parse error before '*' token
../vfs/vfs.h:185: parse error before '*' token
../vfs/vfs.h:186: parse error before '*' token
../vfs/vfs.h:194: warning: `struct utimbuf' declared inside parameter list
In file included from ../src/global.h:138,
                 from utilvfs.h:1,
                 from tcputil.c:26:
../src/fs.h:73: warning: `struct direct' declared inside parameter list
../src/fs.h:73: warning: its scope is only this definition or declaration, which is probably not what you want
../src/fs.h: In function `compute_namelen':
../src/fs.h:77: dereferencing pointer to incomplete type
../src/fs.h:77: warning: passing arg 1 of `strlen' from incompatible pointer type
In file included from ../src/global.h:142,
                 from utilvfs.h:1,
                 from tcputil.c:26:
../vfs/vfs.h: At top level:
../vfs/vfs.h:63: warning: `struct utimbuf' declared inside parameter list
../vfs/vfs.h:103: field `dent' has incomplete type
../vfs/vfs.h:104: dereferencing pointer to incomplete type
../vfs/vfs.h:182: parse error before '*' token
../vfs/vfs.h:182: warning: type defaults to `int' in declaration of `mc_opendir'
../vfs/vfs.h:182: warning: data definition has no type or storage class
../vfs/vfs.h:183: parse error before '*' token
../vfs/vfs.h:184: parse error before '*' token
../vfs/vfs.h:185: parse error before '*' token
../vfs/vfs.h:186: parse error before '*' token
../vfs/vfs.h:194: warning: `struct utimbuf' declared inside parameter list
fish.c: In function `pipeopen':
fish.c:179: warning: implicit declaration of function `open'
fish.c:179: `O_WRONLY' undeclared (first use in this function)
fish.c:179: (Each undeclared identifier is reported only once
fish.c:179: for each function it appears in.)
fish.c: In function `dir_uptodate':
fish.c:331: warning: implicit declaration of function `gettimeofday'
fish.c: In function `file_store':
fish.c:475: `O_RDONLY' undeclared (first use in this function)
fish.c: In function `fish_fh_open':
fish.c:813: `O_WRONLY' undeclared (first use in this function)
fish.c:813: `O_RDONLY' undeclared (first use in this function)
fish.c:813: `O_RDWR' undeclared (first use in this function)
fish.c:814: `O_APPEND' undeclared (first use in this function)
make[3]: *** [tcputil.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: *** [fish.o] Error 1
make[3]: Leaving directory `/home/portage-tmp/portage/mc-4.6.0_pre2/work/mc-4.6.0-pre2/vfs'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/portage-tmp/portage/mc-4.6.0_pre2/work/mc-4.6.0-pre2/vfs'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/portage-tmp/portage/mc-4.6.0_pre2/work/mc-4.6.0-pre2'
make: *** [all] Error 2


any ideas?
Back to top
View user's profile Send private message
li1_getoo
l33t
l33t


Joined: 20 Oct 2002
Posts: 661
Location: Queens , NY

PostPosted: Wed Jan 15, 2003 3:13 am    Post subject: Reply with quote

i am sorry i dont have the solution for u but
try and `emerge gentoo`
Code:
app-misc/gentoo
      Latest version available: 0.11.34
      Latest version installed: 0.11.34
      Size of downloaded files: 997 kB
      Homepage:    http://www.obsession.se/gentoo/
      Description: A modern GTK+ based filemanager for any WM
Back to top
View user's profile Send private message
tecknojunky
Veteran
Veteran


Joined: 19 Oct 2002
Posts: 1937
Location: Montréal

PostPosted: Sat Feb 22, 2003 4:30 pm    Post subject: Reply with quote

So, what's the solution for that "fishy" problem?
_________________
(7 of 9) Installing star-trek/species-8.4.7.2::talax.
Back to top
View user's profile Send private message
cschwede
n00b
n00b


Joined: 06 Sep 2002
Posts: 19
Location: Hamburg, Germany

PostPosted: Mon Feb 24, 2003 11:19 am    Post subject: Solved! Reply with quote

I just updated to GCC 3.2.2, and the midnight commander emerged without any compile errors...seems to be an gcc 3.2.1 error. So, update to gcc 3.2.2 and have fun :D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum