errors compiling on Mac OS 10.9.1

Chas DiFatta chas at difatta.org
Sun Jan 5 18:31:52 EST 2014


>   % fgrep -i curses ./include/*.h

as requested...

# fgrep -i curses ./include/*.h
./include/argus_config.h:/* Using curses */
./include/argus_config.h:/* #undef ARGUS_CURSES */
./include/argus_config.h:/* Define to 1 if you have the <curses.h> header file. */
./include/argus_config.h:/* #undef HAVE_CURSES_H */
./include/argus_config.h:/* Define to 1 if you have the <ncurses.h> header file. */
./include/argus_config.h:#define HAVE_NCURSES_H 1
./include/argus_filter.h:int ArgusCurses = 0;
./include/argus_filter.h:extern int ArgusCurses;
./include/argus_parser.h:   int RaCursesMode;

looking for another method to identify version number...

# ls /usr/lib/*curses*
/usr/lib/libcurses.dylib	/usr/lib/libncurses.5.4.dylib	/usr/lib/libncurses.5.dylib	/usr/lib/libncurses.dylib

from config.log…

configure:9129: checking for initscr in -lncurses
configure:9154: gcc -o conftest -g -O2  -I/opt/local/include  -L/opt/local/lib conftest.c -lncurses   >&5
ld: warning: ignoring file /opt/local/lib/libncurses.dylib, file was built for i386 which is not the architecture being linked (x86_64): /opt/local/lib/libncurses.dylib
Undefined symbols for architecture x86_64:
  "_initscr", referenced from:
      _main in conftest-cnNgZM.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
configure:9154: $? = 1
configure: failed program was:
| /* confdefs.h */

hope this helps.  drop a line if you want anything else.  note the following output from the racurses make

—————< output from make racurses errors >------------------------
gcc -O3 -I. -I../../include -I../../common -I/opt/local/include  -DHAVE_CONFIG_H -c ./racurses.c
In file included from ./racurses.c:38:
./racurses.h:135:56: error: unknown type name 'WINDOW'
int RaCursesSetWindowFocus(struct ArgusParserStruct *, WINDOW *);
                                                       ^
./racurses.h:136:1: error: unknown type name 'WINDOW'
WINDOW *RaCursesGetWindowFocus(struct ArgusParserStruct *);
^
./racurses.h:165:4: error: unknown type name 'WINDOW'
   WINDOW *window;
   ^
./racurses.h:199:4: error: unknown type name 'attr_t'
   attr_t attr;
   ^
./racurses.h:229:58: error: unknown type name 'WINDOW'
int ArgusGetDisplayLineColor(struct ArgusParserStruct *, WINDOW *, struct ArgusRecordStruct *, struct ArgusAttributeStruct *);
                                                         ^
./racurses.h:230:142: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
  ...(struct ArgusParserStruct *, struct ArgusRecordStruct *, struct ArgusAttributeStruct *, short, attr_t);
                                                                                                    ^~~~~~
./racurses.h:401:1: error: unknown type name 'WINDOW'
WINDOW *RaCommandWindow      = NULL;
^
./racurses.h:418:1: error: unknown type name 'WINDOW'
WINDOW *RaHeaderWindow     = NULL;
^
./racurses.h:419:1: error: unknown type name 'WINDOW'
WINDOW *RaDisplayWindow    = NULL;
^
./racurses.h:420:1: error: unknown type name 'WINDOW'
WINDOW *RaStatusWindow     = NULL;
^
./racurses.h:421:1: error: unknown type name 'WINDOW'
WINDOW *RaDebugWindow      = NULL;
^
./racurses.h:422:1: error: unknown type name 'WINDOW'
WINDOW *RaCursorWindow     = NULL;
^
./racurses.h:423:1: error: unknown type name 'WINDOW'
WINDOW *RaAvailableWindow  = NULL;
^
./racurses.h:424:1: error: unknown type name 'WINDOW'
WINDOW *RaFailedWindow     = NULL;
^
./racurses.h:425:1: error: unknown type name 'WINDOW'
WINDOW *RaRecordWindow     = NULL;
^
./racurses.h:426:1: error: unknown type name 'WINDOW'
WINDOW *RaFocusWindow      = NULL;
^
./racurses.c:42:122: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
int ArgusColorAvailability(struct ArgusParserStruct *, struct ArgusRecordStruct *, struct ArgusAttributeStruct *, short, attr_t);
                                                                                                                         ^~~~~~
./racurses.c:43:119: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
int ArgusColorAddresses(struct ArgusParserStruct *, struct ArgusRecordStruct *, struct ArgusAttributeStruct *, short, attr_t);
                                                                                                                      ^~~~~~
./racurses.c:44:120: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
int ArgusColorFlowFields(struct ArgusParserStruct *, struct ArgusRecordStruct *, struct ArgusAttributeStruct *, short, attr_t);
                                                                                                                       ^~~~~~
./racurses.c:45:121: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
int ArgusColorGeoLocation(struct ArgusParserStruct *, struct ArgusRecordStruct *, struct ArgusAttributeStruct *, short, attr_t);
                                                                                                                        ^~~~~~
./racurses.c:46:58: error: unknown type name 'WINDOW'
void ArgusInitializeColorMap(struct ArgusParserStruct *, WINDOW *);
                                                         ^
./racurses.c:94:58: error: unknown type name 'WINDOW'
RaCursesSetWindowFocus(struct ArgusParserStruct *parser, WINDOW *win)
                                                         ^
./racurses.c:114:1: error: unknown type name 'WINDOW'
WINDOW *
^
./racurses.c:159:27: error: unknown type name 'WINDOW'
void RaUpdateHeaderWindow(WINDOW *);
                          ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
5 warnings and 20 errors generated.
make[2]: *** [racurses.o] Error 1



On Jan 5, 2014, at 3:14 PM, Carter Bullard <carter at qosient.com> wrote:

> So Chas,
> What version are you using?
> You're error relates to ncurses.  Does your ./configure find ncurses ???
> In your ./include/argus_config.h, what are the values for the various curses variables ??
> 
>   % fgrep -i curses ./include/*.h
> 
> Carter
> 
> 
> 
> On Jan 5, 2014, at 5:55 PM, Chas DiFatta <chas at difatta.org> wrote:
> 
>> Hey Russell,
>> 
>> I verified this as well as another error, unknown type name “WINDOW”. Both errors happened only when compiling racurses as all the other clients appeared to compile fine.
>> 
>> 	…cd
>> 
>> On Jan 5, 2014, at 2:13 PM, Russell Fulton <r.fulton at auckland.ac.nz> wrote:
>> 
>>> Trying again —this does not appear to have got to the list...
>>> 
>>> 
>>> Hi,
>>> 
>>> I have just installed argus on my MacBook pro and when I compile the clients I get missing reference to “_xdtoi” when it tries to build the executable.  Googling the error shows a bunch of hits on the mac port list about the problem but all the post I looked at were people reporting problems.
>>> 
>>> I did not get any hits on the argus archive.
>>> 
>>> Russell
>> 
>> 
> 




More information about the argus mailing list