[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Question concerning static linking
From: |
Rudolf Schubert |
Subject: |
Question concerning static linking |
Date: |
Fri, 1 Mar 2024 18:22:14 +0100 (CET) |
Hi,
for my 'big squash program' I'm doing static linking like this:
gm2 -fiso -fsoft-check-all squash1.mod ctv2.o unix.o -o squash1 -lc -lcrypt
-static
This was/is working fine so far but just now I noticed this message:
/usr/bin/ld: .../lib64/libm2pim.a(wrapc.o):
in function `m2pim_wrapc_getnameuidgid':
..../libgm2/libm2pim/wrapc.cc:178:(.text+0x14d): warning:
Using 'getpwnam' in statically linked applications requires at
runtime the shared libraries from the glibc version used for linking
I've truncated the message a bit for better readability.
So now my question is: does this mean that my statically linked application
is not really static at all? My intention was to build a statically
linked application for the very reason that the application can run
'directly on the kernel', i.e. without the need for any further
libraries just using some syscalls. What is special with function
'getpwnam' (and also for 'getpwuid', where I get a similar message)
so it needs some shared library? Is this a general limitation with the
glibc or is this some 'GM2 specialty' or is there still some other reason?
BR
Rudolf
--
Rudolf Schubert \
Kirchstr. 18a \ mailto:rudolf@muc.de
82054 Sauerlach > http://www.dose.muc.de
Deutschland / (alpine archkiste)
Tel. 08104/908311 /
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Question concerning static linking,
Rudolf Schubert <=