Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
* Oddness with cc -pthread and -lldap_r
@ 2001-01-23 14:19 Albert Chin-A-Young
  2001-01-23 19:58 ` Mark Garrett
  0 siblings, 1 reply; 4+ messages in thread
From: Albert Chin-A-Young @ 2001-01-23 14:19 UTC (permalink / raw)


I'm building OpenLDAP 2.0.7 on Tru64 UNIX 5.0A. Something odd is going
on:
  $ cc -V
  /usr/bin/cc  (cc)
          Tru64 UNIX Compiler Driver 5.0
  Compaq C V6.1-020 on Compaq Tru64 UNIX V5.0A (Rev. 1094)
  /usr/lib/cmplrs/cc/ld:
  /usr/lib/cmplrs/cc/ftoc:

  $ cat b.c
  #include <sys/types.h>

  int
  main (void) {
    pid_t foo;
  }

  $ cc b.c -lldap_r -pthread
  [At this point, it doesn't matter if libldap_r is available because
   we're interested in how ld is being called. We replace /bin/ld
   with a shell script to spit out the options ld was called with.]
  ld -g0 -O1 -call_shared /usr/lib/cmplrs/cc/crt0.o b.o -qlldap_r<CR>
  _r -lldap_r -lpthread -lexc -lc
  [yes, there is a CR after -qlldap_r and notice the lone "-r"!]

  $ cc b.c -pthread
  ld -g0 -O1 -call_shared /usr/lib/cmplrs/cc/crt0.o b.o -lpthread -lexc -lc
  [no CR problems!]

  $ cc b.c -lfoo_r -pthread
  ld -g0 -O1 -call_shared /usr/lib/cmplrs/cc/crt0.o b.o \
  -qlfoo_r_r -lfoo_r -lpthread -lexc -lc
  [no CR problems!]

So, what is going on? What is special about "-lldap_r".

-- 
albert chin (china at thewrittenword dot com)


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-01-25 17:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-01-23 14:19 Oddness with cc -pthread and -lldap_r Albert Chin-A-Young
2001-01-23 19:58 ` Mark Garrett
2001-01-24  5:01   ` Albert Chin-A-Young
2001-01-25 17:53     ` Albert Chin-A-Young

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox