[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference smurf::buildhelp

Title:USG buildhelp questions/answers
Moderator:SMURF::FILTER
Created:Mon Apr 26 1993
Last Modified:Mon Jan 20 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:2763
Total number of notes:5802

918.0. "Error in building shared libraries..." by SMURF::FILTER (Automatic Posting Software - mail to flume::puck) Thu Aug 25 1994 17:39

Date Of Receipt: 	25-AUG-1994 15:51:28.00
From: 	ALPHA::sandeep "Sandeep Shah USG"
To: 	buildhelp@DEC:.zko.alpha
CC: 	sandeep@DEC:.zko.alpha
Subj: 	Error in building shared libraries...

I get the following error (backed up to goldminos.nightly or goldminos.bl1
gives the same problem), when I try to build libxti.so or libtli.so.  Any
one has any ideas why this may be so?   (I tried libmach as well, it gives the
same problem)

Thanks.

sandeep shah

......
......
b   -L/usr/projects/netode3/sandeep/gold/export/alpha/usr/shlib -L/usr/sde/osf1/build/goldminos.bl1/export/alpha/usr/shlib -L/usr/projects/netode3/sandeep/gold/export/alpha/usr/ccs/lib/cmplrs/cc -L/usr/sde/osf1/build/goldminos.bl1/export/alpha/usr/ccs/lib/cmplrs/cc     -L/usr/projects/netode3/sandeep/gold/export/alpha/usr/ccs/lib -L/usr/sde/osf1/build/goldminos.bl1/export/alpha/usr/ccs/lib -o libtli.so.X iostate.o  taccept.o  talloc.o  tbind.o  tblock.o  tclose.o  tconnect.o  terrno.o  terrnolst.o  terro
r.o  tfixup.o  tfree.o  tgetinfo.o  tgetst.o  tlisten.o  tlook.o  tnblock.o  topen.o  toptmgmt.o  trcv.o  trcvcon.o  trcvdis.o  trcvrel.o  trudata.o  truderr.o  tsnd.o  tsnddis.o   tsndrel.o  tsudata.o  tsync.o  tunbind.o  tdbg.o    -lc  
ftruncate failed: I/O error
/usr/sde/osf1/build/goldminos.bl1/tools/alpha_OSF1/alpha/acc/ld:
make_outbuf: cannot ftrucate
*** Exit 1
Stop.


T.RTitleUserPersonal
Name
DateLines
918.1building shared librariesAOSG::FILTERAutomatic Posting Software - mail to flume::puckWed Mar 01 1995 20:3777
Date Of Receipt: 	 1-MAR-1995 19:45:55.41
From: 	SMURF::ALPHA::"[email protected]" "01-Mar-1995 1644"
To: 	[email protected]
CC: 	
Subj: 	building shared libraries

I have a sandbox with a ptos.nightly.stable version, which I created
on 2/24/95, I believe.  I am having trouble building a shared 
library (libc.so).  The only thing I changed in the Makefile in
src/usr/shlib/libc/Makefile was to delete pathconf.o, since I have
made that into a system call elsewhere.

The loader command gives two -O2 flags in a row
and I get an error.  I don't know who to ask to help me with this,
and the build error is below.  Please refer me if you are not the
right person.  Thanks.

Christine Ahrens (DTN 548-8897)

/usr/sde/osf1/build/ptos.nightly.stable/tools/alpha_OSF1/alpha/acc/ld -shared -s
et_version osf.1 -soname libc.so -check_registry `genloc /obj/alpha/usr/shlib/al
pha/so_locations`  -O2 -O2  -msym  -expect_unresolved __ldr_data  -expect_unreso
lved __Argv  -hidden_symbol __ldr_interface   `genpath   ` -L/usr/staff/ahrens/s
andboxes/pathconf/export/alpha/usr/shlib -L/usr/sde/osf1/build/ptos.nightly.stab
le/export/alpha/usr/shlib  -L/usr/staff/ahrens/sandboxes/pathconf/export/alpha/u
sr/ccs/lib -L/usr/sde/osf1/build/ptos.nightly.stable/export/alpha/usr/ccs/lib -o
 libc.so.X  NLflattab.o  sia_globals.o  environ.o  liblocale.o  divglobl.o  data
.o  mallocdata.o  siglist.o  errlst.o  fp_const.o  rpccommondata.o  quota_init.o
 cma_tis.o  rec_mutex.o  flockfile.o  doprnt.o  strlen.o  sprintf.o  memcpy.o  s
trchr.o  doscan.o  strncpy.o  __getmbcurmax.o  malloc.o  sia_init.o  sia_switch.
o  sia_getgroup.o  siad_getgrp.o  bcopy.o  qsort.o  strcmp.o  mbtowc.o  nlist.o 
 memset.o  putwc.o  regexec.o  __divl.o  __divlu.o  __divq.o  __divqu.o  __reml.
o  __remlu.o  __remq.o  __remqu.o  crypt.o  memccpy.o  usleep.o  strcpy.o  bzero
.o  select.o  read.o  wctomb.o  ungetwc.o  fputws.o  strncmp.o  usleep_thread.o 
 tzset.o  gettimeofdy.o  strstr.o  sbrk.o  calloc.o  writev.o  clnt_udp.o  mblen
.o  memcmp.o  close.o  fgets.o  getcommon.o  atoi.o  getenv.o  wcslen.o  ioctl.o
  ffs.o  write.o  bcmp.o  regcomp.o  libdl.o  yp_bind.o  Ufwrite.o  setlocale.o 
 scanf.o  filbuf.o  strcat.o  sia_getpass.o  siad_getpass.o  flsbuf.o  strtol.o 
 strdup.o  Ureaddir.o  cerror.o  fopen.o  xdr.o  open.o  Uctime.o  yp_enum.o  xd
r_mem.o  iswctype.o  sia_mat_init.o  table.o  findiop.o  catopen.o  getwc.o  ung
etc.o  stat.o  Ugetservent.o  fork.o  sigaction.o  lseek.o  ntohl.o  printf.o  s
igprocmask.o  strftime.o  setjmp.o  fgetc.o  getopt.o  exit.o  Ufread.o  isatty.
o  errno.o  getpid.o  __pcstombs.o  sigcompat.o  access.o  ypxdr.o  wait.o  mbsw
idth.o  alarm.o  rpc_prot.o  auth_none.o  index.o  ldr_atexit.o  rpcdtablesize.o
  _sigprocmsk.o  wait4.o  mbstowcs.o  setitimer.o  fstat.o  sendto.o  ndbm.o  si
gjmp.o  Uecvt.o  getpagesize.o  flock.o  execve.o  strcoll.o  getsockname.o  time.o  fcntl.o  dup2.o  recvfrom.o  lstat.o  wcswidth.o  _exit.o  opendir.o  iswpr
int.o  dtoa.o  madvise.o  memchr.o  signal.o  svc.o  ntohs.o  catgets.o  htonl.o
  sigstack.o  abs.o  fprintf.o  puts.o  atol.o  tenscale.o  strrchr.o  strtoul.o
  get_myaddress.o  htons.o  socket.o  bresvport.o  getpasswd.o  fputs.o  fseek.o
  sysconf.o  getnetgrent.o  yp_match.o  strspn.o  pipe.o  dup.o  getdomainnm.o  
strpbrk.o  Ugetut.o  wait3.o  getcwd.o  closedir.o  execv.o  fsync.o  nrecvfrom.
o  unlink.o  sigops.o  atof.o  uname.o  iswdigit.o  creat.o  readv.o  Ustrtok.o 
 inet_addr.o  Usyslog.o  initgroups.o  popen.o  sia_s_init.o  getgroup.o  getuid
.o  nl_langinfo.o  getrlimit.o  pty.o  getdirentri.o  sia_s_lnch.o  Urandom.o  p
error.o  svc_udp.o  bind.o  fdopen.o  __ispriv.o  Ugethostent.o  _setjmp.o  pmap
_prot.o  strtod.o  ftell.o  exec_args.o  siad_s_suaut.o  getpeername.o  getrusag
e.o  rpc_callmsg.o  _longjmp.o  chown.o  pmap_clnt.o  Uttyname.o  gethostname.o 
 siad_s_rel.o  setpgid.o  sia_getmsg.o  siad_s_auth.o  sia_chdir.o  sia_mk_en_pw
.o  sigpause.o  siad_s_lnch.o  login.o  sigsetjmp.o  iswalpha.o  link.o  sigsusp
end.o  atod.o  ypprot_err.o  setreuid.o  getdtablesz.o  geteuid.o  sia_free_ent.
o  putenv.o  sia_s_suauth.o  bsearch.o  sia_auth.o  memmove.o  sia_log.o  setsid
.o  setbuf.o  sia_coll_trm.o  wcstombs.o  accept.o  system.o  rindex.o  umask.o 
 svc_tcp.o  tcsetattr.o  siad_s_estab.o  audcntl.o  chmod.o  sia_s_estab.o  chdi
r.o  getwd.o  getrpcent.o  fchdir.o  basename.o  _sigsuspend.o  svc_auth.o  sia_
s_auent.o  wcscmp.o  waitpid.o  sync.o  execlp.o  longjmp.o  execvp.o  getgid.o 
 rand.o  revoke.o  strcasecmp.o  mmap.o  Ugetttyent.o  setenv.o  seteuid.o  setg
id.o  getpgrp.o  mktemp.o  setpgrp.o  kill.o  sia_alloc_en.o  NLSsetup.o  connec
t.o  exc_failure.o  find_rtfunc.o  alpha_unwind.o  ieee.o  getsysinfo.o -all ./l
ibcso.a
/usr/sde/osf1/build/ptos.nightly.stable/tools/alpha_OSF1/alpha/acc/ld:
Cannot open file -O2 for reading
*** Exit 1
Stop.

------- End of Forwarded Message


918.2Re: building shared librariesAOSG::FILTERAutomatic Posting Software - mail to flume::puckWed Mar 01 1995 21:3813
Date Of Receipt: 	 1-MAR-1995 21:21:19.96
From: 	SMURF::FLUME::jmcg "Jim McGinness"
To: 	[email protected]
CC: 	buildhelp@DEC:.zko.flume
Subj: 	Re:  building shared libraries

Your problem is not two copies of -O2 but in the null string returned from
the `genloc ..../so_locations` command.  This most often happens at remote
sites because the obj trees are not sup'ed.  You should be able to overcome
the problem by populating your own obj tree with this particular file.

 -- jmcg