Mailing List Archive

p7zip segfaults only when statically linked
I run a ~x86 system, most things compiled with gcc-3.4.

Recently I've emerged a new version of p7zip and it segfaults every
time I try to run it.
I looked at the makefile and saw that p7zip was statically linked (-static).
So I tried to compile it dynamically (w/o -static) and ... bam! , it works.

The makefile shows its linked only againts threads library.
I've got glibc compiled with nptlonly USE flag.

What could this segfault possibly mean?

Im trying to get the darn thing compiled with debug symbols but no
luck so far ...
The source is pretty strange, and I'm no guru over here.

PS: Shouldn't the ebuild make use of the 'static' USE flag anyway?

--
Regards
Karol Krzak

--
gentoo-user@gentoo.org mailing list
Re: p7zip segfaults only when statically linked [ In reply to ]
On Tue, 26 Oct 2004 19:58:05 +0200, krzaq <krzakers@gmail.com> wrote:
>
> <SNIP>
>
> PS: Shouldn't the ebuild make use of the 'static' USE flag anyway?
>

In general that's the case, but packages don't necesarially have to
pay attention to USE flags. Do an emerge -pv p7zip and it will show
you what USE flags it honors. It's very possible it doesn't honor the
-static USE flag. (I don't remember seeing many packages that DO use
it).

-Andy

--
gentoo-user@gentoo.org mailing list
Re: p7zip segfaults only when statically linked [ In reply to ]
On вт, 2004-10-26 at 14:03 -0400, Andy Herrman wrote:
> On Tue, 26 Oct 2004 19:58:05 +0200, krzaq <krzakers@gmail.com> wrote:
> >
> > <SNIP>
> >
> > PS: Shouldn't the ebuild make use of the 'static' USE flag anyway?
> >
>
> In general that's the case, but packages don't necesarially have to
> pay attention to USE flags. Do an emerge -pv p7zip and it will show
> you what USE flags it honors. It's very possible it doesn't honor the
> -static USE flag. (I don't remember seeing many packages that DO use
> it).
>
> -Andy
>
> --
> gentoo-user@gentoo.org mailing list
>
Hi,
Just emerged p7zip and it doesn't have any 'static' USE-flag, by memory
just -doc.
It works for me - on command line of course - tested it.
HTH
--
Rumen Yotov <rumen_yotov@dir.bg>
Re: p7zip segfaults only when statically linked [ In reply to ]
On Tue, 26 Oct 2004 21:31:24 +0300, Rumen Yotov <rumen_yotov@dir.bg> wrote:
> On вт, 2004-10-26 at 14:03 -0400, Andy Herrman wrote:
>
>
> Hi,
> Just emerged p7zip and it doesn't have any 'static' USE-flag, by memory
> just -doc.
yup.
> It works for me - on command line of course - tested it.
Just downloaded a static binary from the project homepage and it works.
That makes me wonder even more ..
Is my system broken? Should I reemerge glibc or gcc?
The thing is C++ mainly and it does use libstdc++ ...

Some C/C++ guru shade some light please :)


--
Regards
Karol Krzak

--
gentoo-user@gentoo.org mailing list