Re: compiile Regina REXX - dl* not found
- From: "Bernd.Schemmer" <bnsmb@xxxxxxxxx>
- Date: Mon, 05 Dec 2005 23:20:04 +0000
With the help from Florian Große-Coosmann I found the solution
bash-2.05$ gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -fno-strict-aliasing -Wn o-char-subscripts -o execiser execiser.o -L. -lregina -lfl -lm /lib/libdl.so.2
Works perfect!
bash-2.05$ rexx rexxcps.rexx ----- REXXCPS 2.2 -- Measuring REXX clauses/second ----- REXX version is: REXX-Regina_3.3 5.00 25 Apr 2004 System is: UNIX Averaging: 10 measures of 30 iterations
Performance: 63087 REXX clauses per second
regards
Bernd
Bernd.Schemmer wrote:
Hi,
I'm trying to compile Regina Rexx on my Zaurus and I get the following error:
gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -fno-strict-aliasing -Wno-char-subsc
ripts -o execiser execiser.o -L. -lregina -lfl -lm
./libregina.so: undefined reference to `dlerror'
./libregina.so: undefined reference to `dlclose'
./libregina.so: undefined reference to `dlopen'
./libregina.so: undefined reference to `dlsym'
collect2: ld returned 1 exit status
make: *** [execiser] Error 1
bash-2.05$
# or calling with -ldl switch:
bash-2.05$ gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -fno-strict-aliasing -Wn
o-char-subscripts -o execiser execiser.o -L. -lregina -lfl -lm -ldl
/home/zaurus/develop/bin/ld: cannot find -ldl
collect2: ld returned 1 exit status
There's something missing - but I don't know what exactly.
The Zaurus runs Linux:
bash-2.05$ cat /proc/version
Linux version 2.4.20 (namikosi@mascaras) (gcc version 2.95.2 19991024 (release))
#1 Thu, 14 Apr 2005 11:19:41 +0900
bash-2.05$
I've appended the output of configure below.
regards
Bernd
bash-2.05$ ./configure
creating cache ./config.cache
checking for one of the following C compilers: xlC gcc cc c89 acc... using /home
/zaurus/develop/bin/gcc
checking for gcc... (cached) gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for POSIXized ISC... no
checking host system type... armv5tel-unknown-linux-gnu
checking target system type... armv5tel-unknown-linux-gnu
checking build system type... armv5tel-unknown-linux-gnu
checking for main in -ldld... no
checking for main in -ldl... no
checking for main in -lm... yes
checking for main in -lnsl... no
checking for main in -lnsl_s... no
checking for main in -lsocket... no
checking for main in -lcrypt... no
checking for crypt function... no
checking for flex... flex
checking for yywrap in -lfl... yes
checking if compiler supports ANSI prototypes... yes
checking how to run the C preprocessor... gcc -E
checking whether gcc needs -traditional... no
checking for ranlib... ranlib
checking whether ln -s works... yes
checking whether make sets ${MAKE}... yes
checking for ANSI C header files... yes
checking for stdio.h... yes
checking for stdlib.h... yes
checking for setjmp.h... yes
checking for unistd.h... yes
checking for ctype.h... yes
checking for pwd.h... yes
checking for grp.h... yes
checking for math.h... yes
checking for poll.h... yes
checking for time.h... yes
checking for sys/time.h... yes
checking for sys/wait.h... yes
checking for sys/stat.h... yes
checking for assert.h... yes
checking for errno.h... yes
checking for stdarg.h... yes
checking for string.h... yes
checking for termios.h... yes
checking for signal.h... yes
checking for limits.h... yes
checking for fcntl.h... yes
checking for malloc.h... yes
checking for dl.h... no
checking for sys/select.h... yes
checking for arpa/inet.h... yes
checking for sys/socket.h... yes
checking for sys/resource.h... yes
checking for netinet/in.h... yes
checking for netdb.h... yes
checking for sysconf... yes
checking for putenv... yes
checking for usleep... yes
checking for random... yes
checking for ftruncate... yes
checking for memcpy... yes
checking for memmove... yes
checking for strerror... yes
checking for strerror_r... yes
checking for gettimeofday... yes
checking for ftime... yes
checking for _fullpath... no
checking for vsprintf... yes
checking for _splitpath2... no
checking for _splitpath... no
checking for sigaction... yes
checking for lstat... no
checking for mkstemp... yes
checking for inet_ntop... yes
checking for gmtime_r... yes
checking for localtime_r... yes
checking for readlink... yes
checking for realpath... yes
checking for working const... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking whether gcc understands -c and -o together... yes
checking whether __sighandler_t is defined... yes
checking for struct random_data... yes
checking for 8-bit clean memcmp... yes
checking for working alloca.h... yes
checking for alloca... yes
checking whether gcc understands --version-script... yes
checking for main in -lrt... yes
checking whether Posix Threads are supported... no
checking for dlfcn.h... yes
checking shared library/external function extensions... .so/.so
checking compiler flags for a dynamic object... -fPIC
checking if dynamic loading of external functions is supported... yes
checking if symbols need underscore prepended in loadable modules... no
checking whether char is unsigned... yes
checking compiler switch for unsigned char... not needed - char is unsigned by d
efault
updating cache ./config.cache
creating ./config.status
creating Makefile
creating regina-config
creating rxstack.init.d
creating config.h
config.h is unchanged
bash-2.05$
-- Bernd Schemmer http://home.arcor.de/bnsmb/index.html .
- References:
- compiile Regina REXX - dl* not found
- From: Bernd.Schemmer
- compiile Regina REXX - dl* not found
- Prev by Date: Re: why no "end" for classes or properties
- Next by Date: Re: compiile Regina REXX - dl* not found
- Previous by thread: compiile Regina REXX - dl* not found
- Next by thread: Re: compiile Regina REXX - dl* not found
- Index(es):
Relevant Pages
|
|