Thread View: news.software.readers
6 messages
6 total messages
Started by Koukoulas George-TEIA
Tue, 07 May 1996 00:00
help with knews!
Author: Koukoulas George-TEIA
Date: Tue, 07 May 1996 00:00
Date: Tue, 07 May 1996 00:00
24 lines
1025 bytes
1025 bytes
I am trying to compile knews for my solaris 2.5 I am not a C expert and i am getting a Fatal error that look's like this: make all cc -O -xF -DSYSV -DSVR4 -xF -Wa,-cg92 -I/usr/openwin/include -DSVR4 -DSYSV -c newsrc.c cc: language F not recognized newsrc.c: In function `parse_newsrc': newsrc.c:565: storage size of `tv_sec' isn't known *** Error code 1 make: Fatal error: Command failed for target `newsrc.o' I would appreciate any help. TIA GEORGE
Re: help with knews!
Author: Karl-Johan Johnsson
Date: Wed, 08 May 1996 00:00
Date: Wed, 08 May 1996 00:00
25 lines
1363 bytes
1363 bytes
gkouk@adonis.clnsnet.ariadne-t.gr (Koukoulas George-TEIA) writes: [problem building knews on solaris 2.5] >cc -O -xF -DSYSV -DSVR4 -xF -Wa,-cg92 -I/usr/openwin/include -DSVR4 >-DSYSV -c newsrc.c >cc: language F not recognized Try removing the -xF option from the Makefile. >newsrc.c: In function `parse_newsrc': >newsrc.c:565: storage size of `tv_sec' isn't known This looks like yet another bug in the Solaris <sys/stat.h> header file. You should probably ask in a Solaris newsgroup. If you find the problem, let me know so I can add it to my 'hints and hacks' web page. -- Karl-Johan Johnsson, su95-kjo@nada.kth.se http://www.nada.kth.se/~su95-kjo/knews.html ftp://ftp.nada.kth.se/home/su95-kjo/* file:/afs/nada.kth.se/home/su95/su95-kjo/knews/*
Re: help with knews!
Author: Koukoulas George-TEIA
Date: Wed, 08 May 1996 00:00
Date: Wed, 08 May 1996 00:00
47 lines
1804 bytes
1804 bytes
Koukoulas George-TEIA (gkouk@adonis.clnsnet.ariadne-t.gr) wrote: : I am trying to compile knews for my solaris 2.5 : I am not a C expert and i am getting a Fatal error that look's like : this: : make all : cc -O -xF -DSYSV -DSVR4 -xF -Wa,-cg92 -I/usr/openwin/include -DSVR4 : -DSYSV -c newsrc.c : cc: language F not recognized : newsrc.c: In function `parse_newsrc': : newsrc.c:565: storage size of `tv_sec' isn't known : *** Error code 1 : make: Fatal error: Command failed for target `newsrc.o' : : I would appreciate any help. : TIA : GEORGE I found the solution about this problem but now i get a new error message that looks like that: cc -O -xF -DSYSV -DSVR4 -xF -Wa,-cg92 -I../regexp -I/usr/openwin/include -DSVR4 -DSYSV -c xutil.c cc: language F not recognized xutil.c:45: X11/xpm.h: No such file or directory *** Error code 1 make: Fatal error: Command failed for target `xutil.o' Current working directory /disk1/news.test/knews/src *** Error code 1 make: Fatal error: Command failed for target `all' I checked my X11 directory and there is no xpm.h file. what is the solution? Or where can i find this file? TIA GEORGE
Re: help with knews!
Author: Heikki Kantola
Date: Thu, 09 May 1996 00:00
Date: Thu, 09 May 1996 00:00
35 lines
1936 bytes
1936 bytes
In article <4mq08l$14u@news.kth.se>, su95-kjo@green58.nada.kth.se (Karl-Johan Johnsson) writes: >gkouk@adonis.clnsnet.ariadne-t.gr (Koukoulas George-TEIA) writes: > >[problem building knews on solaris 2.5] > >>cc -O -xF -DSYSV -DSVR4 -xF -Wa,-cg92 -I/usr/openwin/include -DSVR4 >>-DSYSV -c newsrc.c >>cc: language F not recognized > >Try removing the -xF option from the Makefile. As far as I know that is just harmless warning... >>newsrc.c: In function `parse_newsrc': >>newsrc.c:565: storage size of `tv_sec' isn't known > >This looks like yet another bug in the Solaris <sys/stat.h> header file. >You should probably ask in a Solaris newsgroup. If you find the problem, >let me know so I can add it to my 'hints and hacks' web page. Or could that just result from not using the "#define tv_sec _tv_sec"- hack? I also suggest to use gcc instead of Solaris's cc if possible as I think I once compiled knews with cc and I remember then knews failed to save .newsrc for some odd reason... -- Heikki "Hezu" Kantola, <Heikki.Kantola@Helsinki.FI> L�hett�m�ll� mainoksia tai muuta asiatonta s�hk�postia yll� olevaan osoitteeseen sitoudut maksamaan oikolukupalvelusta FIM500 alkavalta tunnilta.
Re: help with knews!
Author: Pascal
Date: Mon, 13 May 1996 00:00
Date: Mon, 13 May 1996 00:00
58 lines
2450 bytes
2450 bytes
In article <4msj9u$mc9@oravannahka.helsinki.fi>, hkantola@cc.Helsinki.FI (Heikki Kantola) writes: >>>newsrc.c: In function `parse_newsrc': >>>newsrc.c:565: storage size of `tv_sec' isn't known >> >>This looks like yet another bug in the Solaris <sys/stat.h> header file. >>You should probably ask in a Solaris newsgroup. If you find the problem, >>let me know so I can add it to my 'hints and hacks' web page. > >Or could that just result from not using the "#define tv_sec _tv_sec"- >hack? I also suggest to use gcc instead of Solaris's cc if possible as >I think I once compiled knews with cc and I remember then knews failed >to save .newsrc for some odd reason... > >-- >Heikki "Hezu" Kantola, <Heikki.Kantola@Helsinki.FI> >L�hett�m�ll� mainoksia tai muuta asiatonta s�hk�postia yll� olevaan >osoitteeseen sitoudut maksamaan oikolukupalvelusta FIM500 alkavalta >tunnilta. > Yes, there is a bug in the Solaris 2.4 version of the sys/stat.h. I've had the same problem while compiling knews on my machine. The bug is due to the mispelling of the '_POSIX_C_SOURCE' compilation switch (missing leading underscore) in the definition of the 'st_atime', 'st_mtime' and 'st_ctime' fields of the 'stat' structure type: #if (defined(_POSIX_C_SOURCE) && (POSIX_C_SOURCE <= 2)) || \ ^ **** missing underscore **** defined(_XOPEN_SOURCE) #define st_atime st_atim._tv_sec #define st_mtime st_mtim._tv_sec #define st_ctime st_ctim._tv_sec #else #define st_atime st_atim.tv_sec #define st_mtime st_mtim.tv_sec #define st_ctime st_ctim.tv_sec #endif /* defined(_POSIX_C_SOURCE) && (POSIX_C_SOURCE <= 2).)... */ Personnaly, I've copied a corrected version of that file into the knews source directory and then I modified 'newsrc.c' to include this local 'stat.h' instead of 'sys/stat.h'. Cheers, Pascal.
Re: help with knews!
Author: Karl-Johan Johnsson
Date: Tue, 14 May 1996 00:00
Date: Tue, 14 May 1996 00:00
22 lines
1121 bytes
1121 bytes
ukcgaul@ukpmr.cs.philips.nl (Pascal) writes: [bug in solaris' <sys/stat.h>] >#if (defined(_POSIX_C_SOURCE) && (POSIX_C_SOURCE <= 2)) || \ > ^ > **** missing underscore **** Great, thanks. I guess a simple hack would be to #define POSIX_C_SOURCE 2 I'll add it to my hacks-page. -- Karl-Johan Johnsson, su95-kjo@nada.kth.se http://www.nada.kth.se/~su95-kjo/knews.html ftp://ftp.nada.kth.se/home/su95-kjo/* file:/afs/nada.kth.se/home/su95/su95-kjo/knews/*
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads