Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#23 Compile problem (using ARLIB) on Solaris9, gcc2.95.3

v0.2.6
closed
Compilation (9)
3
2005-02-28
2005-02-28
Fredrik Pettai
No

Output from gcc:

gcc -O -I. -I../../include -I/opt/csw/bdb4/include
-I/opt/csw/include -DNEWDB -DNDBM -DMAP_REGEX -DLDAPMAP
-DSOLARIS=20900 -DSM_CONF_LDAP_MEMFREE
-D_FFR_AUTH_RESULTS -D_FFR_REQUIRED_HEADERS -g -c t-cf.c
gcc -o t-cf -L/opt/csw/bdb4/lib -R/opt/csw/bdb4/lib
-L/opt/csw/lib -R/opt/csw/lib t-cf.o libsm.a -ldb
-lresolv -lsocket -lnsl -lldap
gcc -O -I. -I../../include -I/opt/csw/bdb4/include
-I/opt/csw/include -DNEWDB -DNDBM -DMAP_REGEX -DLDAPMAP
-DSOLARIS=20900 -DSM_CONF_LDAP_MEMFREE
-D_FFR_AUTH_RESULTS -D_FFR_REQUIRED_HEADERS -g -c
b-strcmp.c
gcc -o b-strcmp -L/opt/csw/bdb4/lib
-R/opt/csw/bdb4/lib -L/opt/csw/lib -R/opt/csw/lib
b-strcmp.o libsm.a -ldb -lresolv -lsocket -lnsl -lldap
gcc -O -I. -I../../include -I/opt/csw/bdb4/include
-I/opt/csw/include -I../libdk/ -DSOLARIS=20900
-DSM_CONF_LDAP_MEMFREE -D_FFR_AUTH_RESULTS
-D_FFR_REQUIRED_HEADERS -g -D_REENTRANT -DXP_MT -c
dk-filter.c
gcc -O -I. -I../../include -I/opt/csw/bdb4/include
-I/opt/csw/include -I../libdk/ -DSOLARIS=20900
-DSM_CONF_LDAP_MEMFREE -D_FFR_AUTH_RESULTS
-D_FFR_REQUIRED_HEADERS -g -D_REENTRANT -DXP_MT -c util.c
gcc -o dk-filter -lpthread -L/opt/csw/bdb4/lib
-R/opt/csw/bdb4/lib -L/opt/csw/lib -R/opt/csw/lib
dk-filter.o util.o -lmilter
/var/tmp/dk-milter-0.2.6/obj.SunOS.5.9.sun4/libsm/libsm.a
/var/tmp/dk-milter-0.2.6/obj.SunOS.5.9.sun4/libdk/libdk.a
-ldb -lresolv -lsocket -lnsl -lldap -lssl -lcrypto
Undefined first referenced
symbol in file
ar_cancelquery
/var/tmp/dk-milter-0.2.6/obj.SunOS.5.9.sun4/libdk/libdk.a(dk.o)
ar_waitreply
/var/tmp/dk-milter-0.2.6/obj.SunOS.5.9.sun4/libdk/libdk.a(dk.o)
ar_init
/var/tmp/dk-milter-0.2.6/obj.SunOS.5.9.sun4/libdk/libdk.a(dk.o)
ar_addquery
/var/tmp/dk-milter-0.2.6/obj.SunOS.5.9.sun4/libdk/libdk.a(dk.o)
ld: fatal: Symbol referencing errors. No output written
to dk-filter
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `dk-filter'
Current working directory
/var/tmp/dk-milter-0.2.6/obj.SunOS.5.9.sun4/dk-filter
*** Error code 1
make: Fatal error: Command failed for target `all'

Discussion

    • labels: --> Compilation
    • milestone: --> v0.2.6
    • priority: 5 --> 3
    • assigned_to: nobody --> sm-msk
     
  • Logged In: YES
    user_id=1048957

    libdk was compiled with USE_ARLIB, but dk-filter was not.
    They must match up.

     
  • Fredrik Pettai
    Fredrik Pettai
    2005-02-28

    • status: open --> closed
     
  • Fredrik Pettai
    Fredrik Pettai
    2005-02-28

    Logged In: YES
    user_id=370342

    Yes that did it!
    I couldn't find it in the README, thought.
    Update the dk-milter/README perhaps?

    Re,
    /P