zsh-users
 help / color / mirror / code / Atom feed
* AIX-problem: the main module won't link statically
@ 2001-06-08  7:24 Timo Aaltonen
  2001-06-08  7:53 ` Andrej Borsenkow
  0 siblings, 1 reply; 5+ messages in thread
From: Timo Aaltonen @ 2001-06-08  7:24 UTC (permalink / raw)
  To: zsh-users


	Hi!

  I tried to compile zsh-4.0.1 w. AIX-4.3 (cc version 5), but the main
library (/module?) libzsh-4.0.1.so doesn't get in the binary, and when I
try to run it:

Could not load program ./zsh:
        Dependent module libzsh-4.0.1.so could not be loaded.
Could not load module libzsh-4.0.1.so.
Error was: No such file or directory

..and the binary size is only ~1,5kb (and the library is in ~/lib/zsh,
size ~690kb)

It seems that the linker doesn't function properly:

ld  -s -G -bexpall -lc -o libzsh-4.0.1.so  `cat stamp-modobjs` -ldl -lcurses -lm  -lc
ld: 0711-327 WARNING: Entry point not found: __start
ld: 0711-224 WARNING: Duplicate symbol: .getproc
ld: 0711-224 WARNING: Duplicate symbol: .glob
ld: 0711-224 WARNING: Duplicate symbol: glob
ld: 0711-224 WARNING: Duplicate symbol: getproc
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.


I also tried using gcc-2.8.1, but it failed miserably...


_______________/Timo Aaltonen <http://www.hut.fi/~tjaalton>
GSM +358-40-5549 618



^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: AIX-problem: the main module won't link statically
  2001-06-08  7:24 AIX-problem: the main module won't link statically Timo Aaltonen
@ 2001-06-08  7:53 ` Andrej Borsenkow
  2001-06-08  7:59   ` Timo Aaltonen
  0 siblings, 1 reply; 5+ messages in thread
From: Andrej Borsenkow @ 2001-06-08  7:53 UTC (permalink / raw)
  To: Timo Aaltonen, zsh-users

>
>   I tried to compile zsh-4.0.1 w. AIX-4.3 (cc version 5), but the main
> library (/module?) libzsh-4.0.1.so doesn't get in the binary, and when I
> try to run it:
>
> Could not load program ./zsh:
>         Dependent module libzsh-4.0.1.so could not be loaded.
> Could not load module libzsh-4.0.1.so.
> Error was: No such file or directory
>

Have you installed it? Or, better, have you installed it in the same
location as specified when configuring ($prefix/lib/zsh)?

> ..and the binary size is only ~1,5kb (and the library is in ~/lib/zsh,
> size ~690kb)
>

That's correct. Have you configured it with ``configure --prefix=$HOME'' ?
If you just run configure without any arguments zsh expects library in
/usr/local/lib/zsh.

> It seems that the linker doesn't function properly:
>
> ld  -s -G -bexpall -lc -o libzsh-4.0.1.so  `cat stamp-modobjs`
> -ldl -lcurses -lm  -lc
> ld: 0711-327 WARNING: Entry point not found: __start
> ld: 0711-224 WARNING: Duplicate symbol: .getproc
> ld: 0711-224 WARNING: Duplicate symbol: .glob
> ld: 0711-224 WARNING: Duplicate symbol: glob
> ld: 0711-224 WARNING: Duplicate symbol: getproc
> ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
> information.
>

I do not know AIX to decide if these warnings are harmful/harmless.

-andrej


^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: AIX-problem: the main module won't link statically
  2001-06-08  7:53 ` Andrej Borsenkow
@ 2001-06-08  7:59   ` Timo Aaltonen
  2001-06-08  8:10     ` Andrej Borsenkow
  0 siblings, 1 reply; 5+ messages in thread
From: Timo Aaltonen @ 2001-06-08  7:59 UTC (permalink / raw)
  To: zsh-users

On Fri, 8 Jun 2001, Andrej Borsenkow wrote:

> >
> >   I tried to compile zsh-4.0.1 w. AIX-4.3 (cc version 5), but the main
> > library (/module?) libzsh-4.0.1.so doesn't get in the binary, and when I
> > try to run it:
> >
> > Could not load program ./zsh:
> >         Dependent module libzsh-4.0.1.so could not be loaded.
> > Could not load module libzsh-4.0.1.so.
> > Error was: No such file or directory
> >
> 
> Have you installed it? Or, better, have you installed it in the same
> location as specified when configuring ($prefix/lib/zsh)?

I've tried it both installed, and just by running "make check"..

> > ..and the binary size is only ~1,5kb (and the library is in ~/lib/zsh,
> > size ~690kb)
> >
> 
> That's correct. Have you configured it with ``configure --prefix=$HOME'' ?
> If you just run configure without any arguments zsh expects library in
> /usr/local/lib/zsh.

Well, I compiled it for linux and Tru64-UNIX (I used the same
config.modules for all architectures), and they didn't produce that
library (it was linked statically, as configured..).

And yes, I did run configure with the prefix-stuff.

