Compiling example code from OPSEC SDK

From: Jon (jonnyspacecowboy_at_gmail.com)
Date: 08/25/04


Date: 25 Aug 2004 13:36:24 -0700

Hello all,

I'm having quite the time trying to compile the example code
(specifically the lea_filter.c code) in the OPSEC SDK.

I found the makefile posted on their website, but even with linking to
all the libraries they specify, I still get errors like the following
when trying to compile:

gcc -L/home/telesto/pkg_rel/lib/release.static -L -olea_filter.o
-lopsec -lsicauth -lsic -lcp_policy -lskey -lndb -lckpssl -lcpcert
-lcpcryptutil -lcpprng -lcpbcrypt -lcpca -lasn1cpp -lcpopenssl
-lAppUtils -lEventUtils -lEncode -lComUtils -lResolve -lDataStruct
-lOS -lcpprod50 lea_filter.c
/tmp/ccy980tY.o(.text+0x39): In function `main':
: undefined reference to `opsec_init'
/tmp/ccy980tY.o(.text+0xb5): In function `main':
: undefined reference to `LEA_CLIENT'
/tmp/ccy980tY.o(.text+0xbd): In function `main':
: undefined reference to `opsec_init_entity'
/tmp/ccy980tY.o(.text+0x100): In function `main':
: undefined reference to `LEA_SERVER'
/tmp/ccy980tY.o(.text+0x108): In function `main':
: undefined reference to `opsec_init_entity'
/tmp/ccy980tY.o(.text+0x16c): In function `main':
: undefined reference to `lea_new_suspended_session'
/tmp/ccy980tY.o(.text+0x1d0): In function `main':
: undefined reference to `lea_filter_rulebase_register'
/tmp/ccy980tY.o(.text+0x1de): In function `main':
: undefined reference to `opsec_mainloop'
/tmp/ccy980tY.o(.text+0x213): In function `CleanUpEnvironment':
: undefined reference to `opsec_destroy_entity'
/tmp/ccy980tY.o(.text+0x227): In function `CleanUpEnvironment':
: undefined reference to `opsec_destroy_entity'
/tmp/ccy980tY.o(.text+0x23b): In function `CleanUpEnvironment':
: undefined reference to `opsec_env_destroy'

Any suggestions?



Relevant Pages

  • Re: Prolog & C linking Problem
    ... >> I am trying to compile Prolog and C using plld. ... PL_initialise_ is an undefined reference ...
    (comp.lang.prolog)
  • Re: error message while compiling engdemo.c
    ... As I have never done it before, I try to compile examples given on the matlab documentation: ... engdemo.c:: undefined reference to `engPutVariable' ... engdemo.c:: undefined reference to `engEvalString' ... For Fortran, follow similar steps as above but select the Fortran compiler and use the appropriate Fortran engmatopts.bat file. ...
    (comp.soft-sys.matlab)
  • gprof
    ... I'm trying to compile my C application with gprof but it is not working. ... This is a multithreaded program that use mysql and openssl libraries. ... /lib/libcrypto.so.4: undefined reference to `sysconf' ...
    (freebsd-questions)
  • Re: gprof
    ... I'm trying to compile my C application with gprof but it is not working.. ... This is a multithreaded program that use mysql and openssl libraries. ... /lib/libcrypto.so.4: undefined reference to `sysconf' ...
    (freebsd-questions)
  • How can I compile PF without option PFIL_HOOKS defined in the kernel conf file?
    ... kernel conf file to try to get PF compile into the kernel, ... PF failed to compile; ... : undefined reference to `pfil_head_get' ... Will this fix the problem? ...
    (comp.unix.bsd.openbsd.misc)