Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#19 Unable to build with the flag -DDEBUG

v0.2.10
closed-fixed
Compilation (6)
5
2006-04-20
2005-12-13
Fredrik Pettai
No

# sh Build , fails with this output:

gcc -M -I. -I../../libar -I../../libmarid
-I../../sendmail -I../../include
-I/opt/csw/bdb4/include -I/opt/csw/include
-DSOLARIS=20900 -DSM_CONF_LDAP_MEMFREE -DDEBUG
-DUSE_ARLIB -g -D_REENTRANT sid-filter.c rfc2822.c
util.c >> Makefile
sid-filter.c:84: smi-arena.h: No such file or directory
sid-filter.c:85: smi-string.h: No such file or directory
*** Error code 1
make: Fatal error: Command failed for target `depend'
Current working directory
/var/tmp/sid-milter-0.2.10/obj.SunOS.5.9.sun4/sid-filter
Making in
/var/tmp/sid-milter-0.2.10/obj.SunOS.5.9.sun4/sid-filter
make: Warning: Too many rules defined for target sysexits.h
Current working directory
/var/tmp/sid-milter-0.2.10/obj.SunOS.5.9.sun4/sid-filter
gcc -O -I. -I../../libar -I../../libmarid
-I../../sendmail -I../../include
-I/opt/csw/bdb4/include -I/opt/csw/include
-DSOLARIS=20900 -DSM_CONF_LDAP_MEMFREE -DDEBUG
-DUSE_ARLIB -g -D_REENTRANT -DXP_MT -c sid-filter.c
sid-filter.c:84: smi-arena.h: No such file or directory
sid-filter.c:85: smi-string.h: No such file or directory
*** Error code 1
make: Fatal error: Command failed for target `sid-filter.o'
Current working directory
/var/tmp/sid-milter-0.2.10/obj.SunOS.5.9.sun4/sid-filter
*** Error code 1
make: Fatal error: Command failed for target `all'

Discussion

  • Fredrik Pettai
    Fredrik Pettai
    2005-12-13

    Logged In: YES
    user_id=370342

    The header files smi-arena.h & smi-string.h are not found
    since they don't exist on my systems. From which package do
    they come from?

     
  • Fredrik Pettai
    Fredrik Pettai
    2006-01-03

    • summary: Unable to build with the flag -DDEBUG on Solaris 9 --> Unable to build with the flag -DDEBUG
     
  • Fredrik Pettai
    Fredrik Pettai
    2006-01-03

    Logged In: YES
    user_id=370342

    Apparently, it doesn't work on Linux as well.
    Output from "sh Build -c"

    cc -O2 -I. -I../../libar -I../../libmarid -I../../sendmail
    -I../../include -DDEBUG -DUSE_ARLIB -D_REENTRANT
    -DXP_MT -c -o sid-filter.o sid-filter.c
    sid-filter.c:84:24: smi-arena.h: No such file or directory
    sid-filter.c:85:25: smi-string.h: No such file or directory
    sid-filter.c: In function `sid_debug':
    sid-filter.c:2183: error: `Arena' undeclared (first use in
    this function)
    sid-filter.c:2183: error: (Each undeclared identifier is
    reported only once
    sid-filter.c:2183: error: for each function it appears in.)
    sid-filter.c:2183: error: syntax error before "arena"
    sid-filter.c:2184: error: `String' undeclared (first use in
    this function)
    sid-filter.c:2191: error: `arena' undeclared (first use in
    this function)
    sid-filter.c:2192: error: `tmphdr' undeclared (first use in
    this function)
    sid-filter.c:2219: warning: assignment makes pointer from
    integer without a cast
    sid-filter.c:2227: error: dereferencing pointer to
    incomplete type
    sid-filter.c:2285: warning: passing arg 1 of `__rawmemchr'
    makes pointer from integer without a cast
    sid-filter.c:2285: warning: passing arg 1 of
    `__builtin_strchr' makes pointer from integer without a cast
    sid-filter.c:2289: warning: passing arg 2 of `mlfi_header'
    makes pointer from integer without a cast
    make[1]: *** [sid-filter.o] Error 1
    make[1]: Leaving directory
    `/var/tmp/sid-milter-0.2.10/obj.Linux.2.4.23.i686/sid-filter'
    make: *** [all] Error 2

     
  • Logged In: YES
    user_id=1048957

    They're part of some libraries we have that aren't part of
    the open source distribution. So, -DDEBUG works for me but
    not for you.

    The dependency is easily replaced by generic code, or
    possibly even stuff from inside libsm, so I'll clean that
    out for the next release.

     
    • labels: --> Compilation
    • milestone: --> v0.2.10
    • assigned_to: nobody --> sm-msk
     
  • Logged In: YES
    user_id=1048957

    Fixed for 0.2.11.

     
    • status: open --> closed-fixed
     
  • Logged In: YES
    user_id=1048957

    v0.2.11 released.