Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
RE: AIX-problem: the main module won't link statically
- X-seq: zsh-workers 14808
- From: Timo Aaltonen <tjaalton@xxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: RE: AIX-problem: the main module won't link statically
- Date: Fri, 8 Jun 2001 15:28:22 +0300 (EET DST)
- In-reply-to: <000801c0f014$1e846860$21c9ca95@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
On Fri, 8 Jun 2001, Andrej Borsenkow wrote:
> > > theremin% CC="cc" ./configure
> > >
> >
> > Try with DLLD=cc CC=cc. On some systems use of plain ld to create shared
> > libraries does not work (due to additional startup files needed).
> >
>
> And I do not like double -lc; you may try with
>
> DLLDFLAGS='-G -bexpall'
>
> as well. We provide -lc in any case.
Argh.. can't.. resist.. must.. try..
here it is (script-output of the compile), seems that the
libzsh-part wen't fine, but rlimits did not.
_______________/Timo Aaltonen <http://www.hut.fi/~tjaalton>
GSM +358-40-5549 618
Script started on Fri Jun 8 15:21:12 2001
[Jtheremin% [Kaamk a mmake
cd . && CONFIG_FILES= CONFIG_HEADERS=./config.h /bin/sh ./config.status
creating ./config.h
./config.h is unchanged
Target "complete.mdh" is up to date.
Updated `zutil.mdh'.
rm -f stamp-modobjs.tmp
echo '' builtin.o compat.o cond.o exec.o glob.o hashtable.o hist.o init.o input.o jobs.o lex.o linklist.o loop.o math.o mem.o module.o options.o params.o parse.o pattern.o prompt.o signals.o signames.o string.o subst.o text.o utils.o watch.o >> ../Src/stamp-modobjs.tmp
`stamp-modobjs' is up to date.
rm -f libzsh-4.0.1.so
cc -s -G -bexpall -bnoquiet -o libzsh-4.0.1.so `cat stamp-modobjs` -ldl -lcurses -lm -lc
(ld): halt 4
(ld): setopt strip
(ld): setopt expall
(ld): savename libzsh-4.0.1.so
(ld): filelist 32 1
(ld): setopt noprogram
(ld): noentry
NOENTRY: There is no entry point.
(ld): i builtin.o
(ld): i compat.o
(ld): i cond.o
(ld): i exec.o
(ld): i glob.o
(ld): i hashtable.o
(ld): i hist.o
(ld): i init.o
(ld): i input.o
(ld): i jobs.o
(ld): i lex.o
(ld): i linklist.o
(ld): i loop.o
(ld): i math.o
(ld): i mem.o
(ld): i module.o
(ld): i options.o
(ld): i params.o
(ld): i parse.o
(ld): i pattern.o
(ld): i prompt.o
(ld): i signals.o
(ld): i signames.o
(ld): i string.o
(ld): i subst.o
(ld): i text.o
(ld): i utils.o
(ld): i watch.o
(ld): lib /usr/lib/libdl.a
(ld): lib /usr/lib/libcurses.a
(ld): lib /usr/lib/libm.a
(ld): lib /usr/lib/libc.a
LIBRARY: Shared object libdl.a[shr.o]: 4 symbols imported.
LIBRARY: Shared object libcurses.a[shr42.o]: 499 symbols imported.
LIBRARY: Shared object libc.a[shr.o]: 2238 symbols imported.
LIBRARY: Shared object libc.a[meth.o]: 2 symbols imported.
LIBRARY: Shared object libc.a[aio.o]: 11 symbols imported.
LIBRARY: Shared object libc.a[pse.o]: 78 symbols imported.
LIBRARY: Shared object libc.a[dl.o]: 4 symbols imported.
LIBRARY: Shared object libc.a[pty.o]: 1 symbols imported.
FILELIST: Number of previously inserted files processed: 32
(ld): resolve
RESOLVE: 2415 of 7455 symbols were kept.
(ld): addgl /usr/lib/glink.o
ADDGL: Glink code added for 149 symbols.
(ld): er full
ER: There are no unresolved symbols.
(ld): mismatch
MISMATCH: No type mismatches exist.
(ld): comprld
COMPRLD: Kept 13424 of 13424 relocation entries.
(ld): origin page 0x10000000 0x20000000
(ld): save SRE .
SAVE: Section sizes = 458528+57512+32212 (0x6FF20+0xE0A8+0x7DD4 hex)
SAVE: Size of TOC: 2380 (0x94C hex)
(ld): rc
RC: Highest return code was 0.
rm -f zsh
LD_RUN_PATH=/usr/local/lib/zsh cc -qlanglvl=ansi -s -o zsh main.o libzsh-4.0.1.so -ldl -lcurses -lm -lc
rm -f rlimits.so
cc -s -G -bexpall -bnoquiet -o rlimits.so rlimits..o -ldl -lcurses -lm -lc
(ld): halt 4
(ld): setopt strip
(ld): setopt expall
(ld): savename rlimits.so
(ld): filelist 5 1
(ld): setopt noprogram
(ld): noentry
NOENTRY: There is no entry point.
(ld): i rlimits..o
(ld): lib /usr/lib/libdl.a
(ld): lib /usr/lib/libcurses.a
(ld): lib /usr/lib/libm.a
(ld): lib /usr/lib/libc.a
LIBRARY: Shared object libdl.a[shr.o]: 4 symbols imported.
LIBRARY: Shared object libcurses.a[shr42.o]: 499 symbols imported.
LIBRARY: Shared object libc.a[shr.o]: 2238 symbols imported.
LIBRARY: Shared object libc.a[meth.o]: 2 symbols imported.
LIBRARY: Shared object libc.a[aio.o]: 11 symbols imported.
LIBRARY: Shared object libc.a[pse.o]: 78 symbols imported.
LIBRARY: Shared object libc.a[dl.o]: 4 symbols imported.
LIBRARY: Shared object libc.a[pty.o]: 1 symbols imported.
FILELIST: Number of previously inserted files processed: 5
(ld): resolve
RESOLVE: 42 of 3520 symbols were kept.
(ld): addgl /usr/lib/glink.o
ADDGL: Glink code added for 9 symbols.
(ld): er full
ld: 0711-318 ERROR: Undefined symbols were found.
The following symbols are in error:
Symbol Inpndx TY CL Source-File(Object-File) OR Import-File{Shared-object}
RLD: Address Section Rld-type Referencing Symbol
----------------------------------------------------------------------------------------------
typtab [56] ER UA rlimits.c(rlimits..o)
00001718 .data R_POS [58] <typtab>
.zwarnnam [84] ER PR rlimits.c(rlimits..o)
000002b4 .text R_RBR [14] <.bin_ulimit>
000004f4 .text R_RBR [14] <.bin_ulimit>
0000051c .text R_RBR [14] <.bin_ulimit>
00000544 .text R_RBR [14] <.bin_ulimit>
00000570 .text R_RBR [14] <.bin_ulimit>
000005b4 .text R_RBR [14] <.bin_ulimit>
000009d4 .text R_RBR [16] <.bin_unlimit>
00000bfc .text R_RBR [16] <.bin_unlimit>
00000c38 .text R_RBR [16] <.bin_unlimit>
00000c54 .text R_RBR [16] <.bin_unlimit>
000010ec .text R_RBR [18] <.bin_limit>
000011d4 .text R_RBR [18] <.bin_limit>
000011f4 .text R_RBR [18] <.bin_limit>
00001210 .text R_RBR [18] <.bin_limit>
00001250 .text R_RBR [18] <.bin_limit>
current_limits [60] ER UA rlimits.c(rlimits..o)
0000172c .data R_POS [62] <current_limits>
limits [64] ER UA rlimits.c(rlimits..o)
00001730 .data R_POS [66] <limits>
.zsetlimit [90] ER PR rlimits.c(rlimits..o)
000004d8 .text R_RBR [14] <.bin_ulimit>
0000061c .text R_RBR [14] <.bin_ulimit>
00000640 .text R_RBR [14] <.bin_ulimit>
00000c80 .text R_RBR [16] <.bin_unlimit>
00001284 .text R_RBR [18] <.bin_limit>
.setlimits [92] ER PR rlimits.c(rlimits..o)
000009ac .text R_RBR [16] <.bin_unlimit>
00000d40 .text R_RBR [18] <.bin_limit>
.deletebuiltins [106] ER PR rlimits.c(rlimits..o)
00001684 .text R_RBR [26] .cleanup_
.addbuiltins [108] ER PR rlimits.c(rlimits..o)
000016cc .text R_RBR [28] .boot_
ER: The return code is 8.
make: The error code from the last command is 8.
Stop.
make: The error code from the last command is 1.
Stop.
make: The error code from the last command is 2.
Stop.
make: The error code from the last command is 1.
Stop.
[Jtheremin% [Keexit
script done on Fri Jun 8 15:21:27 2001
Messages sorted by:
Reverse Date,
Date,
Thread,
Author