Pat,
Take a look at what happens when the controller starts with no
arguments:
--------------------------------------------------------------------------
root@calea:~#controller
** ERROR **: Failed to open controller.ini
** ERROR **: No such file or directory
aborting...
Aborted
--------------------------------------------------------------------------
Man pages would be very helpful...
Do you have any examples of the required ini files?
M.A.
Pat Pannuto wrote:
No, the arguments aren't the same -- maybe I should go back and change
that, or if you have suggestions for more intuitive arguments I'm open,
although if they're going to change it would probably have to be
now... This was a complete re-write, almost nothing (only one
function: "get_calea_time") from the original was taken along.
The tap and listener programs are designed to just run as background
processes on a machine with no arguments (all configuration being done
in *.ini). The controller program is interactive. Simply run it (with
no arguments), and type 'help' for help. When you start a tap (ie
start 4 [args]), all of the arguments are passed verbatim to the tap,
so for help on tap arguments, you would type start 4 --help. This is
perhaps a little confusing, but it's on the agenda for future versions.
In short, the controller functions as a remote shell to the tap, such
that typing start 4 [args] in the controller is essentially the same as
running ./tap --standalone [args] locally on the machine running the
tap.
Pat
Mario Antonio Garcia wrote:
489CA051.4010100@webjogger.net" type="cite">
Pat,
489CA051.4010100@webjogger.net" type="cite">Version
0.1.2 builds fine now in Debian Etch.
Do you know if Command Arguments are the same as they were in OpenCalea?
I did not see any Man pages or Help in the command line.
Regards,
Mario Antonio
Pat Pannuto wrote:
Version 0.1.2 is on the website. Let me know if
you
still have problems.
Pat
On Fri, Aug 8, 2008 at 10:38 AM, Mario
Antonio Garcia <dino@webjogger.net>
wrote:
Pat,
Thanks for your prompt reply.
I am glad to see the OPenCalea project alive once more....
Regards,
Mario Antonio
Pat Pannuto wrote:
I've found the problem and I'm working on it -
I
missed the fact that that function requires glib 2.14; I should have a
patch up before lunch.
Thanks for your help and good luck!
Pat
On Fri, Aug 8, 2008 at 10:18 AM,
Mario
Antonio Garcia <dino@webjogger.net>
wrote:
Manish,
I am trying to compile calea-lite-0.1.1 , but so far no success.
Using Debian Etch (2.6.24-etchnhalf.1-686)
I am getting this error (See the entire output attached to this email):
gcc -ggdb -Wall -g -O2 -o tap -pthread -lgthread-2.0 -lrt -lglib-2.0
-lpcap tap-tap.o -lglib-2.0
tap-tap.o: In function `start_tap':
/home/anandam/calea-lite-0.1.1/src/tap.c:406: undefined reference to
`g_option_context_get_help'
collect2: ld returned 1 exit status
make[1]: *** [tap] Error 1
I am not sure if it has to do with the following Debian note:
"GLib2.0 for Debian
-------------------
Static libraries issue:
Right now glib2.0 provides some static libraries. If your application
uses g_module* functions or other libraries uses g_module* functions and
your application link it, Please don't statically link this libraries.
You may get some strange proglem between static-linked application and
dynamic-loaded modules, g_module* provides the feature for dynamically
loading some modules."
Any suggestions?
Regards,
Mario Antonio
root@calea:/home/anandam/calea-lite-0.1.1#make
Making all in src
make[1]: Entering directory `/home/anandam/calea-lite-0.1.1/src'
if gcc -DPACKAGE_NAME=\"calea-lite\" -DPACKAGE_TARNAME=\"calea-lite\"
-DPACKAGE_VERSION=\"0.1.1\" -DPACKAGE_STRING=\"calea-lite\ 0.1.1\"
-DPACKAGE_BUGREPORT=\"patrick.pannuto@gmail.com\"
-DPACKAGE=\"calea-lite\" -DVERSION=\"0.1.1\" -DSTDC_HEADERS=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
-DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1
-DHAVE_ARPA_INET_H=1 -DHAVE_NETINET_IN_H=1 -DHAVE_STDLIB_H=1
-DHAVE_STRING_H=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_UNISTD_H=1
-DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DRETSIGTYPE=void -DHAVE_STRFTIME=1
-DHAVE_INET_NTOA=1 -DHAVE_MEMSET=1 -DHAVE_SOCKET=1 -I. -I.
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -ggdb -Wall -g
-O2 -MT controller-controller.o -MD -MP -MF
".deps/controller-controller.Tpo" -c -o controller-controller.o `test
-f 'controller.c' || echo './'`controller.c; \
then mv -f ".deps/controller-controller.Tpo"
".deps/controller-controller.Po"; else rm -f
".deps/controller-controller.Tpo"; exit 1; fi
controller.c: In function âcontrolâ:
controller.c:931: warning: control reaches end of non-void function
controller.c: In function âinit_clientâ:
controller.c:687: warning: control reaches end of non-void function
controller.c: In function âclose_sockâ:
controller.c:626: warning: control reaches end of non-void function
controller.c: In function âbackground_update_clientâ:
controller.c:299: warning: control reaches end of non-void function
gcc -ggdb -Wall -g -O2 -o controller -pthread -lgthread-2.0 -lrt
-lglib-2.0 controller-controller.o -lglib-2.0
if gcc -DPACKAGE_NAME=\"calea-lite\" -DPACKAGE_TARNAME=\"calea-lite\"
-DPACKAGE_VERSION=\"0.1.1\" -DPACKAGE_STRING=\"calea-lite\ 0.1.1\"
-DPACKAGE_BUGREPORT=\"patrick.pannuto@gmail.com\"
-DPACKAGE=\"calea-lite\" -DVERSION=\"0.1.1\" -DSTDC_HEADERS=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
-DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1
-DHAVE_ARPA_INET_H=1 -DHAVE_NETINET_IN_H=1 -DHAVE_STDLIB_H=1
-DHAVE_STRING_H=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_UNISTD_H=1
-DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DRETSIGTYPE=void -DHAVE_STRFTIME=1
-DHAVE_INET_NTOA=1 -DHAVE_MEMSET=1 -DHAVE_SOCKET=1 -I. -I.
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -ggdb -Wall -g
-O2 -MT tap-tap.o -MD -MP -MF ".deps/tap-tap.Tpo" -c -o tap-tap.o `test
-f 'tap.c' || echo './'`tap.c; \
then mv -f ".deps/tap-tap.Tpo" ".deps/tap-tap.Po"; else rm -f
".deps/tap-tap.Tpo"; exit 1; fi
tap.c: In function âstart_tapâ:
tap.c:406: warning: implicit declaration of function
âg_option_context_get_helpâ
tap.c:406: warning: assignment makes pointer from integer without a cast
tap.c:465: warning: suggest parentheses around assignment used as truth
value
tap.c:471: warning: suggest parentheses around assignment used as truth
value
tap.c: In function âupdate_checkâ:
tap.c:279: warning: control reaches end of non-void function
tap.c: In function âcontrolâ:
tap.c:259: warning: control reaches end of non-void function
gcc -ggdb -Wall -g -O2 -o tap -pthread -lgthread-2.0 -lrt -lglib-2.0
-lpcap tap-tap.o -lglib-2.0
tap-tap.o: In function `start_tap':
/home/anandam/calea-lite-0.1.1/src/tap.c:406: undefined reference to
`g_option_context_get_help'
collect2: ld returned 1 exit status
make[1]: *** [tap] Error 1
make[1]: Leaving directory `/home/anandam/calea-lite-0.1.1/src'
make: *** [all-recursive] Error 1
--
Once the game is over, the King and the Pawn both go back into the same
box
~ Italian Proverb
--
Once the game is over, the King and the Pawn both go back into the same
box
~ Italian Proverb
|