R-alpha: -ldl under Linux

Douglas Bates (bates@stat.wisc.edu)
Wed, 28 Aug 96 14:01 CDT


Message-Id: <m0uvpri-0000VXC@franz.stat.wisc.edu>
Date: Wed, 28 Aug 96 14:01 CDT
From: Douglas Bates <bates@stat.wisc.edu>
To: R@stat.auckland.ac.nz
Subject: R-alpha: -ldl under Linux

I was able to install the R-0.10alpha on a Linux system (2.0.13
kernel, Debian distribution) but I needed to link src/library to
src/lib as several people have indicated.  I also need to add -ldl to
the list of libraries in the final load step.  Specifically,
*** /tmp/R/src/Systems/Linux.bak	Wed Aug 28 13:59:13 1996
--- /tmp/R/src/Systems/Linux	Wed Aug 28 13:49:27 1996
***************
*** 23,26 ****
  LD= gcc -g
  
  # Libraries to Load Against
! LIBS= -L$(X11BASE)/lib -lX11 -lm
--- 23,26 ----
  LD= gcc -g
  
  # Libraries to Load Against
! LIBS= -L$(X11BASE)/lib -lX11 -lm -ldl

I got one warning from the compiler

make[1]: Entering directory `/tmp/R/src/main'
...
gcc -g -I../include   -c dotcode.c -o dotcode.o
dotcode.c: In function `do_dynload':
dotcode.c:100: warning: assignment discards `const' from pointer target type
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
r-testers mailing list -- To (un)subscribe, send
subscribe	or	unsubscribe
(in the "body", not the subject !)  To: r-testers-request@stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-