Bug 120824 - net/ekiga doesn't build with threaded perl.
Summary: net/ekiga doesn't build with threaded perl.
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: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-18 18:40 UTC by Bernd Strauß
Modified: 2008-04-14 15:56 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 Bernd Strauß 2008-02-18 18:40:01 UTC
The build process of the net/ekiga port stops with a segmentation fault.

[...]
file=`echo zh_TW | sed 's,.*/,,'`.gmo \
	  && rm -f $file && /usr/local/bin/msgfmt -o $file zh_TW.po
gmake[2]: Leaving directory `/usr/ports/net/ekiga/work/ekiga-2.0.11/po'
gmake[2]: Entering directory `/usr/ports/net/ekiga/work/ekiga-2.0.11'
LC_ALL=C ./intltool-merge -d -u -c ./po/.intltool-merge-cache ./po ekiga.desktop.in ekiga.desktop
Generating and caching the translation database
Segmentation fault (core dumped)
gmake[2]: *** [ekiga.desktop] Error 139
gmake[2]: Leaving directory `/usr/ports/net/ekiga/work/ekiga-2.0.11'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/ports/net/ekiga/work/ekiga-2.0.11'
gmake: *** [all] Error 2
*** Error code 2

Some analysis shows that the program that causes the segfault is
the perl script "intltool-merge" which is part of the net/ekiga
distribution. Specifically, the fault occurs within the
"create_translation_database" subroutine when the program
processes the *.po files in the po/ subdirectory. It turns out
that the perl script chokes on the "dz" language (dz.po).
All others work fine.

Note: Using non-threaded perl is not an option because some
ports (e.g. p5-sdl-1.20.3_6) require threads.

Fix: 

Workaround: Skip building the "dz" language.

cd /usr/ports/net/ekiga
make patch
rm work/ekiga-2.0.11/po/dz.po
sed -i '.old' -e '/^dz$/d' work/ekiga-2.0.11/po/LINGUAS
make
How-To-Repeat: (Re-)build perl with the threaded option turned on. Then type:

cd /usr/ports/net/ekiga
make
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2008-02-18 18:40:07 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Comment 2 thunderbird60 2008-03-03 18:19:10 UTC
Hi.
Sorry, but this workaround doesn't work at all on my system. I tried to 
rebuid perl - with and without threads. I tried to build ekiga with and 
without the patch.
I still get this error:
devices/fakevideoinput.cpp:336: error: 'frameTimeError' was not declared 
in this scope
devices/fakevideoinput.cpp:338: error: 'msBetweenFrames' was not 
declared in this scope
devices/fakevideoinput.cpp:343: error: 'previousFrameTime' was not 
declared in this scope
devices/fakevideoinput.cpp:344: error: 'frameTimeError' was not declared 
in this scope
devices/fakevideoinput.cpp:344: error: 'msBetweenFrames' was not 
declared in this scope
gmake[3]: *** [fakevideoinput.o] Error 1
gmake[3]: Leaving directory `/work/a/ports/net/ekiga/work/ekiga-2.0.11/src'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/work/a/ports/net/ekiga/work/ekiga-2.0.11/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/work/a/ports/net/ekiga/work/ekiga-2.0.11'
gmake: *** [all] Error 2
*** Error code 2

Stop in /a/ports/net/ekiga.

My system:
Sempron 2600+, FreeBSD 6.2.

Alexei.
Comment 3 dfilter service freebsd_committer freebsd_triage 2008-03-06 23:00:07 UTC
mi          2008-03-06 22:59:52 UTC

  FreeBSD ports repository

  Modified files:
    net/ekiga            Makefile 
  Added files:
    net/ekiga/files      patch-src-devices-fakevideoinput 
                         patch-ubuntu 
  Log:
  Attempt to fix the PRs below caused by PWLib getting upgraded under our
  feet. While here, add a small patch found in Ubuntu and Debian ports.
  
  PR:     ports/121346
  PR:     ports/120824
  PR:     ports/121401
  
  Revision  Changes    Path
  1.75      +1 -1      ports/net/ekiga/Makefile
  1.1       +39 -0     ports/net/ekiga/files/patch-src-devices-fakevideoinput (new)
  1.1       +15 -0     ports/net/ekiga/files/patch-ubuntu (new)
_______________________________________________
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 4 Pietro Cerutti freebsd_committer freebsd_triage 2008-04-14 15:56:09 UTC
State Changed
From-To: feedback->closed

It can be built now.