[Date Prev][Date Next] [Chronological] [Thread] [Top]

make depend and 'cc' compiler options on HP-UX 11 (ITS#777)



Full_Name: Fabio Benussi
Version: 1.2.9 and 1.2.11
OS: HP-UX 11 
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (192.6.59.72)


Hi,

I am having trouble compiling OpenLDAP under HP-UX 11 using the 'cc' compiler. 

I have tried this both on a HP-UX11 server (PA_RISC2_0) and worksation
(PA_RISC1_1).
Both systems had 'cc' installed. I used both the tarball for openLDAP1.2.9 and
openLDAP1.2.11.

Before compiling OpenLDAP I do manage to successfully compile and install
BerkeleyDB 2.7.7 
(using 'cc' as compiler)


Here are my steps for compiling openLDAP:

1- Envrionment variables settings:
CC=cc
LIBS=-lpthread
CPPFLAGS=-I/usr/local/BerkeleyDB/include
LDFLAGS=-L/usr/local/BerkeleyDB/lib


2-Configure step:

./configure --prefix=/usr/local/ldap --without-threads

(NOTE: probably the LIBS environment variable is pointless if I specify
without-threads...)

Configure seems to be OK (I do have the config.log file, but it does not fit the
attachment
and I'd rather post the output of the make depend command)


3-Run make depend

make depend


I get a warning message saying that 'cc' does not support the -M option. Then I
get a list
of messages from 'ld' saying Unresolved symbol for several calls. I attach the
standard error
output for the make depend command.

I have seen the answer to ITS#108 that suggests to find the equivalent option
for -M
that works for the compiler I am using. Unfortunately 'cc' does not seem to have

any option that resembles such feature. Has anyone found a way to workaround
this for 'cc' on HP-UX 11?

Is the 'make depend' step required also for an installation site (I have seen
other
messages in the archive which seemed to hint at the fact that you only need make
depend 
for development purposes...)


--Fabio--

NOTE: the files I am attaching refer to my attempts with openldap1.2.9 on
HP-UX11 server


------------------------------------------------------------------------
Standard Error output for 'make depend'
---------------------------------------
cc: warning 422: Unknown option "M" ignored.
/usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (base64.o) was
detected. The linked output may not run on a PA 1.x system.
/usr/ccs/bin/ld: Unsatisfied symbols:
   main
cc: warning 422: Unknown option "M" ignored.
cc: "testavl.c", line 28: warning 604: Pointers are not assignment-compatible.
cc: "testavl.c", line 28: warning 563: Argument #2 is not the correct type.
/usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (avl.o) was detected.
The linked output may not run on a PA 1.x system.
cc: warning 422: Unknown option "M" ignored.
/usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (line64.o) was
detected. The linked output may not run on a PA 1.x system.
/usr/ccs/bin/ld: Unsatisfied symbols:
   ldap_debug (data)
   main
cc: warning 422: Unknown option "M" ignored.
/usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (decode.o) was
detected. The linked output may not run on a PA 1.x system.
/usr/ccs/bin/ld: Unsatisfied symbols:
   main
cc: warning 422: Unknown option "M" ignored.
/usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (bind.o) was
detected. The linked output may not run on a PA 1.x system.
/usr/ccs/bin/ld: Unsatisfied symbols:
   ber_reset (code)
   ber_bvecfree (code)
   ber_get_next (code)
   ber_printf (code)
   ber_get_int (code)
   ber_alloc_t (code)
   ber_dump (code)
   ber_scanf (code)
   ber_dup (code)
   ber_init (code)
   ber_get_stringa (code)
   ber_flush (code)
   ber_free (code)
   main
   ber_write (code)
   ber_peek_tag (code)
   ber_skip_tag (code)
cc: warning 422: Unknown option "M" ignored.
/usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (ldbm.o) was
detected. The linked output may not run on a PA 1.x system.
/usr/ccs/bin/ld: Unsatisfied symbols:
   db_appinit (code)
   db_open (code)
   main
cc: warning 422: Unknown option "M" ignored.
/usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (rdwr.o) was
detected. The linked output may not run on a PA 1.x system.
/usr/ccs/bin/ld: Unsatisfied symbols:
   main
cc: warning 422: Unknown option "M" ignored.
cc: "ldapsearch.c", line 425: warning 562: Redeclaration of "print_entry" with a
different storage class specifier: "print_entry" will have internal linkage.
cc: "ldapsearch.c", line 513: warning 562: Redeclaration of "write_ldif_value"
with a different storage class specifier: "write_ldif_value" will have internal
linkage.
cc: "ldappasswd.c", line 208: warning 604: Pointers are not
assignment-compatible.
cc: "ldappasswd.c", line 208: warning 563: Argument #2 is not the correct type.
cc: "ldappasswd.c", line 223: warning 604: Pointers are not
assignment-compatible.
cc: "ldappasswd.c", line 223: warning 563: Argument #2 is not the correct type.
/usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (ldapsearch.o) was
detected. The linked output may not run on a PA 1.x system.
/usr/ccs/bin/ld: Duplicate symbol "main" in files ldapsearch.o and ldapmodify.o
/usr/ccs/bin/ld: Duplicate symbol "main" in files ldapsearch.o and ldapdelete.o
/usr/ccs/bin/ld: Duplicate symbol "main" in files ldapsearch.o and ldapmodrdn.o
/usr/ccs/bin/ld: Duplicate symbol "main" in files ldapsearch.o and ldappasswd.o
/usr/ccs/bin/ld: Unsatisfied symbols:
   ldap_msgfree (code)
   ldap_bind_s (code)
   ldap_value_free_len (code)
   ldap_result2error (code)
   lutil_SHA1Init (code)
   ldif_type_and_value (code)
   ldap_next_attribute (code)
   lber_debug (data)
   ber_bvecfree (code)
   ldap_get_dn (code)
   lutil_SHA1Update (code)
   lutil_MD5Final (code)
   ldap_first_entry (code)
   str_getline (code)
   ldap_dn2ufn (code)
   ldap_debug (data)
   ldap_search_s (code)
   lutil_MD5Update (code)
   ldap_get_values_len (code)
   ldap_first_attribute (code)
   ldap_perror (code)
   ldap_delete_s (code)
   ldap_init (code)
   ldap_sort_entries (code)
   lutil_SHA1Final (code)
   ldap_next_entry (code)
   ldap_modrdn2_s (code)
   lutil_b64_ntop (code)
   str_parse_line (code)
   ldap_unbind (code)
   ldap_modify_s (code)
   lutil_MD5Init (code)
   ldap_search (code)
   ldap_result (code)
   ldap_add_s (code)
/usr/ccs/bin/ld: Found 4 duplicate symbol(s)
cc: warning 422: Unknown option "M" ignored.
/usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (main.o) was
detected. The linked output may not run on a PA 1.x system.
/usr/ccs/bin/ld: Unsatisfied symbols:
   ldap_msgfree (code)
   ldap_bind_s (code)
   ldap_init_getfilter (code)
   ldap_flush_cache (code)
   ldap_next_attribute (code)
   ldap_friendly_name (code)
   lber_debug (data)
   ldap_enable_cache (code)
   ldap_get_dn (code)
   ldap_count_entries (code)
   tgetent (code)
   tgetflag (code)
   ldap_count_values (code)
   ldap_first_entry (code)
   ldap_dn2ufn (code)
   ldap_debug (data)
   ldap_search_s (code)
   ldap_getnextfilter (code)
   ldap_value_free (code)
   ldap_first_attribute (code)
   ldap_perror (code)
   ldap_delete_s (code)
   ldap_explode_dn (code)
   ldap_next_entry (code)
   ldap_ufn_search_s (code)
   tgetnum (code)
   ldap_getfirstfilter (code)
   ldap_uncache_entry (code)
   ldap_unbind (code)
   ldap_modify_s (code)
   ldap_get_values (code)
   ldap_open (code)
   ldap_add_s (code)
   Version (data)
cc: warning 422: Unknown option "M" ignored.
/usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (main.o) was
detected. The linked output may not run on a PA 1.x system.
/usr/ccs/bin/ld: Unsatisfied symbols:
   ldap_msgfree (code)
   ldap_free_templates (code)
   ldap_ufn_timeout (code)
   ldap_init_templates (code)
   ldap_init_getfilter (code)
   ldap_get_dn (code)
   ldap_count_entries (code)
   ldap_first_entry (code)
   ldap_entry2text_search (code)
   ldap_value_free (code)
   ldap_getnextfilter (code)
   ldap_perror (code)
   ldap_simple_bind_s (code)
   ldap_sort_entries (code)
   ldap_next_entry (code)
   ldap_ufn_search_s (code)
   ldap_getfirstfilter (code)
   ldap_unbind (code)
   ldap_ufn_setprefix (code)
   ldap_search_st (code)
   ldap_get_values (code)
   ldap_open (code)
cc: warning 422: Unknown option "M" ignored.
/usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (go500.o) was
detected. The linked output may not run on a PA 1.x system.
/usr/ccs/bin/ld: Duplicate symbol "debug" in files go500.o and go500gw.o
/usr/ccs/bin/ld: Duplicate symbol "ldaphost" in files go500.o and go500gw.o
/usr/ccs/bin/ld: Duplicate symbol "filterfile" in files go500.o and go500gw.o
/usr/ccs/bin/ld: Duplicate symbol "templatefile" in files go500.o and go500gw.o
/usr/ccs/bin/ld: Duplicate symbol "rdncount" in files go500.o and go500gw.o
/usr/ccs/bin/ld: Duplicate symbol "main" in files go500.o and go500gw.o
/usr/ccs/bin/ld: Unsatisfied symbols:
   ldap_msgfree (code)
   ldap_free_templates (code)
   Argv (data)
   ldap_ufn_timeout (code)
   ldap_result2error (code)
   ldap_init_templates (code)
   ldap_init_getfilter (code)
   ldap_friendly_name (code)
   lber_debug (data)
   ldap_get_dn (code)
   ldap_count_entries (code)
   ldap_first_entry (code)
   ldap_debug (data)
   ldap_entry2text_search (code)
   ldap_value_free (code)
   ldap_getnextfilter (code)
   ldap_perror (code)
   lber_bprint (code)
   ldap_simple_bind_s (code)
   ldap_explode_dn (code)
   ldap_getfilter_free (code)
   ldap_sort_entries (code)
   ldap_next_entry (code)
   ldap_err2string (code)
   ldap_ufn_search_s (code)
   lutil_detach (code)
   ldap_getfirstfilter (code)
   ldap_unbind (code)
   ldap_ufn_setprefix (code)
   setproctitle (code)
   ldap_free_friendlymap (code)
   ldap_search_st (code)
   ldap_get_values (code)
   Argc (data)
   ldap_open (code)
/usr/ccs/bin/ld: Found 6 duplicate symbol(s)
cc: warning 422: Unknown option "M" ignored.
/usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (main.o) was
detected. The linked output may not run on a PA 1.x system.
/usr/ccs/bin/ld: Unsatisfied symbols:
   ldap_msgfree (code)
   ldap_result2error (code)
   ldap_get_dn (code)
   ldap_count_entries (code)
   ldap_add_result_entry (code)
   ldap_first_entry (code)
   ldap_value_free (code)
   ldap_simple_bind_s (code)
   ldap_explode_dn (code)
   ldap_delete_result_entry (code)
   ldap_next_entry (code)
   ldap_unbind (code)
   ldap_search_st (code)
   ldap_get_values (code)
   ldap_open (code)
cc: warning 422: Unknown option "M" ignored.
/usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (main.o) was
detected. The linked output may not run on a PA 1.x system.
/usr/ccs/bin/ld: Duplicate symbol "base" in files main.o and rp500.o
/usr/ccs/bin/ld: Duplicate symbol "main" in files main.o and rp500.o
/usr/ccs/bin/ld: Unsatisfied symbols:
   ldap_msgfree (code)
   ldap_result2error (code)
   ldap_init_getfilter (code)
   lber_debug (data)
   ldap_get_dn (code)
   ldap_count_entries (code)
   ldap_add_result_entry (code)
   ldap_first_entry (code)
   ldap_debug (data)
   ldap_search_s (code)
   ldap_getnextfilter (code)
   ldap_value_free (code)
   ldap_perror (code)
   ldap_simple_bind_s (code)
   ldap_explode_dn (code)
   ldap_delete_result_entry (code)
   ldap_next_entry (code)
   ldap_ufn_search_s (code)
   ldap_getfirstfilter (code)
   ldap_unbind (code)
   ldap_search_st (code)
   ldap_get_values (code)
   ldap_open (code)
/usr/ccs/bin/ld: Found 2 duplicate symbol(s)
cc: warning 422: Unknown option "M" ignored.
cc: "query.c", line 36: warning 562: Redeclaration of "close_ldap" with a
different storage class specifier: "close_ldap" will have internal linkage.
/usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (main.o) was
detected. The linked output may not run on a PA 1.x system.
/usr/ccs/bin/ld: Unsatisfied symbols:
   ldap_msgfree (code)
   ldap_free_templates (code)
   ldap_init_templates (code)
   ldap_init_getfilter (code)
   ldap_get_dn (code)
   ldap_count_entries (code)
   ldap_first_entry (code)
   ldap_entry2text_search (code)
   ldap_search_s (code)
   ldap_value_free (code)
   ldap_getnextfilter (code)
   ldap_simple_bind_s (code)
   ldap_getfilter_free (code)
   ldap_sort_entries (code)
   ldap_err2string (code)
   ldap_next_entry (code)
   ldap_ufn_search_s (code)
   ldap_getfirstfilter (code)
   ldap_unbind (code)
   ldap_ufn_setprefix (code)
   ldap_get_values (code)
   ldap_open (code)
cc: warning 422: Unknown option "M" ignored.
/usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (idl.o) was detected.
The linked output may not run on a PA 1.x system.
/usr/ccs/bin/ld: Unsatisfied symbols:
   currenttime_mutex (data)
   ch_strdup (code)
   entry_free (code)
   be_isroot (code)
   be_issuffix (code)
   acl_check_mods (code)
   dn_type (code)
   ch_calloc (code)
   attr_normalize (code)
   attr_syntax_config (code)
   attrs_dup (code)
   oc_schema_check (code)
   attrs_free (code)
   crypt_mutex (data)
   ldap_pvt_thread_yield (code)
   send_ldap_search_result (code)
   build_new_dn (code)
   avl_dup_error (code)
   value_cmp (code)
   send_search_entry (code)
   charray_free (code)
   global_schemacheck (data)
   entry_rdwr_trylock (code)
   send_ldap_result (code)
   value_find (code)
   ldap_syslog (data)
   currenttime (data)
   dn_rdn (code)
   entry2str_mutex (data)
   be_root_dn (code)
   dn_parent (code)
   ldap_debug (data)
   attr_delete (code)
   attr_merge (code)
   ch_malloc (code)
   avl_find (code)
   value_normalize (code)
   phonetic (code)
   ldbm_store (code)
   str2charray (code)
   rdn_attr_value (code)
   ldap_pvt_thread_cond_signal (code)
   access_allowed (code)
   entry2str (code)
   ldap_pvt_thread_mutex_init (code)
   str2entry (code)
   ldap_pvt_thread_cond_wait (code)
   ldap_pvt_thread_rdwr_writers (code)
   ldap_syslog_level (data)
   ldap_pvt_thread_rdwr_active (code)
   ldbm_sync (code)
   ldbm_fetch (code)
   entry_rdwr_unlock (code)
   avl_insert (code)
   attr_syntax (code)
   ber_bvfree (code)
   avl_delete (code)
   ldbm_open (code)
   dn_normalize_case (code)
   rdn_attr_type (code)
   dn_issuffix (code)
   attr_find (code)
   filter_free (code)
   next_word (code)
   ldbm_datum_free (code)
   ldbm_delete (code)
   ldbm_initialize (code)
   ldap_pvt_thread_mutex_unlock (code)
   first_word (code)
   ldap_pvt_thread_cond_init (code)
   lutil_passwd (code)
   test_filter (code)
   ldap_pvt_thread_mutex_lock (code)
   main
   ch_realloc (code)
   ldbm_close (code)
   be_isroot_pw (code)
   entry_rdwr_lock (code)
cc: warning 422: Unknown option "M" ignored.
/usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (centipede.o) was
detected. The linked output may not run on a PA 1.x system.
/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)
   attr_normalize (code)
   attr_masks (code)
   ldap_get_dn (code)
   avl_dup_error (code)
   ldbm_cache_really_close (code)
   dn_parent (code)
   ldap_first_entry (code)
   str_getline (code)
   index_change_values (code)
   ldap_debug (data)
   ldbm_nextkey (code)
   ldbm_firstkey (code)
   ldap_search_s (code)
   phonetic (code)
   ldbm_store (code)
   ldap_value_free (code)
   ldbm_cache_open (code)
   idl_firstid (code)
   ldap_get_values_len (code)
   ldap_perror (code)
   idl_fetch (code)
   ldbm_fetch (code)
   avl_insert (code)
   ldbm_open (code)
   nbackends (data)
   dn_normalize_case (code)
   select_backend (code)
   read_config (code)
   next_word (code)
   ldbm_datum_free (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)
cc: warning 422: Unknown option "M" ignored.
cc: "daemon.c", line 39: warning 562: Redeclaration of "slapd_shutdown" with a
different storage class specifier: "slapd_shutdown" will have internal linkage.
/usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (main.o) was
detected. The linked output may not run on a PA 1.x system.
/usr/ccs/bin/ld: Unsatisfied symbols:
   ldbm_back_search (code)
   ldap_pvt_thread_rdwr_wtrylock (code)
   ldbm_back_close (code)
   ber_next_element (code)
   lber_debug (data)
   ber_bvecfree (code)
   ber_get_next (code)
   ldap_pvt_thread_yield (code)
   ldap_pvt_thread_rdwr_rtrylock (code)
   ldap_pvt_thread_rdwr_wunlock (code)
   Versionstr (data)
   ber_alloc (code)
   ber_bvdup (code)
   ldbm_back_config (code)
   ldap_pvt_thread_rdwr_rlock (code)
   ber_printf (code)
   ldbm_back_abandon (code)
   ldap_pvt_thread_mutex_destroy (code)
   ldbm_back_init (code)
   str_getline (code)
   ldap_debug (data)
   ldbm_back_compare (code)
   avl_find (code)
   put_type_and_value (code)
   ldbm_back_unbind (code)
   ldap_pvt_thread_cond_signal (code)
   ldbm_back_modify (code)
   ldap_pvt_thread_cond_wait (code)
   ldap_pvt_thread_mutex_init (code)
   ldap_pvt_thread_rdwr_writers (code)
   ldap_pvt_thread_rdwr_active (code)
   avl_insert (code)
   ber_get_int (code)
   ber_bvfree (code)
   ldap_pvt_thread_rdwr_wlock (code)
   ldap_pvt_thread_kill (code)
   avl_apply (code)
   ldbm_back_group (code)
   ldbm_back_bind (code)
   ldbm_back_modrdn (code)
   ber_alloc_t (code)
   ldap_pvt_thread_rdwr_readers (code)
   ldap_pvt_thread_rdwr_runlock (code)
   ldap_pvt_thread_rdwr_init (code)
   ber_scanf (code)
   lutil_detach (code)
   ber_init (code)
   str_parse_line (code)
   ber_first_element (code)
   ldap_pvt_thread_create (code)
   ldap_pvt_thread_mutex_unlock (code)
   ldap_pvt_thread_cond_init (code)
   ber_flush (code)
   lutil_passwd (code)
   ber_free (code)
   ldbm_back_delete (code)
   avl_find_lin (code)
   ldap_pvt_thread_mutex_lock (code)
   ldap_pvt_thread_join (code)
   ber_peek_tag (code)
   ldap_pvt_thread_initialize (code)
   ldbm_back_add (code)
   ber_skip_tag (code)