> > It seems that the linker doesn't function properly:
> >
> > ld  -s -G -bexpall -lc -o libzsh-4.0.1.so  `cat stamp-modobjs`
> > -ldl -lcurses -lm  -lc
> > ld: 0711-327 WARNING: Entry point not found: __start
> > ld: 0711-224 WARNING: Duplicate symbol: .getproc
> > ld: 0711-224 WARNING: Duplicate symbol: .glob
> > ld: 0711-224 WARNING: Duplicate symbol: glob
> > ld: 0711-224 WARNING: Duplicate symbol: getproc
> > ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
> > information.
> >
> 
> I do not know AIX to decide if these warnings are harmful/harmless.

Me neither.. maybe I should poke the guy here who does =)


_______________/Timo Aaltonen <http://www.hut.fi/~tjaalton>
GSM +358-40-5549 618


^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: AIX-problem: the main module won't link statically
  2001-06-08  7:59   ` Timo Aaltonen
@ 2001-06-08  8:10     ` Andrej Borsenkow
  2001-06-08  8:28       ` Timo Aaltonen
  0 siblings, 1 reply; 5+ messages in thread
From: Andrej Borsenkow @ 2001-06-08  8:10 UTC (permalink / raw)
  To: Timo Aaltonen, zsh-users


>
> > >
> > >   I tried to compile zsh-4.0.1 w. AIX-4.3 (cc version 5), but the main
> > > library (/module?) libzsh-4.0.1.so doesn't get in the binary,
> and when I
> > > try to run it:
> > >
> > > Could not load program ./zsh:
> > >         Dependent module libzsh-4.0.1.so could not be loaded.
> > > Could not load module libzsh-4.0.1.so.
> > > Error was: No such file or directory
> > >
> >
> > Have you installed it? Or, better, have you installed it in the same
> > location as specified when configuring ($prefix/lib/zsh)?
>
> I've tried it both installed, and just by running "make check"..
>

make check does not work in this case, known problem in 4.0.1. Should be
fixed in 4.0.2. "installed" you mean "make install"?

>
> Well, I compiled it for linux and Tru64-UNIX (I used the same
> config.modules for all architectures), and they didn't produce that
> library (it was linked statically, as configured..).
>

It depends on the system. Some systems need extra library some not. Try
'configure --disable-dynamic' to turn dynamic loading off.

> >
> > I do not know AIX to decide if these warnings are harmful/harmless.
>
> Me neither.. maybe I should poke the guy here who does =)
>

Yes. AFAIK currently none of zsh developers works on AIX. Oliver, could you
comment on this?

-andrej


^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: AIX-problem: the main module won't link statically
  2001-06-08  8:10     ` Andrej Borsenkow
@ 2001-06-08  8:28       ` Timo Aaltonen
  0 siblings, 0 replies; 5+ messages in thread
From: Timo Aaltonen @ 2001-06-08  8:28 UTC (permalink / raw)
  To: zsh-users

On Fri, 8 Jun 2001, Andrej Borsenkow wrote:

> > > >   I tried to compile zsh-4.0.1 w. AIX-4.3 (cc version 5), but the main
> > > > library (/module?) libzsh-4.0.1.so doesn't get in the binary,
> > and when I
> > > > try to run it:
> > > >
> > > > Could not load program ./zsh:
> > > >         Dependent module libzsh-4.0.1.so could not be loaded.
> > > > Could not load module libzsh-4.0.1.so.
> > > > Error was: No such file or directory
> > > >
> > >
> > > Have you installed it? Or, better, have you installed it in the same
> > > location as specified when configuring ($prefix/lib/zsh)?
> >
> > I've tried it both installed, and just by running "make check"..
> >
> 
> make check does not work in this case, known problem in 4.0.1. Should be
> fixed in 4.0.2. "installed" you mean "make install"?

Yes, installed as specified in prefix..

> > Well, I compiled it for linux and Tru64-UNIX (I used the same
> > config.modules for all architectures), and they didn't produce that
> > library (it was linked statically, as configured..).
> >
> 
> It depends on the system. Some systems need extra library some not. Try
> 'configure --disable-dynamic' to turn dynamic loading off.

It works statically (test nr C02 failed though).. but it is weird, if
dynamic loading would work, that it couldn't link that library (libzsh..)
in the binary as configured...

> > > I do not know AIX to decide if these warnings are harmful/harmless.
> >
> > Me neither.. maybe I should poke the guy here who does =)
> >
> 
> Yes. AFAIK currently none of zsh developers works on AIX. Oliver, could you
> comment on this?

I heard that it could be possible to use gnu-linker instead of AIX-one...


_______________/Timo Aaltonen <http://www.hut.fi/~tjaalton>
GSM +358-40-5549 618



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2001-06-08  8:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-06-08  7:24 AIX-problem: the main module won't link statically Timo Aaltonen
2001-06-08  7:53 ` Andrej Borsenkow
2001-06-08  7:59   ` Timo Aaltonen
2001-06-08  8:10     ` Andrej Borsenkow
2001-06-08  8:28       ` Timo Aaltonen

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).