Hi: Now I try to compile OpenLDAP release 1.2 on HP unix. According to INSTALL instructions, when I type "make depend", I got the following errors: . . . cd tools; make depend cc: warning 422: Unknown option "M" ignored. cc: "../../../include/ldap.h", line 516: warning 617: Redeclaration of tag "timeval" ignore d. cc: "../../../include/ldap.h", line 516: warning 617: Redeclaration of tag "timeval" ignore d. cc: "../../../include/ldap.h", line 516: warning 617: Redeclaration of tag "timeval" ignore d. cc: "../../../include/ldap.h", line 516: warning 617: Redeclaration of tag "timeval" ignore d. cc: "../../../include/ldap.h", line 516: warning 617: Redeclaration of tag "timeval" ignore d. cc: "../../../include/ldap.h", line 516: warning 617: Redeclaration of tag "timeval" ignore d. cc: "../../../include/ldap.h", line 516: warning 617: Redeclaration of tag "timeval" ignore d. cc: "../../../include/ldap.h", line 516: warning 617: Redeclaration of tag "timeval" ignore d. cc: "../../../include/ldap.h", line 516: warning 617: Redeclaration of tag "timeval" ignore d. /usr/ccs/bin/ld: Duplicate symbol "main" in files centipede.o and ldbmcat.o /usr/ccs/bin/ld: Duplicate symbol "main" in files centipede.o and ldbmtest.o /usr/ccs/bin/ld: Duplicate symbol "main" in files centipede.o and sizecount.o /usr/ccs/bin/ld: Duplicate symbol "main" in files centipede.o and ldif.o /usr/ccs/bin/ld: Duplicate symbol "main" in files centipede.o and ldif2id2children.o /usr/ccs/bin/ld: Duplicate symbol "main" in files centipede.o and ldif2id2entry.o /usr/ccs/bin/ld: Duplicate symbol "main" in files centipede.o and ldif2index.o /usr/ccs/bin/ld: Duplicate symbol "main" in files centipede.o and ldif2ldbm.o /usr/ccs/bin/ld: Unsatisfied symbols: ldap_msgfree (code) ldap_bind_s (code) ldap_value_free_len (code) be_issuffix (code) ldap_result2error (code) idl_insert_key (code) ldif_type_and_value (code) . . . idl_nextid (code) ldap_mods_free (code) ldbm_delete (code) str_parse_line (code) word_dup (code) ldap_unbind (code) ldbm_errno (code) first_word (code) ldap_modify_s (code) ldap_get_values (code) init (code) backends (data) ldap_open (code) ldap_search (code) ldap_result (code) ldap_add_s (code) ch_realloc (code) ldbm_close (code) /usr/ccs/bin/ld: Found 8 duplicate symbol(s) There would have more errors. I do not know if I need to do some changes when compiling on HP UNIX. I'd appreciate if someone have some ideas. Thanks, Joe Thanks, Joe
At 03:10 PM 3/23/99 GMT, jyzhou@nortelnetworks.com wrote: >Now I try to compile OpenLDAP release 1.2 on HP unix. >According to INSTALL instructions, when I type "make depend", >I got the following errors: You C translator apparently doesn't use the -M option to generate dependencies. It may use -xM or something. Check cc(1). You can then hack build/mkdep to use the appropriate option. Or you can fetch the latest mkdep script from the CVS repository. It supports the environment variable CC_MKDEP_FLAGS that can be set to -xM or whatever. ie: env CC_MKDEP_FLAGS=-xM make depend Kurt
changed notes changed state Open to Closed
Provided workaround.