Bug 122113 - fail to start games/frozenbubble on 7-STABLE and fix
Summary: fail to start games/frozenbubble on 7-STABLE and fix
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Felippe de Meirelles Motta
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-26 12:00 UTC by Henry Hu
Modified: 2008-06-19 08:28 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Henry Hu 2008-03-26 12:00:01 UTC
After installing games/frozenbubble, I can't start it. It says that "Bad System Call".
There's a fix in the pkg-message, but that's not suitable for FreeBSD 7.
I found that the problem is the function sem_init in libc.
I've written a very simple C program, just used sem_init, and it also says "Bad System Call".
The last line of ktrace before SIGSYS said that "Function not implemented".
It seems like that it's caused by syscall ksem_init, but I don't know more.
But if I compile with -pthread, there's no problem at all.
So I started frozen-bubble successedly with
env LD_PRELOAD=/usr/lib/libpthread.so frozen-bubble
So please add this into pkg-message. This workaround is in fact the same as the one in the pkg-message, but changed for FreeBSD 7.

Fix: 

env LD_PRELOAD=/usr/lib/libpthread.so frozen-bubble
How-To-Repeat: 1. Install frozenbubble on FreeBSD 7-STABLE
2. Start it
Comment 1 Felippe de Meirelles Motta freebsd_committer freebsd_triage 2008-05-17 18:42:54 UTC
Responsible Changed
From-To: freebsd-ports-bugs->lippe

I'll take it.
Comment 2 Felippe de Meirelles Motta freebsd_committer freebsd_triage 2008-05-17 19:53:08 UTC
Hi Submitter,

If you set LD_PRELOAD="/usr/lib/libpthread.so frozen-bubble", you
probably will works too, sure ? Please, if it works to you, I think
that I can add instructions to user always add this configs when
install this port.

What do you think ?

-- 
lippe@FreeBSD.org
Felippe de Meirelles Motta
Comment 3 Felippe de Meirelles Motta freebsd_committer freebsd_triage 2008-05-17 21:02:11 UTC
State Changed
From-To: open->feedback

Ask for submitter fix.
Comment 4 Henry Hu 2008-05-18 08:11:34 UTC
Hi lippe,

Yes, env LD_PRELOAD=/usr/lib/libpthread.so frozen-bubble works. Please
change pkg-message to include this, or change something else (for example, a
wrapper) to make it automatic.

In fact, I think that this is a problem with the compiling flags, that
frozenbubble should be compiled with -pthread. That should be a better fix.

Cheers,
Henry
Comment 5 dfilter service freebsd_committer freebsd_triage 2008-05-24 07:04:28 UTC
edwin       2008-05-24 06:04:24 UTC

  FreeBSD ports repository

  Modified files:
    games/frozenbubble   pkg-message 
  Log:
  Add information about a pre-load with FreeBSD version greater than 7.
  
  PR:             ports/122113
  Submitted by:   Henry Hu <henry.hu.sh@gmail.com>
  Approved by:    maintainer timeout
  
  Revision  Changes    Path
  1.2       +4 -0      ports/games/frozenbubble/pkg-message
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 6 edwin 2008-05-24 07:06:03 UTC
> In fact, I think that this is a problem with the compiling flags, that
> frozenbubble should be compiled with -pthread. That should be a better fix.

If you can tell me how to compile it with -pthread or wich file has
to be changed, then I can include it. Right now I'm happily confused
about the what or where or how.

Edwin

-- 
Edwin Groothuis      |            Personal website: http://www.mavetju.org
edwin@mavetju.org    |              Weblog: http://www.mavetju.org/weblog/
Comment 7 Alex Kozlov 2008-06-15 22:21:02 UTC
Hi

>> In fact, I think that this is a problem with the compiling flags, that
>> frozenbubble should be compiled with -pthread. That should be a better fix.
>If you can tell me how to compile it with -pthread or wich file has
>to be changed, then I can include it. Right now I'm happily confused
>about the what or where or how.
See http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/120983

In short, this is problem with perl-sdl and threaded perl.


--
Adios
Comment 8 Felippe de Meirelles Motta freebsd_committer freebsd_triage 2008-06-19 05:17:11 UTC
State Changed
From-To: feedback->open

Feedback has received.
Comment 9 Felippe de Meirelles Motta freebsd_committer freebsd_triage 2008-06-19 08:28:09 UTC
State Changed
From-To: open->closed

Fix was described in the pkg-message output. Thanks!