From: me2faster@... Date: 2005-05-12T09:45:28+09:00 Subject: Unresolved symbols dlclose, dlopen, dlerror, dlsym I'm getting unresolved symbols from the linker related to the dl (dynamic loading ??) module: ld -L . -L ../.. -o dl.so dl.o handle.o ptr.o sym.o -llibruby-static.a **** ERROR **** [1210]: handle.o: In function `dlhandle_free': handle.o(.text._145914312+0x192): unresolved reference to dlclose. **** ERROR **** [1210]: handle.o: In function `rb_dlhandle_initialize': handle.o(.text._145919112+0x5d2): unresolved reference to dlopen. **** ERROR **** [1210]: handle.o(.text._145919112+0x652): unresolved reference to dlerror. **** ERROR **** [1210]: handle.o: In function `rb_dlhandle_sym': handle.o(.text._145946776+0x642): unresolved reference to dlsym. I'm trying to build on a Tandem (now HP) NonStop server, under a POSIX environment. c89 is the C compiler that conforms to the 1989 C standard (not c99). Here's my 'config.h': #define PACKAGE_NAME "" #define PACKAGE_TARNAME "" #define PACKAGE_VERSION "" #define PACKAGE_STRING "" #define PACKAGE_BUGREPORT "" #define STDC_HEADERS 1 #define HAVE_SYS_TYPES_H 1 #define HAVE_SYS_STAT_H 1 #define HAVE_STDLIB_H 1 #define HAVE_STRING_H 1 #define HAVE_MEMORY_H 1 #define HAVE_STRINGS_H 1 #define HAVE_STDINT_H 1 #define HAVE_UNISTD_H 1 #define HAVE_LONG_LONG 1 #define HAVE_OFF_T 1 #define SIZEOF_INT 4 #define SIZEOF_SHORT 2 #define SIZEOF_LONG 4 #define SIZEOF_LONG_LONG 8 #define SIZEOF___INT64 0 #define SIZEOF_OFF_T 4 #define SIZEOF_VOIDP 4 #define SIZEOF_FLOAT 4 #define SIZEOF_DOUBLE 8 #define SIZEOF_TIME_T 4 #define HAVE_PROTOTYPES 1 #define TOKEN_PASTE(x,y) x##y #define HAVE_STDARG_PROTOTYPES 1 #define NORETURN(x) x #define HAVE_DECL_SYS_NERR 0 #define HAVE_DIRENT_H 1 #define STDC_HEADERS 1 #define HAVE_SYS_WAIT_H 1 #define HAVE_STDLIB_H 1 #define HAVE_STRING_H 1 #define HAVE_UNISTD_H 1 #define HAVE_LIMITS_H 1 #define HAVE_SYS_IOCTL_H 1 #define HAVE_FCNTL_H 1 #define HAVE_SYS_TIME_H 1 #define HAVE_SYS_TIMES_H 1 #define HAVE_SYS_PARAM_H 1 #define HAVE_PWD_H 1 #define HAVE_GRP_H 1 #define HAVE_UTIME_H 1 #define HAVE_MEMORY_H 1 #define HAVE_SYS_RESOURCE_H 1 #define HAVE_NETINET_IN_SYSTM_H 1 #define HAVE_FLOAT_H 1 #define HAVE_IEEEFP_H 1 #define HAVE_STRUCT_STAT_ST_RDEV 1 #define HAVE_ST_RDEV 1 #define GETGROUPS_T gid_t #define RETSIGTYPE void #define C_ALLOCA 1 #define STACK_DIRECTION -1 #define HAVE_DUP2 1 #define HAVE_MEMMOVE 1 #define HAVE_MKDIR 1 #define HAVE_STRCASECMP 1 #define HAVE_STRNCASECMP 1 #define HAVE_STRERROR 1 #define HAVE_STRFTIME 1 #define HAVE_STRCHR 1 #define HAVE_STRSTR 1 #define HAVE_STRTOUL 1 #define HAVE_CRYPT 1 #define HAVE_VSNPRINTF 1 #define HAVE_ISNAN 1 #define HAVE_FINITE 1 #define HAVE_HYPOT 1 #define HAVE_ACOSH 1 #define HAVE_ERF 1 #define HAVE_FMOD 1 #define HAVE_WAITPID 1 #define HAVE_CHROOT 1 #define HAVE_FSYNC 1 #define HAVE_GETCWD 1 #define HAVE_TIMES 1 #define HAVE_FCNTL 1 #define HAVE_LSTAT 1 #define HAVE_SYMLINK 1 #define HAVE_READLINK 1 #define HAVE_PAUSE 1 #define HAVE_GETPGRP 1 #define HAVE_GETPGID 1 #define HAVE_SETPGID 1 #define HAVE_GETGROUPS 1 #undef HAVE_GETPRIORITY #define HAVE_SIGPROCMASK 1 #define HAVE_SIGACTION 1 #define HAVE__SETJMP 1 #define HAVE_SETSID 1 #define HAVE_TELLDIR 1 #define HAVE_SEEKDIR 1 #define HAVE_MKTIME 1 #define HAVE_COSH 1 #define HAVE_SINH 1 #define HAVE_TANH 1 #define HAVE_SETUID 1 #define HAVE_SETGID 1 #define HAVE_TZNAME 1 #define HAVE_DAYLIGHT 1 #define NEGATIVE_TIME_T 1 #define POSIX_SIGNAL 1 #define GETPGRP_VOID 1 #define SETPGRP_VOID 1 #define WORDS_BIGENDIAN 1 #define __CHAR_UNSIGNED__ 1 #ifndef __cplusplus #define inline #endif #define RSHIFT(x,y) ((x)>>(int)y) #define FILE_COUNT _cnt #define FILE_READPTR _ptr #define NEED_IO_SEEK_BETWEEN_RW 1 #define STACK_GROW_DIRECTION -1 #define DEFAULT_KCODE KCODE_NONE #define USE_ELF 1 #define DLEXT ".so" #define RUBY_LIB "/usr/local/lib/ruby/1.8" #define RUBY_SITE_LIB "/usr/local/lib/ruby/site_ruby" #define RUBY_SITE_LIB2 "/usr/local/lib/ruby/site_ruby/1.8" #define RUBY_PLATFORM "nsr-nsk" #define RUBY_ARCHLIB "/usr/local/lib/ruby/1.8/nsr-nsk" #define RUBY_SITE_ARCHLIB "/usr/local/lib/ruby/site_ruby/1.8/nsr-nsk" me2faster@excite.com