Hi.
openSUSE constantly reduces the number of static libraries. From a maintenance and
security point of view, I understand this perfectly. But if you have to produce binaries
for your own projects, linking with static libraries really avoids lots of troubles for your
users.
That said:
openSUSE 12.1 (64 bit) has no static 32bit versions of C lib etc. anymore.
I would expect a package glibc-devel-static-32bit named to contain /usr/lib/libc.a etc.
But I can only find the package glibc-devel-static containing /usr/lib64/libc.a etc.
Conclusion:
Please consider providing a package glibc-devel-static-32bit for openSUSE 12.1 64bit.
Sven
On 2011-11-23 11:16, sven1999 wrote:
> Please consider providing a package glibc-devel-static-32bit for
> openSUSE 12.1 64bit.
WE can not. This forum is “users helping users”. We are not the devs.
You can try the factory mail list, or a bugzilla.
–
Cheers / Saludos,
Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)
Am 23.11.2011 11:28, schrieb Carlos E. R.:
> On 2011-11-23 11:16, sven1999 wrote:
>
>> Please consider providing a package glibc-devel-static-32bit for
>> openSUSE 12.1 64bit.
>
> WE can not. This forum is “users helping users”. We are not the devs.
>
> You can try the factory mail list, or a bugzilla.
>
If you want to create a program with the c lib linked static you use the
compiler switch static.
#include <stdio.h>
int main(){
printf("Hello
");
return 0;
}
as test.c
gcc test.c
ldd a.out
linux-vdso.so.1 => (0x00007fff51ad9000)
libc.so.6 => /lib64/libc.so.6 (0x00007fe4d6e0b000)
/lib64/ld-linux-x86-64.so.2 (0x00007fe4d7178000)
gcc -static test.c
ldd a.out
not a dynamic executable
–
PC: oS 11.4 (dual boot 12.1) 64 bit | Intel Core i7-2600@3.40GHz | KDE
4.6.0 | GeForce GT 420 | 16GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.7.3 |
nVidia ION | 3GB Ram
Thanks Martin. My point is: there is no libc.a which gcc/ld could use in the described setting.
Yes, sorry for the noise, but many users are programmers and must solve similar problems.
Maybe some user knows where to find the sought package 
sven1999 wrote:
> Yes, sorry for the noise, but many users are programmers and must solve
> similar problems.
> Maybe some user knows where to find the sought package 
The concentration of users who are programmers is greater in the
Programming-Scripting forum. Which would be a better place for a
question about programming and libraries, IMHO.
Am 23.11.2011 13:34, schrieb Dave Howorth:
> sven1999 wrote:
>> Yes, sorry for the noise, but many users are programmers and must solve
>> similar problems.
>> Maybe some user knows where to find the sought package 
>
> The concentration of users who are programmers is greater in the
> Programming-Scripting forum. Which would be a better place for a
> question about programming and libraries, IMHO.
Install glibc-devel that’s it (I misunderstood to original question
somehow and thought that a programmer always has the -devel packages
installed)
rpm -ql glibc-devel | grep libc.a
/usr/lib64/libc.a
–
PC: oS 11.4 (dual boot 12.1) 64 bit | Intel Core i7-2600@3.40GHz | KDE
4.6.0 | GeForce GT 420 | 16GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.7.3 |
nVidia ION | 3GB Ram
OK, I have moved to the suggested forum.
/usr/lib64/libc.a is there, sure.
But I am building 32bit binaries and hence was surprised that starting with openSUSE 12.1 the 32bit developer packages have only shared (and not static) libraries.
On 2011-11-23 13:56, sven1999 wrote:
>
> /usr/lib64/libc.a is there, sure.
> But I am building 32bit binaries and hence was surprised that starting
> with openSUSE 12.1 the 32bit developer packages have only shared (and
> not static) libraries.
If the 64 bit package has it, and the 32 bit package has it not, then you
can open a bugzilla immediately.
–
Cheers / Saludos,
Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)
Am 23.11.2011 14:13, schrieb Carlos E. R.:
> On 2011-11-23 13:56, sven1999 wrote:
>>
>> /usr/lib64/libc.a is there, sure.
>> But I am building 32bit binaries and hence was surprised that starting
>> with openSUSE 12.1 the 32bit developer packages have only shared (and
>> not static) libraries.
>
> If the 64 bit package has it, and the 32 bit package has it not, then you
> can open a bugzilla immediately.
>
martinh@ganymed:~/tmp> rpm -ql glibc-devel-32bit | grep libc.a
/usr/lib/libc.a
this is on 11.4 please check the same package for 12.1.
–
PC: oS 11.4 (dual boot 12.1) 64 bit | Intel Core i7-2600@3.40GHz | KDE
4.6.0 | GeForce GT 420 | 16GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.7.3 |
nVidia ION | 3GB Ram
Am 23.11.2011 14:45, schrieb Martin Helm:
>
> martinh@ganymed:~/tmp> rpm -ql glibc-devel-32bit | grep libc.a
> /usr/lib/libc.a
>
> this is on 11.4 please check the same package for 12.1.
>
It is not there in 12.1 please see my answer to your other thread and
sorry for me being so grumpy today, I will take a timeout.
–
PC: oS 11.4 (dual boot 12.1) 64 bit | Intel Core i7-2600@3.40GHz | KDE
4.6.0 | GeForce GT 420 | 16GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.7.3 |
nVidia ION | 3GB Ram