Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 127026 - Requesting a Second Life client ebuild (secondlife)
Summary: Requesting a Second Life client ebuild (secondlife)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Gentoo Games
URL: http://secondlife.com/community/linux...
Whiteboard:
Keywords:
: 163521 185632 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-03-20 18:06 UTC by Lisa Seelye (RETIRED)
Modified: 2009-05-27 00:21 UTC (History)
32 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
secondlife-1.10.1.0.ebuild (secondlife-1.10.1.0.ebuild,1.57 KB, text/plain)
2006-05-27 10:06 UTC, Paul Bredbury
Details
secondlife-1.10.5.1.ebuild (secondlife-1.10.5.1.ebuild,1.84 KB, text/plain)
2006-07-03 15:36 UTC, Paul Bredbury
Details
secondlife-1.10.5.1.ebuild (secondlife-1.10.5.1.ebuild,2.05 KB, text/plain)
2006-07-03 17:57 UTC, Paul Bredbury
Details
secondlife-1.11.0.11.ebuild (secondlife-1.11.0.11.ebuild,2.05 KB, text/plain)
2006-07-25 12:36 UTC, Conrad Kostecki
Details
secondlife-1.13.0.0.ebuild (secondlife-1.13.0.0.ebuild,2.25 KB, text/plain)
2006-11-12 23:00 UTC, Triffid Hunter
Details
secondlife-20070108c.ebuild(cannot install) (secondlife-20070108c.ebuild,1.28 KB, text/plain)
2007-01-09 15:16 UTC, MATSUU Takuto (RETIRED)
Details
files/secondlife-20070108c-gentoo.patch (secondlife-20070108c-gentoo.patch,9.10 KB, patch)
2007-01-09 15:17 UTC, MATSUU Takuto (RETIRED)
Details | Diff
dev-libs/xmlrpc-epi-0.51.ebuild (depends) (xmlrpc-epi-0.51.ebuild,517 bytes, text/plain)
2007-01-09 15:19 UTC, MATSUU Takuto (RETIRED)
Details
xmlrpc-epi/files/xmlrpc-epi-0.51-64bit-fixes.patch(from Mandriva) (xmlrpc-epi-0.51-64bit-fixes.patch,3.38 KB, patch)
2007-01-09 15:20 UTC, MATSUU Takuto (RETIRED)
Details | Diff
xmlrpc-epi/files/xmlrpc-epi-0.51-gcc4.patch(from Mandriva) (xmlrpc-epi-0.51-gcc4.patch,413 bytes, patch)
2007-01-09 15:21 UTC, MATSUU Takuto (RETIRED)
Details | Diff
dev-libs/ELFIO-1.0.3.ebuild (ELFIO-1.0.3.ebuild,446 bytes, text/plain)
2007-01-09 19:12 UTC, Aidan Thornton
Details
media-libs/openjpeg-1.1.ebuild (openjpeg-1.1.ebuild,530 bytes, text/plain)
2007-01-09 20:52 UTC, Aidan Thornton
Details
secondlife-20070108c.ebuild (secondlife-20070108c.ebuild,2.27 KB, text/plain)
2007-01-09 21:42 UTC, Aidan Thornton
Details
secondlife-20070108c-gentoo.patch (secondlife-20070108c-gentoo.patch,6.88 KB, patch)
2007-01-09 21:44 UTC, Aidan Thornton
Details | Diff
slviewer-src-20070108c-datapath.patch (slviewer-src-20070108c-datapath.patch,914 bytes, text/plain)
2007-01-10 14:02 UTC, Aidan Thornton
Details
slviewer-llfont.patch (slviewer-llfont.patch,307 bytes, text/plain)
2007-01-10 14:03 UTC, Aidan Thornton
Details
secondlife-20070108c.ebuild (secondlife-20070108c.ebuild,2.38 KB, text/plain)
2007-01-10 14:08 UTC, Aidan Thornton
Details
secondlife-20070108c.ebuild (secondlife-20070108c.ebuild,2.79 KB, text/plain)
2007-01-11 14:09 UTC, MATSUU Takuto (RETIRED)
Details
slviewer-src-20070108c-datapath.patch (slviewer-src-20070108c-datapath.patch,947 bytes, patch)
2007-01-11 14:10 UTC, MATSUU Takuto (RETIRED)
Details | Diff
secondlife-bin-1.13.2.5.ebuild (secondlife-bin-1.13.2.5.ebuild,1.96 KB, text/plain)
2007-01-11 14:11 UTC, MATSUU Takuto (RETIRED)
Details
openjpeg/files/openjpeg-1.1-64bit-fixes.patch (openjpeg-1.1-64bit-fixes.patch,270 bytes, patch)
2007-01-13 19:36 UTC, Guido
Details | Diff
media-libs/openjpeg/openjpeg-1.1.ebuild (openjpeg-1.1.ebuild,617 bytes, text/plain)
2007-01-13 19:38 UTC, Guido
Details
media-libs/openjpeg/openjpeg-1.1.ebuild (openjpeg-1.1.ebuild,658 bytes, text/plain)
2007-01-13 19:49 UTC, Guido
Details
openjpeg-1.1.ebuild (openjpeg-1.1.ebuild,718 bytes, text/plain)
2007-01-14 04:59 UTC, MATSUU Takuto (RETIRED)
Details
secondlife-bin-1.13.1.6.ebuild (secondlife-bin-1.13.1.6.ebuild,1.98 KB, text/plain)
2007-01-14 05:20 UTC, MATSUU Takuto (RETIRED)
Details
secondlife-bin-1.13.2.11.ebuild (secondlife-bin-1.13.2.11.ebuild,1.98 KB, text/plain)
2007-01-17 20:11 UTC, Guido
Details
secondlife-bin-1.13.2.12.ebuild (secondlife-bin-1.13.2.12.ebuild,1.98 KB, text/plain)
2007-01-20 10:51 UTC, Guido
Details
secondlife-1.13.2.12.ebuild (secondlife-1.13.2.12.ebuild,2.90 KB, text/plain)
2007-01-20 15:32 UTC, MATSUU Takuto (RETIRED)
Details
files/secondlife-1.13.2.12-gentoo.patch (secondlife-1.13.2.12-gentoo.patch,7.10 KB, patch)
2007-01-20 15:33 UTC, MATSUU Takuto (RETIRED)
Details | Diff
Binary "First look" version (secondlife-bin-1.13.2.56900.ebuild,1.99 KB, text/plain)
2007-01-20 16:18 UTC, Bernard Cafarelli
Details
secondlife-bin-1.13.2.56900.ebuild (secondlife-bin-1.13.2.56900.ebuild,2.00 KB, text/plain)
2007-01-20 18:07 UTC, Bernard Cafarelli
Details
files/secondlife-1.13.2.12-llfloatereditui.patch (secondlife-1.13.2.12-llfloatereditui.patch,395 bytes, patch)
2007-01-20 22:29 UTC, Guido
Details | Diff
files/secondlife-1.13.2.12-lltexlayer.patch (secondlife-1.13.2.12-lltexlayer.patch,529 bytes, patch)
2007-01-20 22:30 UTC, Guido
Details | Diff
files/secondlife-1.13.2.12-llviewermenu.patch (secondlife-1.13.2.12-llviewermenu.patch,1.37 KB, patch)
2007-01-20 22:31 UTC, Guido
Details | Diff
files/secondlife-1.13.2.12-lscript_library.patch (secondlife-1.13.2.12-lscript_library.patch,560 bytes, patch)
2007-01-20 22:34 UTC, Guido
Details | Diff
secondlife-1.13.2.12.ebuild-r1 (secondlife-1.13.2.12.ebuild,3.09 KB, text/plain)
2007-01-20 22:36 UTC, Guido
Details
slviewer-src-20070108c-no_fmod.patch (slviewer-src-20070108c-no_fmod.patch,1.90 KB, patch)
2007-01-26 12:56 UTC, Julien Enche
Details | Diff
secondlife-bin-1.13.2.15.ebuild (secondlife-bin-1.13.2.15.ebuild,1.98 KB, text/plain)
2007-01-26 19:27 UTC, Guido
Details
openjpeg-1.1.ebuild (openjpeg-1.1.ebuild,820 bytes, text/plain)
2007-02-19 14:02 UTC, MATSUU Takuto (RETIRED)
Details
openjpeg/files/OPJ_limit_tags_for_decode.patch (OPJ_limit_tags_for_decode.patch,6.82 KB, patch)
2007-02-19 14:03 UTC, MATSUU Takuto (RETIRED)
Details | Diff
secondlife-1.13.3.58018.ebuild (secondlife-1.13.3.58018.ebuild,2.83 KB, text/plain)
2007-02-19 14:05 UTC, MATSUU Takuto (RETIRED)
Details
secondlife/files/secondlife-1.13.2.15-gentoo.patch (secondlife-1.13.2.15-gentoo.patch,6.77 KB, patch)
2007-02-19 14:07 UTC, MATSUU Takuto (RETIRED)
Details | Diff
secondlife/files/secondlife-1.13.3.58018-no_fmod.patch (secondlife-1.13.3.58018-no_fmod.patch,1.12 KB, patch)
2007-02-19 14:07 UTC, MATSUU Takuto (RETIRED)
Details | Diff
secondlife/files/llimagej2coj_bug_fixes.patch (llimagej2coj_bug_fixes.patch,4.40 KB, patch)
2007-02-19 14:08 UTC, MATSUU Takuto (RETIRED)
Details | Diff
Let xmlrpc-epi use the installed version of expat (xmlrpc-epi-0.51-expat.patch,1.42 KB, patch)
2007-02-19 15:33 UTC, Guido
Details | Diff
secondlife/files/opensecondlife-svn41.patch (opensecondlife-svn41.patch,635 bytes, patch)
2007-02-19 15:34 UTC, MATSUU Takuto (RETIRED)
Details | Diff
xmlrpc-epi-0.51-r1.ebuild (xmlrpc-epi-0.51-r1.ebuild,663 bytes, text/plain)
2007-02-19 15:35 UTC, Guido
Details
xmlrpc-epi-0.51.ebuild (xmlrpc-epi-0.51.ebuild,642 bytes, text/plain)
2007-02-19 15:37 UTC, MATSUU Takuto (RETIRED)
Details
xmlrpc-epi-0.51-expat.patch (xmlrpc-epi-0.51-expat.patch,1.42 KB, patch)
2007-02-19 15:37 UTC, Guido
Details | Diff
xmlrpc-epi/files/xmlrpc-epi-0.51-secondlife.patch (xmlrpc-epi-0.51-secondlife.patch,364 bytes, patch)
2007-02-19 15:38 UTC, MATSUU Takuto (RETIRED)
Details | Diff
xmlrpc-epi/files/xmlrpc-epi-0.51-expat.patch (xmlrpc-epi-0.51-expat.patch,2.87 KB, patch)
2007-02-19 15:38 UTC, MATSUU Takuto (RETIRED)
Details | Diff
ELFIO-1.0.3.ebuild (ELFIO-1.0.3.ebuild,734 bytes, text/plain)
2007-02-19 15:40 UTC, MATSUU Takuto (RETIRED)
Details
xmlrpc-epi-0.51-expat.patch (xmlrpc-epi-0.51-expat.patch,2.05 KB, patch)
2007-02-19 21:28 UTC, Guido
Details | Diff
xmlrpc-epi-0.51-r1.ebuild (xmlrpc-epi-0.51-r1.ebuild,707 bytes, text/plain)
2007-02-19 21:30 UTC, Guido
Details
xmlrpc-epi-0.51-expat.patch (xmlrpc-epi-0.51-expat.patch,2.05 KB, patch)
2007-02-28 07:39 UTC, Guido
Details | Diff
openjpeg-1.1.1-Makefile.patch (openjpeg-1.1.1-Makefile.patch,261 bytes, patch)
2007-02-28 07:40 UTC, Guido
Details | Diff
openjpeg-1.1.1.ebuild (openjpeg-1.1.1.ebuild,792 bytes, text/plain)
2007-02-28 07:42 UTC, Guido
Details
secondlife-1.13.3.59036.ebuild (secondlife-1.13.3.59036.ebuild,2.95 KB, text/plain)
2007-03-18 14:00 UTC, Edoardo Liverani
Details
files/secondlife-1.13.3.59036-gentoo.patch (secondlife-1.13.3.59036-gentoo.patch,6.71 KB, patch)
2007-03-18 14:15 UTC, Edoardo Liverani
Details | Diff
secondlife-1.13.3.59315.ebuild (secondlife-1.13.3.59315.ebuild,2.85 KB, text/plain)
2007-03-18 15:38 UTC, MATSUU Takuto (RETIRED)
Details
files/secondlife-1.13.3.59315-gentoo.patch (secondlife-1.13.3.59315-gentoo.patch,7.03 KB, patch)
2007-03-18 15:39 UTC, MATSUU Takuto (RETIRED)
Details | Diff
files/secondlife-1.13.3.2-llimagej2coj_debug.patch (secondlife-1.13.3.2-llimagej2coj_debug.patch,3.71 KB, text/plain)
2007-03-18 15:39 UTC, MATSUU Takuto (RETIRED)
Details
files/secondlife-1.13.3.59315-no_fmod.patch (secondlife-1.13.3.59315-no_fmod.patch,1.12 KB, patch)
2007-03-18 15:40 UTC, MATSUU Takuto (RETIRED)
Details | Diff
Disable -Werror in cflags (sl-cflags.diff,468 bytes, patch)
2007-11-04 14:57 UTC, Hanno Böck
Details | Diff
xmlrpc-epi ebuild compatible with xmlrpc-c (xmlrpc-epi-0.51-r2.ebuild,1.29 KB, text/plain)
2008-02-03 22:07 UTC, Dale Glass
Details
updated ebuild for version 1.18.5.3 (secondlife-1.18.5.3.ebuild,5.18 KB, text/plain)
2008-05-04 05:51 UTC, dhubbard
Details
new patch goes with secondlife-1.18.5.3.ebuild (see comment #153) (secondlife-1.18.5.3-gentoo.patch,5.49 KB, patch)
2008-05-04 05:54 UTC, dhubbard
Details | Diff
new patch goes with secondlife-1.18.5.3.ebuild (see comment #153) (secondlife-vwr-3813-gtk-api-change-1.18.6.1.patch,488 bytes, patch)
2008-05-04 05:54 UTC, dhubbard
Details | Diff
linden labs' mozlib2 required for secondlife-1.19.1.84244.ebuild (llmozlib-svn-2.13.ebuild,1.65 KB, text/plain)
2008-05-08 00:52 UTC, dhubbard
Details
put in llmozlib/files - it fixes broken =gcc-3* detection (llmozlib-svn-gentoo.patch,2.17 KB, patch)
2008-05-08 00:54 UTC, dhubbard
Details | Diff
linden labs' mozlib2 required for secondlife-1.19.1.84244.ebuild (llmozlib-svn-2.13.ebuild,1.48 KB, text/plain)
2008-05-08 14:20 UTC, dhubbard
Details
put in secondlife/files - new patch goes with secondlife-1.19.1.84244.ebuild (secondlife-Branch_1-19-1-Viewer-r84244-gentoo.patch,6.20 KB, patch)
2008-05-08 14:23 UTC, dhubbard
Details | Diff
Second Life 1.19.1.4 r84244 ebuild (secondlife-1.19.1.84244.ebuild,5.65 KB, text/plain)
2008-05-08 14:26 UTC, dhubbard
Details
linden labs' mozlib2 required for secondlife-1.19.1.84244.ebuild (llmozlib-svn-2.13.ebuild,1.50 KB, text/plain)
2008-05-10 16:32 UTC, dhubbard
Details
put in secondlife/files - new patch goes with secondlife-1.19.1.84244.ebuild (secondlife-Branch_1-19-1-Viewer-r84244-gentoo.patch,11.27 KB, patch)
2008-05-10 16:33 UTC, dhubbard
Details | Diff
Second Life 1.19.1.4 r84244 ebuild (secondlife-1.19.1.84244.ebuild,6.70 KB, text/plain)
2008-05-10 16:36 UTC, dhubbard
Details
gcc43 fixes for secondlife (secondlife-gcc43-fixes.diff,1.25 KB, patch)
2008-06-12 18:14 UTC, Hanno Böck
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Lisa Seelye (RETIRED) gentoo-dev 2006-03-20 18:06:11 UTC
Download at http://secondlife.com/community/linux-alpha.php

Current version is http://secondlife.com/downloads/viewer/SecondLife_1_9_0_17.tar.bz2

Second Life is a 3-D virtual world entirely built and owned by its residents. Since opening to the public in 2003, it has grown explosively and today is inhabited by nearly 100,000 people from around the globe.
Comment 1 Paul Bredbury 2006-05-27 10:06:20 UTC
Created attachment 87669 [details]
secondlife-1.10.1.0.ebuild

This ebuild should work. But the game will not be playable by more than one user, due to file ownership in /var/games/secondlife.
Comment 2 Allen Brooker (AllenJB) 2006-06-05 08:38:39 UTC
This ebuild appears to work fine for the latest current version, 1.10.1.0
Comment 3 Paul Bredbury 2006-06-05 08:54:24 UTC
Comment on attachment 87669 [details]
secondlife-1.10.1.0.ebuild

Version bump in filename - file contents unchanged.
Comment 4 Daedius 2006-07-03 14:45:11 UTC
When this bug gets fixed, it needs to handle the newer version 1.10.5.1 ( SL requires the latest build in order to connect with their servers ) http://secondlife.com/downloads/viewer/SecondLife_1_10_5_1.tar.bz2
Comment 5 Daedius 2006-07-03 14:46:30 UTC
When this bug gets attended to, it needs to be updated to use the latest client 1.10.5.1 ( the servers require you have the latest client in order to connect )

http://secondlife.com/downloads/viewer/SecondLife_1_10_5_1.tar.bz2
Comment 6 Paul Bredbury 2006-07-03 15:36:02 UTC
Created attachment 90814 [details]
secondlife-1.10.5.1.ebuild

Rearranged deletion of files in ${d}. Added QA-silencing variables.

I suggest category "games-rpg".
Comment 7 Paul Bredbury 2006-07-03 17:57:03 UTC
Created attachment 90819 [details]
secondlife-1.10.5.1.ebuild

Fixed link to state directory.
Comment 8 Conrad Kostecki gentoo-dev 2006-07-25 12:36:43 UTC
Created attachment 92739 [details]
secondlife-1.11.0.11.ebuild

New Version is out!
Comment 9 Triffid Hunter 2006-11-12 23:00:40 UTC
Created attachment 101806 [details]
secondlife-1.13.0.0.ebuild

just found this bug, also found 1.13.0.0 was available. attached ebuild works for me but game won't run - chews *lots* of cpu time, then bombs with
/usr/games/bin/secondlife: line 10: /usr/games/bin/secondlife: Argument list too long
/usr/games/bin/secondlife: line 10: /usr/games/bin/secondlife: Success
even if I pass no arguments at all. Looks like the message is coming from the binary itself.

I'll try an older ebuild, just thought I'd throw this in for good measure
Comment 10 Paul Bredbury 2006-11-13 07:43:41 UTC
(In reply to comment #9)
> /usr/games/bin/secondlife: Argument list too long

Change the line to:
games_make_wrapper ${PN} ./${PN} "${dir}" "${dir}"/lib

Attach ebuilds as text, not binary ;)
Comment 11 Allen Brooker (AllenJB) 2006-11-15 07:08:35 UTC
What's the reasoning for the font replacement in src_install? It actually fails for me, but Second Life seems to work fine with the font file it's shipped with.

As an additional note, this package works fine on amd64, and the 1.13.0.0 ebuild also works for 1.12.3.6 (the current "stable" alpha, which appears to be the required version for use on the main servers) with the only change other than Paul's correction directly above being to use the first (commented out) SRC line instead and to change MY_P to:
MY_P=SecondLife_i686_${MY_PV}
from:
MY_P=SecondLife_i686_${MY_PV}_ADITI
Comment 12 Anton Bolshakov 2007-01-08 17:04:40 UTC
Secondlife client is GPLed now.
http://secondlife.com/developers/opensource/downloads/slviewer-src-20070108c.tar.gz
Comment 13 Paul Bredbury 2007-01-08 17:17:35 UTC
Do *not* link directly to the source code. Link to the page that actual humans are meant to read:

http://secondlife.com/developers/opensource/getit
Comment 14 MATSUU Takuto (RETIRED) gentoo-dev 2007-01-09 15:16:57 UTC
Created attachment 106217 [details]
secondlife-20070108c.ebuild(cannot install)
Comment 15 MATSUU Takuto (RETIRED) gentoo-dev 2007-01-09 15:17:25 UTC
Created attachment 106219 [details, diff]
files/secondlife-20070108c-gentoo.patch
Comment 16 MATSUU Takuto (RETIRED) gentoo-dev 2007-01-09 15:19:45 UTC
Created attachment 106221 [details]
dev-libs/xmlrpc-epi-0.51.ebuild (depends)
Comment 17 MATSUU Takuto (RETIRED) gentoo-dev 2007-01-09 15:20:40 UTC
Created attachment 106223 [details, diff]
xmlrpc-epi/files/xmlrpc-epi-0.51-64bit-fixes.patch(from Mandriva)
Comment 18 MATSUU Takuto (RETIRED) gentoo-dev 2007-01-09 15:21:14 UTC
Created attachment 106225 [details, diff]
xmlrpc-epi/files/xmlrpc-epi-0.51-gcc4.patch(from Mandriva)
Comment 19 MATSUU Takuto (RETIRED) gentoo-dev 2007-01-09 15:28:45 UTC
this secondlife-20070108c.ebuild has not been installed yet.

http://pastebin.com/855102
I had tried unsuccessfully to fix it.
Comment 20 Aidan Thornton 2007-01-09 18:01:48 UTC
You'll probably want most of the patches from http://svn.mandriva.com/cgi-bin/viewvc.cgi/packages/cooker/secondlife/current/SOURCES/ - amongst other things, they fix that compile error.
Comment 21 Aidan Thornton 2007-01-09 19:12:03 UTC
Created attachment 106253 [details]
dev-libs/ELFIO-1.0.3.ebuild

Ebuild for ELFIO.
Comment 22 Aidan Thornton 2007-01-09 20:52:30 UTC
Created attachment 106259 [details]
media-libs/openjpeg-1.1.ebuild

Ebuild for OpenJPEG
Comment 23 Aidan Thornton 2007-01-09 21:42:40 UTC
Created attachment 106263 [details]
secondlife-20070108c.ebuild

Ebuild for Second Life client. Untested.
Comment 24 Aidan Thornton 2007-01-09 21:44:06 UTC
Created attachment 106265 [details, diff]
secondlife-20070108c-gentoo.patch

Required patch. Also required are several patches from http://svn.mandriva.com/cgi-bin/viewvc.cgi/packages/cooker/secondlife/current/SOURCES/
Comment 25 Fatal1ty 2007-01-10 09:59:21 UTC
New linux version

Linux i686: 1.13.1.6
Comment 26 Aidan Thornton 2007-01-10 14:02:38 UTC
Created attachment 106350 [details]
slviewer-src-20070108c-datapath.patch

Patch to wrapper script (modified from Mandriva one)
Comment 27 Aidan Thornton 2007-01-10 14:03:30 UTC
Created attachment 106352 [details]
slviewer-llfont.patch

Patch to stop the whole thing segfaulting on startup.
Comment 28 Aidan Thornton 2007-01-10 14:08:21 UTC
Created attachment 106354 [details]
secondlife-20070108c.ebuild

Mostly working ebuild. (It's missing a couple of static_*.db2 files, which aren't included in the main download and have to be taken either from the binary version or the linux-libs download...)
Comment 29 MATSUU Takuto (RETIRED) gentoo-dev 2007-01-10 15:22:53 UTC
depends fmod-3.75
Comment 30 Carlos Maldonado 2007-01-10 17:42:15 UTC
(In reply to comment #29)
> depends fmod-3.75
> 

might be not the right place but when compiling openjpeg (with the ebuild provided on this bug) I am getting an error probably related to the 64bit platform since I can't see any keyword for 64 on the ebuild for openjpeg

here's the error

libopenjpeg/openjpeg.c:264:8: warning: extra tokens at end of #endif directive
gcc -O3 -Ilibopenjpeg -c libopenjpeg/pi.c -o libopenjpeg/pi.o
gcc -O3 -Ilibopenjpeg -c libopenjpeg/raw.c -o libopenjpeg/raw.o
gcc -O3 -Ilibopenjpeg -c libopenjpeg/t1.c -o libopenjpeg/t1.o
gcc -O3 -Ilibopenjpeg -c libopenjpeg/t2.c -o libopenjpeg/t2.o
gcc -O3 -Ilibopenjpeg -c libopenjpeg/tcd.c -o libopenjpeg/tcd.o
gcc -O3 -Ilibopenjpeg -c libopenjpeg/tgt.c -o libopenjpeg/tgt.o
ar r libopenjpeg.a ./libopenjpeg/bio.o ./libopenjpeg/cio.o ./libopenjpeg/dwt.o ./libopenjpeg/event.o ./libopenjpeg/image.o ./libopenjpeg/j2k.o ./libopenjpeg/j2k_lib.o ./libopenjpeg/jp2.o ./libopenjpeg/jpt.o ./libopenjpeg/mct.o ./libopenjpeg/mqc.o ./libopenjpeg/openjpeg.o ./libopenjpeg/pi.o ./libopenjpeg/raw.o ./libopenjpeg/t1.o ./libopenjpeg/t2.o ./libopenjpeg/tcd.o ./libopenjpeg/tgt.o
ar: creating libopenjpeg.a
gcc -s -shared -Wl,-soname,libopenjpeg.so.1 -o libopenjpeg-1.0.0.so ./libopenjpeg/bio.o ./libopenjpeg/cio.o ./libopenjpeg/dwt.o ./libopenjpeg/event.o ./libopenjpeg/image.o ./libopenjpeg/j2k.o ./libopenjpeg/j2k_lib.o ./libopenjpeg/jp2.o ./libopenjpeg/jpt.o ./libopenjpeg/mct.o ./libopenjpeg/mqc.o ./libopenjpeg/openjpeg.o ./libopenjpeg/pi.o ./libopenjpeg/raw.o ./libopenjpeg/t1.o ./libopenjpeg/t2.o ./libopenjpeg/tcd.o ./libopenjpeg/tgt.o -lstdc++
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: ./libopenjpeg/bio.o: relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
./libopenjpeg/bio.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [libopenjpeg-1.0.0.so] Error 1
!!! ERROR: media-libs/openjpeg-1.1 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  openjpeg-1.1.ebuild, line 13:   Called die


any pointers?

can I compile this with the ~x86 and it will work with the rest of the software compiled on 64bit mode?
Comment 31 MATSUU Takuto (RETIRED) gentoo-dev 2007-01-11 14:09:36 UTC
Created attachment 106554 [details]
secondlife-20070108c.ebuild

clean up. but it doesn't work on my amd64.
Comment 32 MATSUU Takuto (RETIRED) gentoo-dev 2007-01-11 14:10:23 UTC
Created attachment 106556 [details, diff]
slviewer-src-20070108c-datapath.patch
Comment 33 MATSUU Takuto (RETIRED) gentoo-dev 2007-01-11 14:11:38 UTC
Created attachment 106558 [details]
secondlife-bin-1.13.2.5.ebuild

binary version. this works fine on my amd64.
Comment 34 Guido 2007-01-13 19:36:23 UTC
Created attachment 106833 [details, diff]
openjpeg/files/openjpeg-1.1-64bit-fixes.patch

Compiler fix for amd64 architecture
Comment 35 Guido 2007-01-13 19:38:40 UTC
Created attachment 106834 [details]
media-libs/openjpeg/openjpeg-1.1.ebuild

Updated ebuild; 64bit fixes patch is now applied
Comment 36 Guido 2007-01-13 19:41:43 UTC
(In reply to comment #30)
> 
> any pointers?
> 

Please try out the updated ebuild and accompanying patch I attached to this bug.
Comment 37 Guido 2007-01-13 19:49:13 UTC
Created attachment 106839 [details]
media-libs/openjpeg/openjpeg-1.1.ebuild

The 64-bit patch should only be applied for amd64 architecture ...
Comment 38 MATSUU Takuto (RETIRED) gentoo-dev 2007-01-14 04:59:46 UTC
Created attachment 106898 [details]
openjpeg-1.1.ebuild

cleanup.
Comment 39 MATSUU Takuto (RETIRED) gentoo-dev 2007-01-14 05:20:34 UTC
Created attachment 106900 [details]
secondlife-bin-1.13.1.6.ebuild
Comment 40 Animatrix 2007-01-14 08:49:15 UTC
Yesterday, I have tried to use secondlife-bin-1.13.2.5.ebuild, but Second life says me that a new version is available.

Does the secondlife-bin-1.13.1.6.ebuild correct this problem ?
Comment 41 Bernard Cafarelli gentoo-dev 2007-01-14 21:37:40 UTC
(In reply to comment #40)
> Yesterday, I have tried to use secondlife-bin-1.13.2.5.ebuild, but Second life
> says me that a new version is available.
> 
> Does the secondlife-bin-1.13.1.6.ebuild correct this problem ?
> 

It does, and this latest ebuild has cleaner dependencies for amd64 too
Comment 42 Chris Gianelloni (RETIRED) gentoo-dev 2007-01-16 13:11:13 UTC
The 64-bit patch *should* be applied on all arches.  If it doesn't work, then the patch needs to be adjusted to not break other arches.  This way, the patch can be submitted upstream so we don't have to patch another version.
Comment 43 Guido 2007-01-16 21:37:23 UTC
(In reply to comment #42)
> The 64-bit patch *should* be applied on all arches.  If it doesn't work, then
> the patch needs to be adjusted to not break other arches.  This way, the patch
> can be submitted upstream so we don't have to patch another version.
 
I'm not entirely sure which 64-bit patch you're referring to, but I guess it's the openjpeg one. This was actually a patch that adds the -fPIC compiler flag. I simply tried to follow the the Gentoo ebuild policy guide: http://www.gentoo.org/proj/en/devrel/handbook/handbook.xml?part=3&chap=1

And in case you did mean the xmlrpc-epi patch; it seems that this product is no longer being actively maintained upstream ...

BTW I was able to build second life on my amd64 machine, but it stops with this error message:
*** glibc detected *** bin/do-not-directly-run-secondlife-bin: free(): invalid next size (fast): 0x00000000021c5cd0 ***

The secondlife-bin version works like a charm though.
Comment 44 Guido 2007-01-17 20:11:33 UTC
Created attachment 107290 [details]
secondlife-bin-1.13.2.11.ebuild

Updated ebuild for the latest binary version.
Comment 45 Guido 2007-01-20 10:51:49 UTC
Created attachment 107515 [details]
secondlife-bin-1.13.2.12.ebuild

Updated version again ...
Comment 46 MATSUU Takuto (RETIRED) gentoo-dev 2007-01-20 15:32:54 UTC
Created attachment 107540 [details]
secondlife-1.13.2.12.ebuild

opensource version
Comment 47 MATSUU Takuto (RETIRED) gentoo-dev 2007-01-20 15:33:48 UTC
Created attachment 107542 [details, diff]
files/secondlife-1.13.2.12-gentoo.patch
Comment 48 Bernard Cafarelli gentoo-dev 2007-01-20 16:18:12 UTC
Created attachment 107550 [details]
Binary "First look" version

For the binary version, I'd suggest for now to use the "First Look" version, from: http://forums.secondlife.com/showthread.php?t=161502

Performance here is *really* enhanced compared with "stable alpha" 1.13.2, and it also has some new options available
Comment 49 Bernard Cafarelli gentoo-dev 2007-01-20 18:07:23 UTC
Created attachment 107566 [details]
secondlife-bin-1.13.2.56900.ebuild

Oops, last upload was not the latest (correct) one (wrong SRC_URI for the "First Look" download)
Comment 50 Guido 2007-01-20 22:29:37 UTC
Created attachment 107598 [details, diff]
files/secondlife-1.13.2.12-llfloatereditui.patch

Compilation fix for amd64, should work on all arch's.
Comment 51 Guido 2007-01-20 22:30:29 UTC
Created attachment 107599 [details, diff]
files/secondlife-1.13.2.12-lltexlayer.patch

Compilation fix for amd64, should work on all arch's.
Comment 52 Guido 2007-01-20 22:31:05 UTC
Created attachment 107600 [details, diff]
files/secondlife-1.13.2.12-llviewermenu.patch

Compilation fix for amd64, should work on all arch's.
Comment 53 Guido 2007-01-20 22:34:08 UTC
Created attachment 107601 [details, diff]
files/secondlife-1.13.2.12-lscript_library.patch

Fix for a memory allocation bug which causes an immediate crash on amd64, should work on all arch's.
Comment 54 Guido 2007-01-20 22:36:15 UTC
Created attachment 107603 [details]
secondlife-1.13.2.12.ebuild-r1

Updated ebuild, using the previously attached patches.
Comment 55 Jakub Moc (RETIRED) gentoo-dev 2007-01-24 01:05:30 UTC
*** Bug 163521 has been marked as a duplicate of this bug. ***
Comment 56 Julien Enche 2007-01-26 12:56:48 UTC
Created attachment 108183 [details, diff]
slviewer-src-20070108c-no_fmod.patch

This patch is needed by the lastest ebuild posted with USE="-fmod".
Comment 57 Guido 2007-01-26 19:27:46 UTC
Created attachment 108224 [details]
secondlife-bin-1.13.2.15.ebuild

Ebuild for the latest binary version
Comment 58 slick 2007-02-10 17:27:36 UTC
I try the ebuild in #54 After emerging it says: 

>>> !!! ELF DT_NEEDED orphans: games-rpg/secondlife-1.13.2.12
!!! libexpat.so.1 : /usr/share/games/secondlife/bin/do-not-directly-run-secondlife-bin
!!! libvorbisenc.so.0 : /usr/share/games/secondlife/bin/do-not-directly-run-secondlife-bin
!!! libvorbisfile.so.0 : /usr/share/games/secondlife/bin/do-not-directly-run-secondlife-bin

starting the application says:

cat: gridargs.dat: No such file or directory
bin/do-not-directly-run-secondlife-bin: error while loading shared libraries: libexpat.so.1: cannot open shared object file: No such file or directory
Comment 59 slick 2007-02-10 17:29:16 UTC
additional comment:

yes it was secondlife-1.13.2.12-r1, but I saved under secondlife-1.13.2.12
Comment 60 MATSUU Takuto (RETIRED) gentoo-dev 2007-02-19 14:02:39 UTC
Created attachment 110626 [details]
openjpeg-1.1.ebuild
Comment 61 MATSUU Takuto (RETIRED) gentoo-dev 2007-02-19 14:03:29 UTC
Created attachment 110627 [details, diff]
openjpeg/files/OPJ_limit_tags_for_decode.patch
Comment 62 MATSUU Takuto (RETIRED) gentoo-dev 2007-02-19 14:05:36 UTC
Created attachment 110629 [details]
secondlife-1.13.3.58018.ebuild
Comment 63 MATSUU Takuto (RETIRED) gentoo-dev 2007-02-19 14:07:10 UTC
Created attachment 110630 [details, diff]
secondlife/files/secondlife-1.13.2.15-gentoo.patch
Comment 64 MATSUU Takuto (RETIRED) gentoo-dev 2007-02-19 14:07:44 UTC
Created attachment 110634 [details, diff]
secondlife/files/secondlife-1.13.3.58018-no_fmod.patch
Comment 65 MATSUU Takuto (RETIRED) gentoo-dev 2007-02-19 14:08:24 UTC
Created attachment 110636 [details, diff]
secondlife/files/llimagej2coj_bug_fixes.patch
Comment 66 MATSUU Takuto (RETIRED) gentoo-dev 2007-02-19 14:13:50 UTC
secondlife-1.13.3.58018.ebuild works on my amd64.

it also emerge fine on my PLAYSTATION 3, but doesn't work because PS3 has no direct redering support.
Comment 67 Tristan Heaven (RETIRED) gentoo-dev 2007-02-19 14:15:21 UTC
Why the style changes in that last patch? Please keep files for other packages on separate bugs.
Comment 68 Guido 2007-02-19 15:19:28 UTC
(In reply to comment #67)
> Why the style changes in that last patch? Please keep files for other packages
> on separate bugs.

Those patches come from jira.secondlife.com, #VWR-123, the names are not changed for obvious reasons. Presumably the OPJ patch will be included in the next release of OpenJPEG. Hopefully the other patch will be included in SecondLife-1.13.4.x.
Comment 69 Guido 2007-02-19 15:33:02 UTC
Created attachment 110647 [details, diff]
Let xmlrpc-epi use the installed version of expat

xmlrpc-epi includes an old version of expat, which sometimes causes a seg fault when logging in on secondlife (the viewer hangs/crashes at "Connecting to region ..."). With this patch xmlrpc-epi uses an already installed version of expat. This also fixes these seg faults.
Comment 70 MATSUU Takuto (RETIRED) gentoo-dev 2007-02-19 15:34:34 UTC
Created attachment 110648 [details, diff]
secondlife/files/opensecondlife-svn41.patch

this patch is from opensecondlife.org
Comment 71 Guido 2007-02-19 15:35:37 UTC
Created attachment 110649 [details]
xmlrpc-epi-0.51-r1.ebuild

Updated ebuild that adds a dependency on expat and applies the patch that lets xmlrpc-epi build against the already installed version of expat.
Comment 72 MATSUU Takuto (RETIRED) gentoo-dev 2007-02-19 15:37:02 UTC
Created attachment 110651 [details]
xmlrpc-epi-0.51.ebuild
Comment 73 Guido 2007-02-19 15:37:55 UTC
Created attachment 110652 [details, diff]
xmlrpc-epi-0.51-expat.patch

Let xmlrpc-epi use the installed version of expat.

(Properly named the patch.)
Comment 74 MATSUU Takuto (RETIRED) gentoo-dev 2007-02-19 15:38:02 UTC
Created attachment 110654 [details, diff]
xmlrpc-epi/files/xmlrpc-epi-0.51-secondlife.patch
Comment 75 MATSUU Takuto (RETIRED) gentoo-dev 2007-02-19 15:38:51 UTC
Created attachment 110655 [details, diff]
xmlrpc-epi/files/xmlrpc-epi-0.51-expat.patch
Comment 76 MATSUU Takuto (RETIRED) gentoo-dev 2007-02-19 15:40:05 UTC
Created attachment 110656 [details]
ELFIO-1.0.3.ebuild
Comment 77 Guido 2007-02-19 21:28:43 UTC
Created attachment 110696 [details, diff]
xmlrpc-epi-0.51-expat.patch

Now a working patch ...
Comment 78 Guido 2007-02-19 21:30:55 UTC
Created attachment 110698 [details]
xmlrpc-epi-0.51-r1.ebuild

Now also aplying xmlrpc-epi-0.51-secondlife.patch
Comment 79 Leszek 2007-02-22 14:55:45 UTC
i got this problem : 
error: 'glActiveTextureARB' was not declared in this scope

it could be solved with: 
eselect opengl set xorg-x11

is it possible to automate this in the ebuild ?
Comment 80 Mr. Bones. (RETIRED) gentoo-dev 2007-02-22 16:51:26 UTC
No, ebuilds should not changed the opengl implementation themselves.
Comment 81 Olliver Schinagl 2007-02-26 12:48:06 UTC
I was wondering if it be possible to have an overlay/clear compilation of what exactly is needed?
Comment 82 Olliver Schinagl 2007-02-27 15:49:54 UTC
Ok, i think i got quite far so far, i just got the second life ebuild, and filled in the missing bits as I found them here :)

(I had some issues of grabbing files with some of the ebuilds, but manually dl them from SF.net worked)

OpenJPEG 1.1 doesn't exist anymore, there's a 1.1.1 version now, so I replaced the version number and didn't use the patch (it didn't work any longer).

However, i'm getting a llimage2coj error now, maybe related to openjpeg? Here's the build output:

i686-pc-linux-gnu-g++ -g -pipe -Wall -Wno-trigraphs -DLL_USE_KDU=0 -falign-loops=16 -fno-math-errno -fexceptions -fsigned-char -fno-strict-aliasing -ffast-math -DLL_MESA_HEADLESS=0 -DLL_MESA=0 -Os -march=athlon-xp -pipe -fomit-frame-pointer -DLL_LINUX=1 -DAPPID=secondlife -DLL_SDL=1 -DLL_FMOD=0 -DLL_X11=1 -DLL_GTK=1 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -DNDEBUG -DLL_RELEASE=1 -Illcommon -Illmath -Illwindow -Illaudio -Illcharacter -Illdatabase -Illhavok -Illimage -Illinventory -Illmedia -Illmessage -Illprimitive -Illrender -Illscene -Illui -Illvfs -Illwindow -Illxml -Ilscript -I/var/tmp/portage/games-rpg/secondlife-1.13.3.58018/work/linden/libraries/include -I/var/tmp/portage/games-rpg/secondlife-1.13.3.58018/work/linden/libraries/include/havok -I/var/tmp/portage/games-rpg/secondlife-1.13.3.58018/work/linden/libraries/i686-linux/include -I/var/tmp/portage/games-rpg/secondlife-1.13.3.58018/work/linden/libraries/i686-linux/include/gtk-2.0 -I/var/tmp/portage/games-rpg/secondlife-1.13.3.58018/work/linden/libraries/i686-linux/include/glib-2.0 -I/var/tmp/portage/games-rpg/secondlife-1.13.3.58018/work/linden/libraries/i686-linux/include/pango-1.0 -I/var/tmp/portage/games-rpg/secondlife-1.13.3.58018/work/linden/libraries/i686-linux/include/atk-1.0 -I/var/tmp/portage/games-rpg/secondlife-1.13.3.58018/work/linden/libraries/i686-linux/include/ELFIO -I/var/tmp/portage/games-rpg/secondlife-1.13.3.58018/work/linden/libraries/i686-linux/include/llfreetype2 -c -o //var/tmp/portage/games-rpg/secondlife-1.13.3.58018/work/linden/indra/i686-linux-client-release/llimagej2coj/llimagej2coj.o //var/tmp/portage/games-rpg/secondlife-1.13.3.58018/work/linden/indra/i686-linux-client-release/llimagej2coj/llimagej2coj.cpp
//var/tmp/portage/games-rpg/secondlife-1.13.3.58018/work/linden/indra/i686-linux-client-release/llimagej2coj/llimagej2coj.cpp: In member function `virtual BOOL LLImageJ2COJ::getMetadata(LLImageJ2C&)':
//var/tmp/portage/games-rpg/secondlife-1.13.3.58018/work/linden/indra/i686-linux-client-release/llimagej2coj/llimagej2coj.cpp:339: error: 'struct opj_dparameters_t' has no member named 'cp_limit_tags'
//var/tmp/portage/games-rpg/secondlife-1.13.3.58018/work/linden/indra/i686-linux-client-release/llimagej2coj/llimagej2coj.cpp:339: error: `OPJ_LIMIT_FOR_SIZE' was not declared in this scope
//var/tmp/portage/games-rpg/secondlife-1.13.3.58018/work/linden/indra/i686-linux-client-release/llimagej2coj/llimagej2coj.cpp:339: warning: unused variable 'OPJ_LIMIT_FOR_SIZE'
scons: *** [//var/tmp/portage/games-rpg/secondlife-1.13.3.58018/work/linden/indra/i686-linux-client-release/llimagej2coj/llimagej2coj.o] Error 1
scons: building terminated because of errors.

I'm trying now without the llimage patch, maybe it is also no longer required?

I'll keep you posted.
Comment 83 Guido 2007-02-28 07:39:36 UTC
Created attachment 111517 [details, diff]
xmlrpc-epi-0.51-expat.patch

Minor improvement
Comment 84 Guido 2007-02-28 07:40:31 UTC
Created attachment 111519 [details, diff]
openjpeg-1.1.1-Makefile.patch

Fix for 'make install'
Comment 85 Guido 2007-02-28 07:42:22 UTC
Created attachment 111521 [details]
openjpeg-1.1.1.ebuild

Version update, this version includes the patches that were used before.
Comment 86 slick 2007-03-03 11:19:30 UTC
SL players may also interest in #169109
Comment 87 Jens Mueller 2007-03-04 19:59:30 UTC
I tried to compile it on amd64. All dependencies build fine, but 2nd life fails:

x86_64-pc-linux-gnu-g++ -g -pipe -Wall -Wno-trigraphs -DLL_USE_KDU=0 -falign-loops=16 -fno-math-errno -fexceptions -fsigned-char -fno-strict-aliasing -ffast-math -DLL_MESA_HEADLESS=0 -DLL_MESA=0 -march=k8 -O2 -DLL_LINUX=1 -DAPPID=secondlife -DLL_SDL=1 -DLL_FMOD=0 -DLL_X11=1 -DLL_GTK=1 -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2 -DNDEBUG -DLL_RELEASE=1 -Illcommon -Illmath -Illwindow -Illaudio -Illcharacter -Illdatabase -Illhavok -Illimage -Illinventory -Illmedia -Illmessage -Illprimitive -Illrender -Illscene -Illui -Illvfs -Illwindow -Illxml -Ilscript -I/mnt/sda5/usr-tmp-portage/portage/games-simulation/secondlife-1.13.3.58018/work/linden/libraries/include -I/mnt/sda5/usr-tmp-portage/portage/games-simulation/secondlife-1.13.3.58018/work/linden/libraries/include/havok -I/mnt/sda5/usr-tmp-portage/portage/games-simulation/secondlife-1.13.3.58018/work/linden/libraries/x86_64-linux/include -I/mnt/sda5/usr-tmp-portage/portage/games-simulation/secondlife-1.13.3.58018/work/linden/libraries/x86_64-linux/include/gtk-2.0 -I/mnt/sda5/usr-tmp-portage/portage/games-simulation/secondlife-1.13.3.58018/work/linden/libraries/x86_64-linux/include/glib-2.0 -I/mnt/sda5/usr-tmp-portage/portage/games-simulation/secondlife-1.13.3.58018/work/linden/libraries/x86_64-linux/include/pango-1.0 -I/mnt/sda5/usr-tmp-portage/portage/games-simulation/secondlife-1.13.3.58018/work/linden/libraries/x86_64-linux/include/atk-1.0 -I/mnt/sda5/usr-tmp-portage/portage/games-simulation/secondlife-1.13.3.58018/work/linden/libraries/x86_64-linux/include/ELFIO -I/mnt/sda5/usr-tmp-portage/portage/games-simulation/secondlife-1.13.3.58018/work/linden/libraries/x86_64-linux/include/llfreetype2 -c -o //mnt/sda5/usr-tmp-portage/portage/games-simulation/secondlife-1.13.3.58018/work/linden/indra/x86_64-linux-client-release/llrender/llimagegl.o //mnt/sda5/usr-tmp-portage/portage/games-simulation/secondlife-1.13.3.58018/work/linden/indra/x86_64-linux-client-release/llrender/llimagegl.cpp
//mnt/sda5/usr-tmp-portage/portage/games-simulation/secondlife-1.13.3.58018/work/linden/indra/x86_64-linux-client-release/llrender/llimagegl.cpp: In static member function 'static void LLImageGL::bindExternalTexture(LLGLuint, S32, LLGLenum)':
//mnt/sda5/usr-tmp-portage/portage/games-simulation/secondlife-1.13.3.58018/work/linden/indra/x86_64-linux-client-release/llrender/llimagegl.cpp:122: error: 'glActiveTextureARB' was not declared in this scope
//mnt/sda5/usr-tmp-portage/portage/games-simulation/secondlife-1.13.3.58018/work/linden/indra/x86_64-linux-client-release/llrender/llimagegl.cpp:123: error: 'glClientActiveTextureARB' was not declared in this scope
//mnt/sda5/usr-tmp-portage/portage/games-simulation/secondlife-1.13.3.58018/work/linden/indra/x86_64-linux-client-release/llrender/llimagegl.cpp: In static member function 'static void LLImageGL::unbindTexture(S32, LLGLenum)':
//mnt/sda5/usr-tmp-portage/portage/games-simulation/secondlife-1.13.3.58018/work/linden/indra/x86_64-linux-client-release/llrender/llimagegl.cpp:131: error: 'glActiveTextureARB' was not declared in this scope
//mnt/sda5/usr-tmp-portage/portage/games-simulation/secondlife-1.13.3.58018/work/linden/indra/x86_64-linux-client-release/llrender/llimagegl.cpp:132: error: 'glClientActiveTextureARB' was not declared in this scope
//mnt/sda5/usr-tmp-portage/portage/games-simulation/secondlife-1.13.3.58018/work/linden/indra/x86_64-linux-client-release/llrender/llimagegl.cpp: In static member function 'static void LLImageGL::unbindTexture(S32)':
//mnt/sda5/usr-tmp-portage/portage/games-simulation/secondlife-1.13.3.58018/work/linden/indra/x86_64-linux-client-release/llrender/llimagegl.cpp:140: error: 'glActiveTextureARB' was not declared in this scope
//mnt/sda5/usr-tmp-portage/portage/games-simulation/secondlife-1.13.3.58018/work/linden/indra/x86_64-linux-client-release/llrender/llimagegl.cpp:141: error: 'glClientActiveTextureARB' was not declared in this scope
//mnt/sda5/usr-tmp-portage/portage/games-simulation/secondlife-1.13.3.58018/work/linden/indra/x86_64-linux-client-release/llrender/llimagegl.cpp: In member function 'BOOL LLImageGL::bindTextureInternal(S32) const':
//mnt/sda5/usr-tmp-portage/portage/games-simulation/secondlife-1.13.3.58018/work/linden/indra/x86_64-linux-client-release/llrender/llimagegl.cpp:402: error: 'glActiveTextureARB' was not declared in this scope
scons: *** [//mnt/sda5/usr-tmp-portage/portage/games-simulation/secondlife-1.13.3.58018/work/linden/indra/x86_64-linux-client-release/llrender/llimagegl.o] Error 1
scons: building terminated because of errors.

!!! ERROR: games-simulation/secondlife-1.13.3.58018 failed.
Call stack:
  ebuild.sh, line 1614:   Called dyn_compile
  ebuild.sh, line 971:   Called qa_call 'src_compile'
  environment, line 3351:   Called src_compile
  secondlife-1.13.3.58018.ebuild, line 94:   Called die

!!! (no error message)
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/mnt/sda5/usr-tmp-portage/portage/games-simulation/secondlife-1.13.3.58018/temp/build.log'.

!!! This ebuild is from an overlay: '/usr/local/portage'
Comment 88 Jens Mueller 2007-03-04 19:59:53 UTC
# emerge --info
Portage 2.1.2.1 (default-linux/amd64/2006.1, gcc-4.1.1, glibc-2.5-r0, 2.6.18-gentoo-r3 x86_64)
=================================================================
System uname: 2.6.18-gentoo-r3 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System release 1.12.9
Timestamp of tree: Sun, 04 Mar 2007 16:50:01 +0000
ccache version 2.4 [disabled]
dev-java/java-config: 1.3.7, 2.0.31-r3
dev-lang/python:     2.3.5-r3, 2.4.4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /home/mythtv/ /usr/NX/etc /usr/NX/home /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=k8 -O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://130.59.10.34/mirror/gentoo/ http://130.59.10.35/mirror/gentoo/"
LANG="de_DE.utf-8"
LC_ALL="de_DE.utf-8"
LINGUAS="de cz it fr en zh_CN zh_TW"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/mnt/sda5/usr-tmp-portage"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="X aalib alsa amd64 arts audiofile berkdb bitmap-fonts bzip2 cdr cjk cli cracklib crypt css cups dri dvd dvdr fortran gdbm gpm gtk gtk2 iconv immqt-bc ipv6 isdnlog java jpeg jpeg2k kde ldap libg++ midi mozilla mp3 musicbrainz mysql ncurses nls nptl nptlonly nsplugin ogg opengl oss pam pango pcre pdf perl png ppds pppd python qt readline reflection samba sasl session spl ssl tcpd truetype truetype-fonts type1-fonts unicode vorbis xorg xosd xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de cz it fr en zh_CN zh_TW" USERLAND="GNU" VIDEO_CARDS="nvidia vga vesa fbdev"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS

Comment 89 Edoardo Liverani 2007-03-18 14:00:41 UTC
Created attachment 113643 [details]
secondlife-1.13.3.59036.ebuild

Version Bump.
Compiles on amd64, but don't work very well (rendering errors, etc.)*
I removed llimagej2coj_bug_fixes.patch because it couldn't compile with this patch.
I updated secondlife-1.13.2.15-gentoo.patch to secondlife-1.13.3.59036-gentoo.patch (i'm going to attach it)
I removed some things in src_install because something is changed from previous version.

NOTE: to compile correctly this source need a new enough glext.h or something provided only by xorg-x11 opengl extension, so if you use another implementation, you HAVE to do "eselect opengl set xorg-x11" before emerging, and after emerging you can restore your favorite opengl implementation. (I tried to do so in the ebuild but it don't works (so these lines are commented)).

*:I get very often in the log these errors:
"[ERROR] tcd_decode: incomplete bistream
[ERROR] read error"
Comment 90 Edoardo Liverani 2007-03-18 14:15:08 UTC
Created attachment 113644 [details, diff]
files/secondlife-1.13.3.59036-gentoo.patch

This is the same patch updated for version 1.13.3.59036 (Something in file SConstruct was changed)

p.s. In the last ebuild I added MOZLIB=no to scons parameters in order to compile correctly (see https://wiki.secondlife.com/wiki/Talk:Compiling_the_viewer_%28Linux%29#llmozlib)

p.p.s.: I have secondlife-1.13.3.59036-no_fmod.patch that is the same of secondlife-1.13.3.58018-no_fmod.patch, should I upload it too?? (Or can you just download and rename the previous patch?)
Comment 91 MATSUU Takuto (RETIRED) gentoo-dev 2007-03-18 15:38:25 UTC
Created attachment 113664 [details]
secondlife-1.13.3.59315.ebuild
Comment 92 MATSUU Takuto (RETIRED) gentoo-dev 2007-03-18 15:39:03 UTC
Created attachment 113666 [details, diff]
files/secondlife-1.13.3.59315-gentoo.patch
Comment 93 MATSUU Takuto (RETIRED) gentoo-dev 2007-03-18 15:39:34 UTC
Created attachment 113668 [details]
files/secondlife-1.13.3.2-llimagej2coj_debug.patch
Comment 94 MATSUU Takuto (RETIRED) gentoo-dev 2007-03-18 15:40:04 UTC
Created attachment 113670 [details, diff]
files/secondlife-1.13.3.59315-no_fmod.patch
Comment 95 Piotr Szymaniak 2007-03-18 20:20:15 UTC
secondlife-1.13.3.59315 failed for me. emerge --info and full (also tail'ed) second life emerge log is here:
http://roslin.kicks-ass.net:1337/download/gentoo/logs/
Comment 96 Edoardo Liverani 2007-03-18 21:46:45 UTC
(In reply to comment #95)
> secondlife-1.13.3.59315 failed for me. emerge --info and full (also tail'ed)
> second life emerge log is here:
> http://roslin.kicks-ass.net:1337/download/gentoo/logs/
> 

As I said, in order to compile cleanly, you must switch to xorg-x11 opengl implementation before emerging, doing so (as root): "eselect opengl set xorg-x11"
After emerging, you have to restore it (eg. "eselect opengl set nvidia")
Comment 97 Piotr Szymaniak 2007-03-19 20:32:22 UTC
(In reply to comment #96)
> (In reply to comment #95)
> > *znip*
> 
> As I said, in order to compile cleanly, you must switch to xorg-x11 opengl
> implementation before emerging, doing so (as root): "eselect opengl set
> xorg-x11"
> After emerging, you have to restore it (eg. "eselect opengl set nvidia")

Thanks, it works fine now. (:
Comment 98 Fredrik Carlsson 2007-03-23 12:04:55 UTC
secondlife-1.13.3.59315.ebuild fails with this problem on paludis.

>>> Unpacking slviewer-artwork-FL-1.13.3.59315.zip to /var/tmp/paludis/games-simulation/secondlife-1.13.3.59315/work
unzip -qo /usr/portage/distfiles/slviewer-artwork-FL-1.13.3.59315.zip
 * Applying secondlife-1.13.3.59315-no_fmod.patch ...                    [ ok ]
 * Applying secondlife-1.13.3.2-llimagej2coj_debug.patch ...             [ ok ]
 * Applying opensecondlife-svn41.patch ...                               [ ok ]
 * Applying secondlife-1.13.3.59315-gentoo.patch ...                     [ ok ]
sed: -e expression #1, char 29: unknown option to `s'

!!! ERROR in games-simulation/secondlife-1.13.3.59315:
!!! In src_unpack at line 66
!!! (no message provided)

!!! Call stack:
!!!    * src_unpack (/usr/local/overlay/gentoo-fldc/trunk/games-simulation/secondlife/secondlife-1.13.3.59315.ebuild:66)
!!!    * ebuild_f_unpack (/usr/libexec/paludis/src_unpack.bash:44)
!!!    * ebuild_main (/usr/libexec/paludis/ebuild.bash:346)
!!!    * main (/usr/libexec/paludis/ebuild.bash:364)

die trap: exiting with error.
Comment 99 MATSUU Takuto (RETIRED) gentoo-dev 2007-03-24 23:57:41 UTC
I created overlay for secondlife.
http://overlays.gentoo.org/dev/matsuu/wiki
Comment 100 MATSUU Takuto (RETIRED) gentoo-dev 2007-03-24 23:59:50 UTC
(In reply to comment #98)
> secondlife-1.13.3.59315.ebuild fails with this problem on paludis.

please put emerge --info here.
Comment 101 Mike Nerone 2007-03-26 05:34:52 UTC
MATSUU, thanks much for the overlay. Could you get it added to the layman global list or at least put up a layman overlay list for it so people can configure layman easily (feel free to copy my temporary one at http://www.nerone.org/gentoo/layman-secondlife.txt and change it if you like).
Comment 102 MATSUU Takuto (RETIRED) gentoo-dev 2007-03-26 16:40:41 UTC
Added to layman-global.txt
Comment 103 Romain Iehl 2007-04-04 13:09:22 UTC
(In reply to comment #98)
> secondlife-1.13.3.59315.ebuild fails with this problem on paludis.
> 

This problem is due to the separator in the sed expression, and will fail if you use ccache

sed -i -e "s/gcc_bin = .*$/gcc_bin = '$(tc-getCXX)'/" SConstruct || die

will fail because the ${tc-getCXX} var contains '/' characters.
Replace / by | :

sed -i -e "s|gcc_bin = .*$|gcc_bin = '$(tc-getCXX)'|" SConstruct || die

this will of course fail if the variable contains '|' characters but that's much less common ;o
Comment 104 MATSUU Takuto (RETIRED) gentoo-dev 2007-04-04 15:35:34 UTC
fixed in overlay(secondlife-1.14.0.1).
Comment 105 Edoardo Liverani 2007-05-02 14:36:11 UTC
It is possible maybe to use fmod-ex, that is relased also for linux-amd64,in order to compile the client for amd64 with sound?

http://www.fmod.org/ifmoddownload.html
Comment 106 MATSUU Takuto (RETIRED) gentoo-dev 2007-05-02 15:04:05 UTC
no.
slviewer depends on fmod-3.75. it doesn't work with fmod-ex*
Comment 107 Edoardo Liverani 2007-05-03 20:44:26 UTC
And so will be never available a 64bit version with sound??
Comment 108 Martin Berkemeier 2007-06-15 10:32:01 UTC
on 1.17.0.12 you've introduced google-perftools in your overlay.

---

i686-pc-linux-gnu-ar cru .libs/liblogging.a .libs/logging.o
i686-pc-linux-gnu-ranlib .libs/liblogging.a
i686-pc-linux-gnu-ranlib .libs/libspinlock.a
creating liblogging.la
(cd .libs && rm -f liblogging.la && ln -s ../liblogging.la liblogging.la)
/bin/sh ./libtool --tag=CXX --mode=link i686-pc-linux-gnu-g++  -march=athlon64 -O2 -fomit-frame-pointer -pipe -fvisibility-inlines-hidden   -o profiler2_unittest  profiler2_unittest-profiler_unittest.o  -lprofiler 
creating libspinlock.la
(cd .libs && rm -f libspinlock.la && ln -s ../libspinlock.la libspinlock.la)
/bin/sh ./libtool --tag=CXX --mode=link i686-pc-linux-gnu-g++  -march=athlon64 -O2 -fomit-frame-pointer -pipe -fvisibility-inlines-hidden   -o profiler4_unittest -pthread profiler4_unittest-profiler_unittest.o  -lprofiler  
i686-pc-linux-gnu-g++ -march=athlon64 -O2 -fomit-frame-pointer -pipe -fvisibility-inlines-hidden -o profiler2_unittest profiler2_unittest-profiler_unittest.o  -lprofiler
i686-pc-linux-gnu-g++ -march=athlon64 -O2 -fomit-frame-pointer -pipe -fvisibility-inlines-hidden -o profiler4_unittest -pthread profiler4_unittest-profiler_unittest.o  -lprofiler
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lprofiler
collect2: ld returned 1 exit status
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lprofiler
collect2: ld returned 1 exit status
make: *** [profiler4_unittest] Error 1
make: *** Waiting for unfinished jobs....
make: *** [profiler2_unittest] Error 1

!!! ERROR: dev-libs/google-perftools-0.91 failed.
Call stack:
  ebuild.sh, line 1615:   Called dyn_compile
  ebuild.sh, line 972:   Called qa_call 'src_compile'
  ebuild.sh, line 44:   Called src_compile
  ebuild.sh, line 646:   Called die

---

but it will not be compiled.
do you know why?
Comment 109 Laurento Frittella (mrfree) 2007-06-15 10:42:18 UTC
It compiles good but when I try to login:

WARNING: idle_startup: setHostByName failed
WARNING: createXml: Alert: [UnableToConnect] 
WARNING: createDialog: Alert: Unable to connect to server.
Could not request domain name: userserver.dmz.lindenlab.com

I'm using games-simulation/secondlife-1.16.0.5-r2 from zugaina overlay
Comment 110 Laurento Frittella (mrfree) 2007-06-15 10:47:03 UTC
(In reply to comment #109)
> It compiles good but when I try to login:
> 
> WARNING: idle_startup: setHostByName failed
> WARNING: createXml: Alert: [UnableToConnect] 
> WARNING: createDialog: Alert: Unable to connect to server.
> Could not request domain name: userserver.dmz.lindenlab.com

Oops... sorry my bad. I forgot to select "Agni". Now it works :)

Comment 111 MATSUU Takuto (RETIRED) gentoo-dev 2007-06-15 16:22:30 UTC
(In reply to comment #108)
> but it will not be compiled.
> do you know why?

Please put your emerge --info here.

I think its parallel make issue.
Please try
# MAKEOPTS="-j1" emerge google-perftools
Comment 112 Martin Berkemeier 2007-06-15 18:22:01 UTC
# MAKEOPTS="-j1" emerge google-perftools
did it for me.
thx =)
Comment 113 MATSUU Takuto (RETIRED) gentoo-dev 2007-07-05 16:38:44 UTC
for search
Comment 114 Guido 2007-07-05 18:27:47 UTC
At the end of the compilation I consistently get the error messages below. Any ideas what's going on?

scons: done building targets.
ACCESS DENIED  open_wr:   /usr/include/gtk-2.0/gtk/.scons26075
ACCESS DENIED  open_wr:   /usr/include/gtk-2.0/gtk/.sconsign
ACCESS DENIED  open_wr:   /usr/include/gtk-2.0/gdk/.scons26075
ACCESS DENIED  open_wr:   /usr/include/gtk-2.0/gdk/.sconsign
ACCESS DENIED  open_wr:   /usr/include/atk-1.0/atk/.scons26075
ACCESS DENIED  open_wr:   /usr/include/atk-1.0/atk/.sconsign
ACCESS DENIED  open_wr:   /usr/include/glib-2.0/.scons26075
ACCESS DENIED  open_wr:   /usr/include/glib-2.0/.sconsign
ACCESS DENIED  open_wr:   /usr/include/pango-1.0/pango/.scons26075
ACCESS DENIED  open_wr:   /usr/include/pango-1.0/pango/.sconsign
ACCESS DENIED  open_wr:   /usr/include/gtk-2.0/gdk-pixbuf/.scons26075
ACCESS DENIED  open_wr:   /usr/include/gtk-2.0/gdk-pixbuf/.sconsign
ACCESS DENIED  open_wr:   /usr/include/cairo/.scons26075
ACCESS DENIED  open_wr:   /usr/include/cairo/.sconsign
ACCESS DENIED  open_wr:   /usr/include/glib-2.0/glib/.scons26075
ACCESS DENIED  open_wr:   /usr/include/glib-2.0/glib/.sconsign
ACCESS DENIED  open_wr:   /usr/lib64/gtk-2.0/include/.scons26075
ACCESS DENIED  open_wr:   /usr/lib64/gtk-2.0/include/.sconsign
ACCESS DENIED  open_wr:   /usr/include/glib-2.0/gobject/.scons26075
ACCESS DENIED  open_wr:   /usr/include/glib-2.0/gobject/.sconsign
ACCESS DENIED  open_wr:   /usr/lib64/glib-2.0/include/.scons26075
ACCESS DENIED  open_wr:   /usr/lib64/glib-2.0/include/.sconsign
>>> Source compiled.
Comment 115 Santiago M. Mola (RETIRED) gentoo-dev 2007-07-05 18:47:17 UTC
(In reply to comment #114)
> At the end of the compilation I consistently get the error messages below. Any
> ideas what's going on?
> 
> scons: done building targets.
<lots of sandbox violations>
> >>> Source compiled.
> 

You can solve it upgrading scons to 0.97.

In order to work with scons-0.96.1 you need to patch SConstruct adding SConsignFile() to the beggining of the file.
Comment 116 Paulo J. Matos 2007-07-10 08:07:22 UTC
Latest version is already 1.17.3.1. For when a definite ebuild?
Comment 117 MATSUU Takuto (RETIRED) gentoo-dev 2007-07-10 17:21:02 UTC
1.17.3.1 in my overlay.
http://overlays.gentoo.org/dev/matsuu/
Comment 118 Mike Nerone 2007-07-10 17:52:19 UTC
Just synced - I see secondlife-bin-1.17.3.1, but not secondlife-1.17.3.1.
Comment 119 MATSUU Takuto (RETIRED) gentoo-dev 2007-07-11 01:49:08 UTC
secondlife-1.17.3.1 has not been released yet.
http://wiki.secondlife.com/wiki/Source_downloads#Releases
Comment 120 Mike Nerone 2007-07-12 15:17:39 UTC
My bad - I didn't realize that secondlife-bin and secondlife(-src) could be out of sync.
Comment 121 MATSUU Takuto (RETIRED) gentoo-dev 2007-07-18 02:00:30 UTC
*** Bug 185632 has been marked as a duplicate of this bug. ***
Comment 122 Martin Berkemeier 2007-08-08 08:42:02 UTC
after successful compilation of your source of 1.18.1.2 and starting and finally logging in, when all things will be loaded, i got the following warnings:

2007-08-08T08:34:48Z WARNING: getCtrlByNameAndType: Widget mute_btn has improper type in panel active_speakers_panel
Is:             6
Should be:      3

...

2007-08-08T08:34:54Z WARNING: process_agent_movement_complete: agent_movement_complete() with NULL avatarp.

...

2007-08-08T08:34:54Z WARNING: init_audio: Failed to create an appropriate Audio Engine

...

then the client just close.

this dont happens with the d/led slviewer.
Comment 123 MATSUU Takuto (RETIRED) gentoo-dev 2007-08-13 16:10:05 UTC
(In reply to comment #122)
> after successful compilation of your source of 1.18.1.2 and starting and
> finally logging in, when all things will be loaded, i got the following
> warnings:

hmm, I can't reproduce it. Do you set fmod use flag?

try 
$ mv ${HOME}/.secondlife ${HOME}/.secondlife.backup
and run secondlife
Comment 124 Martin Berkemeier 2007-08-14 22:33:17 UTC
(In reply to comment #123)
> hmm, I can't reproduce it. Do you set fmod use flag?
> 
> try 
> $ mv ${HOME}/.secondlife ${HOME}/.secondlife.backup
> and run secondlife

yes i use fmod gstreamer and elfio. even after recompiling of fmod and secondlife and moving of the .secondlife folder i'll get the same same warnings and then it closes.

the 1.17.x builds have run without that error
Comment 125 MATSUU Takuto (RETIRED) gentoo-dev 2007-08-14 23:52:11 UTC
sorry, I got same error. It is under scrutiny.
Comment 126 Martin Berkemeier 2007-08-16 01:25:50 UTC
*sigh*

1.18.2.0 and the same error
Comment 127 Aniruddha 2007-08-25 16:32:32 UTC
How can I add this ebuild to layman? I don't see it listed with 'layman -l' or 'layman -L'.
Comment 128 Piotr Szymaniak 2007-08-25 16:36:53 UTC
(In reply to comment #127)
> How can I add this ebuild to layman? I don't see it listed with 'layman -l' or
> 'layman -L'.

Try 'layman -Lk'.
Comment 129 Aniruddha 2007-08-25 16:43:07 UTC
(In reply to comment #128)
> (In reply to comment #127)
> > How can I add this ebuild to layman? I don't see it listed with 'layman -l' or
> > 'layman -L'.
> 
> Try 'layman -Lk'.
> 

Thanks! That worked :) What does the --nocheck (-k) option mean?
Comment 130 Piotr Szymaniak 2007-08-25 16:57:10 UTC
(In reply to comment #129)
> (In reply to comment #128)
> > Try 'layman -Lk'.
> > 
> 
> Thanks! That worked :) What does the --nocheck (-k) option mean?

*cough*
Read the man page, this isn't a good place to talk about layman options.
Comment 131 Aniruddha 2007-08-25 17:22:54 UTC
(In reply to comment #130)
> (In reply to comment #129)
> > (In reply to comment #128)
> > > Try 'layman -Lk'.
> > > 
> > 
> > Thanks! That worked :) What does the --nocheck (-k) option mean?
> 
> *cough*
> Read the man page, this isn't a good place to talk about layman options.
> 

You're right. However I did check the man file prior to asking (hence I knew -k means --nocheck), and I wanted to be certain -k doesn't stand for possible security issues.(at default layman doesn't list overlays which can have possible security issues)

Comment 132 Aniruddha 2007-08-25 17:48:20 UTC
Now for something on topic. The ebuild fails:

i686-linux-client-release/llrender/llimagegl.cpp:148: error: 'glActiveTextureARB' was not declared in this scope
i686-linux-client-release/llrender/llimagegl.cpp:149: error: 'glClientActiveTextureARB' was not declared in this scope
i686-linux-client-release/llrender/llimagegl.cpp: In member function 'BOOL LLImageGL::bindTextureInternal(S32) const':
i686-linux-client-release/llrender/llimagegl.cpp:411: error: 'glActiveTextureARB' was not declared in this scope
scons: *** [i686-linux-client-release/llrender/llimagegl.o] Error 1
scons: building terminated because of errors.

!!! ERROR: games-simulation/secondlife-1.18.2.0 failed.
Call stack:
  ebuild.sh, line 1638:   Called dyn_compile
  ebuild.sh, line 985:   Called qa_call 'src_compile'
  ebuild.sh, line 44:   Called src_compile
  secondlife-1.18.2.0.ebuild, line 123:   Called die



Comment 133 Piotr Szymaniak 2007-08-25 18:05:13 UTC
(In reply to comment #132)
> Now for something on topic. The ebuild fails:
> *snip*

This looks similar to my errorlog (Comment #95, the link is dead now, it should be without ":1337" ;) and here's the solution that helps:


> As I said, in order to compile cleanly, you must switch to xorg-x11 opengl
> implementation before emerging, doing so (as root): "eselect opengl set
> xorg-x11"
> After emerging, you have to restore it (eg. "eselect opengl set nvidia")
Comment 134 Aniruddha 2007-08-25 21:04:13 UTC
> > As I said, in order to compile cleanly, you must switch to xorg-x11 opengl
> > implementation before emerging, doing so (as root): "eselect opengl set
> > xorg-x11"
> > After emerging, you have to restore it (eg. "eselect opengl set nvidia")
> 

That did the trick! Thanks :)
Comment 135 Aniruddha 2007-08-25 22:10:29 UTC
I have problems connecting. I searched through these messages but couldn't find a solution.
Comment 136 Aniruddha 2007-08-26 15:16:38 UTC
(In reply to comment #135)
> I have problems connecting. I searched through these messages but couldn't find
> a solution.
> 

All necesarry ports are opened:

13000-13050 	UDP
12036 	UDP
12035 	UDP
12043 	TCP
443 	TCP
Comment 137 Jeffrey Young 2007-08-30 20:37:34 UTC
Used matsuu overlay.  After client build and connecting to Agni, client closes.  Log states unable to open audio device.

Changed ebuild to reflect "standalone=no".  Got the following error:

i686-linux-client-release/llcommon/llsdserialize_xml.cpp:42:26: error: expat/expat.h: No such file or directory
i686-linux-client-release/llcommon/llsdserialize_xml.cpp:268: error: expected ',' or '...' before '*' token

Is "standalone=no" invalid with this ebuild?
Comment 138 MATSUU Takuto (RETIRED) gentoo-dev 2007-08-31 15:21:11 UTC
(In reply to comment #126)
> *sigh*
> 
> 1.18.2.0 and the same error
> 

fixed in 1.18.3.2. Please try.
If you still have the error, please try to remerge xmlrpc-epi.
Comment 139 Jeffrey Young 2007-08-31 22:12:49 UTC
ok, the ebuild for 1.18.3.2 doesn't exit after the audio engine failure now, but I don't have any sound either.  I had it in 1.18.1.2.  Is it disabled for 1.18.3.2 like the movie streaming?  The log doesn't even mention trying to init sound.
Comment 140 Jeffrey Young 2007-09-01 15:01:23 UTC
(In reply to comment #139)
> ok, the ebuild for 1.18.3.2 doesn't exit after the audio engine failure now,
> but I don't have any sound either.  I had it in 1.18.1.2.  Is it disabled for
> 1.18.3.2 like the movie streaming?  The log doesn't even mention trying to init
> sound.
> 

Didn't see how to edit my message, but wanted to ask:

Do I need to edit matsuu's ebuild and add "mypots=OPENSOURCE=no" to enable sound?
Comment 141 Piotr Szymaniak 2007-09-08 13:51:06 UTC
Also have a problem with 1.18.3.2, error log and `emerge --info` is here:
http://roslin.kicks-ass.net/download/gentoo/logs/
Comment 142 Martin Berkemeier 2007-09-13 16:56:12 UTC
(In reply to comment #138)
> (In reply to comment #126)
> > *sigh*
> > 
> > 1.18.2.0 and the same error
> > 
> 
> fixed in 1.18.3.2. Please try.
> If you still have the error, please try to remerge xmlrpc-epi.

now i have no sound here either
the warning is still there "WARNING: init_audio: Failed to create an appropriate Audio Engine"
even after re-emerge
Comment 143 Piotr Szymaniak 2007-09-24 20:18:22 UTC
(In reply to comment #141)
> Also have a problem with 1.18.3.2, error log and `emerge --info` is here:
> http://roslin.kicks-ass.net/download/gentoo/logs/

1.18.3.5 failed to compile. New logs under same URL.
Comment 144 Martin Berkemeier 2007-09-25 05:35:31 UTC
(In reply to comment #143)
> (In reply to comment #141)
> > Also have a problem with 1.18.3.2, error log and `emerge --info` is here:
> > http://roslin.kicks-ass.net/download/gentoo/logs/
> 
> 1.18.3.5 failed to compile. New logs under same URL.
> 

g_thread_init has something to do with gtk. run revdep-rebuild.
and dont forget to switch opengl to xorg-x11.
1.18.3.5 compiled fine and runs WITH sound... :)
Comment 145 John Whitlock 2007-10-11 03:49:06 UTC
I'm on an Intel Core 2, 64-bit system, building with elfio, fmod, and gstreamer flags turned on, and had several problems compiling.

When compiling llwindow/llgl.cpp, I got several errors of the form:
x86_64-linux-client-release/llwindow/llgl.cpp:725: error: 'glXGetProcAddressARB' was not declared in this scope

I'm using x11-drivers/nvidia-drivers-100.14.09 and media-libs/mesa-6.5.2-r1, and I run eselect opengl xorg-x11 before compiling (I get other errors if I don't).

Changing the line in llgl.cpp from:
# define GLH_EXT_GET_PROC_ADDRESS(p) glXGetProcAddressARB((const GLubyte*)(p))
to:
# define GLH_EXT_GET_PROC_ADDRESS(p) glXGetProcAddress((const GLubyte*)(p))
allowed the compile to complete and install

When I tried to run secondlife, it crashed after logging in.  To diagnose the problem, I tried building with the debug flag as well, but was unable to build the google perftools.  It appears the makefile is not well-written for parallel builds, so commenting out MAKEOPTS="-j3" allowed gentoo perftools to build.  I did this manually, not in the ebuild - I'm not sure how to do it, but I'm sure other ebuilds have to.

After that, secondlife compiled but did not install.  This is because of the line:
doexe ../lib_release_client/*-linux/lib* || die
I changed it to use lib_debug_client instead, if the debug use flag was set.

After running in a debugger, I was able to track down the problem to openjpeg-1.2.  I changed to openjpeg-1.1.1, and life was good again.  Until I tried to search my inventory, and got a crash.  But that's enough for one night.

I can post emerge.info, my modifed ebuild / patch files, etc., if needed.  Thanks for all the work you've done, Matsuu - I'm a lot closer than I was trying to compile from secondlife official sources!
Comment 146 Epicanis 2007-10-31 18:12:05 UTC
The current overlay doesn't appear to compile on amd64 (and possibly other platforms?), at least with gcc 4.2.2 p1.0.  It may be just an issue with -Werror though.  The error is:
----
x86_64-pc-linux-gnu-g++ -o x86_64-linux-client-release/llmath/llquaternion.o -c -g -pipe -Wall -Wno-reorder -Wno-trigraphs -Wno-sign-compare -Werror -fexceptions -pthread -D_REENTRANT -fno-math-errno -fsigned-char -fno-strict-aliasing -falign-loops=16 -ffast-math -O2 -D_FORTIFY_SOURCE=2 -DLL_STANDALONE -DLL_MESA_HEADLESS=0 -DLL_MESA=0 -march=athlon64 -O2 -mmmx -m3dnow -msse -msse2 -msse3 -mfpmath=sse -fomit-frame-pointer -pipe -DLL_LINUX=1 -DAPPID=secondlife -DLL_SDL=1 -DLL_FMOD=0 -DLL_X11=1 -DLL_GTK=1 -DLL_LIBXUL_ENABLED=0 -DLL_GSTREAMER_ENABLED=1 -DNDEBUG -DLL_RELEASE=1 -Illcommon -Illmath -Illwindow -Illaudio -Illcharacter -Illdatabase -Illhavok -Illimage -Illinventory -Illmedia -Illmessage -Illprimitive -Illrender -Illscene -Illui -Illvfs -Illwindow -Illxml -Ilscript -Ilscript/lscript_compile -I/var/tmp/portage/games-simulation/secondlife-1.18.4.0/work/linden/libraries/include -I/var/tmp/portage/games-simulation/secondlife-1.18.4.0/work/linden/libraries/include/havok -I/var/tmp/portage/games-simulation/secondlife-1.18.4.0/work/linden/libraries/x86_64-linux/include -I/usr/include/atk-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/SDL -I/usr/include/gstreamer-0.10 -I/usr/include/libxml2 -I/usr/include/apr-1 -I/var/tmp/portage/games-simulation/secondlife-1.18.4.0/work/linden/libraries/x86_64-linux/include/gstreamer-0.10 -I/var/tmp/portage/games-simulation/secondlife-1.18.4.0/work/linden/libraries/x86_64-linux/include/glib-2.0 -I/var/tmp/portage/games-simulation/secondlife-1.18.4.0/work/linden/libraries/x86_64-linux/include/glib-2.0/include -I/var/tmp/portage/games-simulation/secondlife-1.18.4.0/work/linden/libraries/x86_64-linux/include/libxml2 x86_64-linux-client-release/llmath/llquaternion.cpp
cc1plus: warnings being treated as errors
x86_64-linux-client-release/llmath/llquaternion.cpp: In function 'const char* OrderToString(LLQuaternion::Order)':
x86_64-linux-client-release/llmath/llquaternion.cpp:701: warning: deprecated conversion from string constant to 'char*'
x86_64-linux-client-release/llmath/llquaternion.cpp:704: warning: deprecated conversion from string constant to 'char*'
x86_64-linux-client-release/llmath/llquaternion.cpp:707: warning: deprecated conversion from string constant to 'char*'
x86_64-linux-client-release/llmath/llquaternion.cpp:710: warning: deprecated conversion from string constant to 'char*'
x86_64-linux-client-release/llmath/llquaternion.cpp:713: warning: deprecated conversion from string constant to 'char*'
x86_64-linux-client-release/llmath/llquaternion.cpp:716: warning: deprecated conversion from string constant to 'char*'
scons: *** [x86_64-linux-client-release/llmath/llquaternion.o] Error 1
scons: building terminated because of errors.
----
The precompiled i686 binary seems to run fine on my system other than having an abysmal software-rendering-like framerate.  Having never tried SL until last night, I have no idea if this is a problem getting direct rendering on AMD64 with the precompiled binary or if it's a normal lag problem with SL...
Comment 147 Hanno Böck gentoo-dev 2007-11-04 14:57:37 UTC
Created attachment 135152 [details, diff]
Disable -Werror in cflags

This patch will disable -Werror in cflags and avoid compilation breakage. matsuu, can you please add this to your overlay?

I'll also submit this to upstream.
Comment 148 MATSUU Takuto (RETIRED) gentoo-dev 2007-11-07 15:40:58 UTC
Removed -Werror in 1.18.4.1_rc. please try.

(In reply to comment #147)
> Created an attachment (id=135152) [edit]
> Disable -Werror in cflags
> 
> This patch will disable -Werror in cflags and avoid compilation breakage.
> matsuu, can you please add this to your overlay?
> 
> I'll also submit this to upstream.
> 

Comment 149 Hanno Böck gentoo-dev 2008-01-19 03:12:34 UTC
matsuu, latest cmake requires xmlrpc-c, which conflicts with xmlrpc-epi. Any solution for this?

Can sl use xmlrpc-c, too?
Comment 150 Dale Glass 2008-02-03 22:07:38 UTC
Created attachment 142612 [details]
xmlrpc-epi ebuild compatible with xmlrpc-c

I changed the ebuild to be compatible with xmlrpc-c.

The ebuild changes the library's name to libxmlrpc-epi.so, and moves the headers to /usr/include/xmlrpc-epi/.

I also added an USE flag to set whether the binaries are installed, and added an xmlrpc-epi- in front because the names seemed to be too generic and could conflict with something else.

I'm not experienced in making ebuilds, so I'd like some feedback on whether that's how it's supposed to be done.
Comment 151 MATSUU Takuto (RETIRED) gentoo-dev 2008-03-18 17:23:35 UTC
sorry, I'm very busy for my job. i have no time to bump until April.
I bumped secondlife-bin now. please try it.
Comment 152 Martin Berkemeier 2008-04-25 20:28:19 UTC
now its april the 25th... i think this is really long enough to wait so what the hell is going on.
Comment 153 dhubbard 2008-05-04 05:51:57 UTC
Created attachment 151751 [details]
updated ebuild for version 1.18.5.3

Version bump. This is an ebuild for 1.18.5.3 that works on my system (amd64, nvidia). This is not well tested! (Especially the dependencies are probably different on the newer version, but I haven't changed them.) Download the ebuild into /usr/portage/local/layman/secondlife/games-simulation/secondlife directory and the two patches (below) if you want to try it out.

it checks eselect opengl show and will die with a useful error message which should make the eselect opengl set process a little less painful. look in the ebuild for the message - it warns the user of the consequences of changing eselect opengl, and that they should change back.

the following two diffs from secondlife-1.18.4.1_rc-gentoo.patch have been included upstream, so I call the new patch files/secondlife-1.18.5.3-gentoo.patch:

linden/indra/newview/llfloaterhtml.cpp (the #ifdef now encloses the whole function)

linden/indra/newview/llurldispatcher.cpp

it also applies files/secondlife-vwr-3813-gtk-api-change-1.18.6.1.patch (from https://jira.secondlife.com/browse/VWR-3813)... if your gtk+ version is >= 2.12.3, the source expects a gchar* return and gtk+ changed to a const gchar* return, but casting the return to const gchar* will work in every case.
Comment 154 dhubbard 2008-05-04 05:54:16 UTC
Created attachment 151753 [details, diff]
new patch goes with secondlife-1.18.5.3.ebuild (see comment #153)
Comment 155 dhubbard 2008-05-04 05:54:48 UTC
Created attachment 151755 [details, diff]
new patch goes with secondlife-1.18.5.3.ebuild (see comment #153)
Comment 156 dhubbard 2008-05-08 00:52:14 UTC
Created attachment 152403 [details]
linden labs' mozlib2 required for secondlife-1.19.1.84244.ebuild

Version bump. This is for secondlife 1.19.1.4, though Linden Labs chose to call it secondlife-Branch_1-19-1-Viewer-r84244 so I call it secondlife-1.19.1.84244.

This ebuild is required unless you turn on USE="nomozlib" in which case secondlife still compiles, but it's pretty likely you won't be able to use the program successfully. mozlib2 is the integrated firefox that renders to an OpenGL surface.

/usr/portage/local/layman/secondlife/dev-libs/llmozlib-svn/llmozlib-svn-2.13.ebuild and run ebuild llmozlib-svn-2.13.ebuild digest

This ebuild has one patch.
Comment 157 dhubbard 2008-05-08 00:54:13 UTC
Created attachment 152405 [details, diff]
put in llmozlib/files - it fixes broken =gcc-3* detection
Comment 158 dhubbard 2008-05-08 14:17:57 UTC
Comment on attachment 152403 [details]
linden labs' mozlib2 required for secondlife-1.19.1.84244.ebuild

><HTML><HEAD/><BODY><PRE># Copyright 1999-2007 Gentoo Foundation
># Distributed under the terms of the GNU General Public License v2
># $Header: $
>
>inherit autotools eutils subversion
>
>DESCRIPTION="Linden Labs Mozilla Library (customized for secondlife)"
>HOMEPAGE="http://wiki.secondlife.com/wiki/LLMozLib2"
>ESVN_REPO_URI="/trunk/${P/-svn-}"
>ESVN_REPO_URI="https://svn.secondlife.com/svn/${PN/-svn}${ESVN_REPO_URI%%.*}/"
>ESVN_REVISION="${P/*.}"
>
>LICENSE="BSD"
>SLOT="0"
>KEYWORDS="~amd64 ~x86"
>IUSE=""
>
>DEPEND="dev-util/cvs
>	=sys-devel/gcc-3.4*
>	sys-apps/gawk
>	&gt;=dev-lang/perl-5.4
>	app-arch/unzip
>	app-arch/zip
>	x11-libs/gtk+"
># libllmozlib2.a (the only output file) is a static lib, so no RDEPENDs
>RDEPEND=""
>ESVN_PATCHES="${FILESDIR}/llmozlib-svn-gentoo.patch"
>
>src_compile() {
>	# follow the instructions in README-linux.txt
>	cd "${S}/build_mozilla" || die "failed to cd ${S}/build_mozilla"
>	einfo "checking out the latest firefox from CVS (inefficient)"
>	einfo "instead of trying to pick apart what linden labs is doing"
>	./linux-checkout_patch_build.sh || die
>	cd "${S}" || die "failed to cd ${S}"
>	./copy_products_linux.sh || die
>	./build-linux-llmozlib.sh || die
>}
>
>src_install() {
>	cd "${S}" || die "failed to cd ${S}"
>	LIBNAME="`sed -e 's/LIBNAME=//p;d' build-linux-llmozlib.sh | head -n1`"
>	mkdir -p "${D}/usr/share/games/secondlife/lib/llmozlib" || die
>	cp "${LIBNAME}.a" "${D}/usr/share/games/secondlife/lib/" || die
>	# or is lib_release supposed to be runtime_release?
>	#cd "libraries/`uname -m`-linux/lib_release"
>	#cp libmozjs.so libprofdirserviceprovider_s.a libnspr4.so libplc4.so \
>	#	libplds4.so
>	cp "libraries/`uname -m`-linux/lib_release"/* \
>		"${D}/usr/share/games/secondlife/lib/llmozlib/" || die
>}
></PRE></BODY></HTML>
Comment 159 dhubbard 2008-05-08 14:20:04 UTC
Created attachment 152481 [details]
linden labs' mozlib2 required for secondlife-1.19.1.84244.ebuild

Version bump. This is for secondlife 1.19.1.4, though Linden Labs chose to call
it secondlife-Branch_1-19-1-Viewer-r84244 so I call it secondlife-1.19.1.84244.

This ebuild is required unless you turn on USE="nomozlib" in which case
secondlife still compiles, but it's pretty likely you won't be able to use the
program successfully. mozlib2 is the integrated firefox that renders to an
OpenGL surface.

/usr/portage/local/layman/secondlife/dev-libs/llmozlib-svn/llmozlib-svn-2.13.ebuild
and run ebuild llmozlib-svn-2.13.ebuild digest

This ebuild has one patch.

Edit: fix the install location of libllmozlib2.a
Comment 160 dhubbard 2008-05-08 14:23:27 UTC
Created attachment 152485 [details, diff]
put in secondlife/files - new patch goes with secondlife-1.19.1.84244.ebuild

Version bump. This is for secondlife 1.19.1.4, though Linden Labs chose to call
it secondlife-Branch_1-19-1-Viewer-r84244 so I call it secondlife-1.19.1.84244.

/usr/portage/local/layman/secondlife/games-simulation/secondlife/files/secondlife-Branch_1-19-1-Viewer-r84244-gentoo.patch
Comment 161 dhubbard 2008-05-08 14:26:20 UTC
Created attachment 152487 [details]
Second Life 1.19.1.4 r84244 ebuild

Version bump. This is for secondlife 1.19.1.4, though Linden Labs chose to call
it secondlife-Branch_1-19-1-Viewer-r84244 so I call it secondlife-1.19.1.84244.

Tested on amd64 and x86. gstreamer not tested.
Comment 162 dhubbard 2008-05-10 16:32:00 UTC
Created attachment 152745 [details]
linden labs' mozlib2 required for secondlife-1.19.1.84244.ebuild

Version bump. This is for secondlife 1.19.1.4, though Linden Labs chose to call
it secondlife-Branch_1-19-1-Viewer-r84244 so I call it secondlife-1.19.1.84244.

This ebuild is required unless you turn on USE="nomozlib" in which case
secondlife still compiles, but it's pretty likely you won't be able to use the
program successfully. mozlib2 is the integrated firefox that renders to an
OpenGL surface.

/usr/portage/local/layman/secondlife/dev-libs/llmozlib-svn/llmozlib-svn-2.13.ebuild
and run ebuild llmozlib-svn-2.13.ebuild digest

This ebuild has one patch.

Edit: fix the install location of libllmozlib2.a
Edit: add dependency >=dev-libs/libIDL-0.8.0
Comment 163 dhubbard 2008-05-10 16:33:38 UTC
Created attachment 152747 [details, diff]
put in secondlife/files - new patch goes with secondlife-1.19.1.84244.ebuild

Version bump. This is for secondlife 1.19.1.4, though Linden Labs chose to call
it secondlife-Branch_1-19-1-Viewer-r84244 so I call it secondlife-1.19.1.84244.

/usr/portage/local/layman/secondlife/games-simulation/secondlife/files/secondlife-Branch_1-19-1-Viewer-r84244-gentoo.patch
Comment 164 dhubbard 2008-05-10 16:36:56 UTC
Created attachment 152749 [details]
Second Life 1.19.1.4 r84244 ebuild

Version bump. This is for secondlife 1.19.1.4, though Linden Labs chose to call
it secondlife-Branch_1-19-1-Viewer-r84244 so I call it secondlife-1.19.1.84244.

Tested on amd64 and x86. gstreamer not tested.

Edit: added nostandalone USE flag for x86_64 (STANDALONE=no by default on x86). However, do-not-run-directly-secondlife-bin crashes on x86_64 with USE="nostandalone":

# INFO: setStartupState: Startup state changing from 19 to 20
*** glibc detected *** bin/do-not-directly-run-secondlife-bin: double free or corruption (fasttop): 0x0000000004cd89a0 ***
======= Backtrace: =========
/lib/libc.so.6[0x7fe993330aad]
/lib/libc.so.6(cfree+0x76)[0x7fe993332796]
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/libstdc++.so.6(_ZNSs6assignERKSs+0xac)[0x7fe993b3194c]
bin/do-not-directly-run-secondlife-bin[0x198e895]
Comment 165 Lubomir Schmidt 2008-05-11 08:38:42 UTC
The ebuild in the secondlife-overlay do not work for me:

i686-pc-linux-gnu-g++ -o i686-linux-client-release/llrender/llimagegl.o -c -g -pipe -Wall -Wno-reorder -Wno-trigraphs -Wno-sign-compare -fexceptions -pthread -D_REENTRANT -fno-math-errno -fsigned-char -fno-strict-aliasing -falign-loops=16 -ffast-math -O2 -march=pentium-m -pipe -D_FORTIFY_SOURCE=2 -DLL_STANDALONE -DLL_MESA_HEADLESS=0 -DLL_MESA=0 -DLL_LINUX=1 -DAPPID=secondlife -DLL_SDL=1 -DLL_FMOD=0 -DLL_X11=1 -DLL_GTK=1 -DLL_ELFBIN=0 -DLL_LLMOZLIB_ENABLED=0 -DLL_GSTREAMER_ENABLED=1 -DNDEBUG -DLL_RELEASE=1 -Illcommon -Illmath -Illwindow -Illaudio -Illcharacter -Illcrashlogger -Illdatabase -Illhavok -Illimage -Illinventory -Illmedia -Illmessage -Illprimitive -Illrender -Illscene -Illui -Illvfs -Illwindow -Illxml -Ilscript -Ilscript/lscript_compile -I/var/tmp/portage/games-simulation/secondlife-1.19.1.4/work/linden/libraries/include -I/var/tmp/portage/games-simulation/secondlife-1.19.1.4/work/linden/libraries/include/havok -I/var/tmp/portage/games-simulation/secondlife-1.19.1.4/work/linden/libraries/i686-linux/include -I/usr/include/atk-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/SDL -I/usr/include/gstreamer-0.10 -I/usr/include/libxml2 -I/usr/include/apr-1 -I/usr/kerberos/include -I/var/tmp/portage/games-simulation/secondlife-1.19.1.4/work/linden/libraries/i686-linux/include/gstreamer-0.10 -I/var/tmp/portage/games-simulation/secondlife-1.19.1.4/work/linden/libraries/i686-linux/include/glib-2.0 -I/var/tmp/portage/games-simulation/secondlife-1.19.1.4/work/linden/libraries/i686-linux/include/glib-2.0/include -I/var/tmp/portage/games-simulation/secondlife-1.19.1.4/work/linden/libraries/i686-linux/include/libxml2 i686-linux-client-release/llrender/llimagegl.cpp
i686-linux-client-release/llrender/llimagegl.cpp: In static member function 'static void LLImageGL::bindExternalTexture(LLGLuint, S32, LLGLenum)':
i686-linux-client-release/llrender/llimagegl.cpp:131: error: 'glActiveTextureARB' was not declared in this scope
i686-linux-client-release/llrender/llimagegl.cpp:132: error: 'glClientActiveTextureARB' was not declared in this scope
i686-linux-client-release/llrender/llimagegl.cpp: In static member function 'static void LLImageGL::unbindTexture(S32, LLGLenum)':
i686-linux-client-release/llrender/llimagegl.cpp:144: error: 'glActiveTextureARB' was not declared in this scope
i686-linux-client-release/llrender/llimagegl.cpp:145: error: 'glClientActiveTextureARB' was not declared in this scope
i686-linux-client-release/llrender/llimagegl.cpp: In static member function 'static void LLImageGL::unbindTexture(S32)':
i686-linux-client-release/llrender/llimagegl.cpp:158: error: 'glActiveTextureARB' was not declared in this scope
i686-linux-client-release/llrender/llimagegl.cpp:159: error: 'glClientActiveTextureARB' was not declared in this scope
i686-linux-client-release/llrender/llimagegl.cpp: In member function 'BOOL LLImageGL::bindTextureInternal(S32) const':
i686-linux-client-release/llrender/llimagegl.cpp:422: error: 'glActiveTextureARB' was not declared in this scope
i686-linux-client-release/llrender/llimagegl.cpp: In member function 'void LLImageGL::destroyGLTexture()':
i686-linux-client-release/llrender/llimagegl.cpp:1060: error: 'glActiveTextureARB' was not declared in this scope
scons: *** [i686-linux-client-release/llrender/llimagegl.o] Error 1
scons: building terminated because of errors.
 *
 * ERROR: games-simulation/secondlife-1.19.1.4 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2348:  Called die
 * The specific snippet of code:
 *       TEMP_BUILD_DIR= scons ${myopts} || die
 *  The die message:
 *   (no error message)
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/games-simulation/secondlife-1.19.1.4/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/games-simulation/secondlife-1.19.1.4/temp/environment'.
 *

 * Messages for package games-simulation/secondlife-1.19.1.4:

 *
 * ERROR: games-simulation/secondlife-1.19.1.4 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2348:  Called die
 * The specific snippet of code:
 *       TEMP_BUILD_DIR= scons ${myopts} || die
 *  The die message:
 *   (no error message)
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/games-simulation/secondlife-1.19.1.4/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/games-simulation/secondlife-1.19.1.4/temp/environment'.
 *
Comment 166 MATSUU Takuto (RETIRED) gentoo-dev 2008-05-13 15:37:50 UTC
see #89

(In reply to comment #165)
> The ebuild in the secondlife-overlay do not work for me:
> 
> i686-pc-linux-gnu-g++ -o i686-linux-client-release/llrender/llimagegl.o -c -g
> -pipe -Wall -Wno-reorder -Wno-trigraphs -Wno-sign-compare -fexceptions -pthread
> -D_REENTRANT -fno-math-errno -fsigned-char -fno-strict-aliasing
> -falign-loops=16 -ffast-math -O2 -march=pentium-m -pipe -D_FORTIFY_SOURCE=2
> -DLL_STANDALONE -DLL_MESA_HEADLESS=0 -DLL_MESA=0 -DLL_LINUX=1
> -DAPPID=secondlife -DLL_SDL=1 -DLL_FMOD=0 -DLL_X11=1 -DLL_GTK=1 -DLL_ELFBIN=0
> -DLL_LLMOZLIB_ENABLED=0 -DLL_GSTREAMER_ENABLED=1 -DNDEBUG -DLL_RELEASE=1
> -Illcommon -Illmath -Illwindow -Illaudio -Illcharacter -Illcrashlogger
> -Illdatabase -Illhavok -Illimage -Illinventory -Illmedia -Illmessage
> -Illprimitive -Illrender -Illscene -Illui -Illvfs -Illwindow -Illxml -Ilscript
> -Ilscript/lscript_compile
> -I/var/tmp/portage/games-simulation/secondlife-1.19.1.4/work/linden/libraries/include
> -I/var/tmp/portage/games-simulation/secondlife-1.19.1.4/work/linden/libraries/include/havok
> -I/var/tmp/portage/games-simulation/secondlife-1.19.1.4/work/linden/libraries/i686-linux/include
> -I/usr/include/atk-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
> -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12
> -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0
> -I/usr/include/SDL -I/usr/include/gstreamer-0.10 -I/usr/include/libxml2
> -I/usr/include/apr-1 -I/usr/kerberos/include
> -I/var/tmp/portage/games-simulation/secondlife-1.19.1.4/work/linden/libraries/i686-linux/include/gstreamer-0.10
> -I/var/tmp/portage/games-simulation/secondlife-1.19.1.4/work/linden/libraries/i686-linux/include/glib-2.0
> -I/var/tmp/portage/games-simulation/secondlife-1.19.1.4/work/linden/libraries/i686-linux/include/glib-2.0/include
> -I/var/tmp/portage/games-simulation/secondlife-1.19.1.4/work/linden/libraries/i686-linux/include/libxml2
> i686-linux-client-release/llrender/llimagegl.cpp
> i686-linux-client-release/llrender/llimagegl.cpp: In static member function
> 'static void LLImageGL::bindExternalTexture(LLGLuint, S32, LLGLenum)':
> i686-linux-client-release/llrender/llimagegl.cpp:131: error:
> 'glActiveTextureARB' was not declared in this scope
> i686-linux-client-release/llrender/llimagegl.cpp:132: error:
> 'glClientActiveTextureARB' was not declared in this scope
> i686-linux-client-release/llrender/llimagegl.cpp: In static member function
> 'static void LLImageGL::unbindTexture(S32, LLGLenum)':
> i686-linux-client-release/llrender/llimagegl.cpp:144: error:
> 'glActiveTextureARB' was not declared in this scope
> i686-linux-client-release/llrender/llimagegl.cpp:145: error:
> 'glClientActiveTextureARB' was not declared in this scope
> i686-linux-client-release/llrender/llimagegl.cpp: In static member function
> 'static void LLImageGL::unbindTexture(S32)':
> i686-linux-client-release/llrender/llimagegl.cpp:158: error:
> 'glActiveTextureARB' was not declared in this scope
> i686-linux-client-release/llrender/llimagegl.cpp:159: error:
> 'glClientActiveTextureARB' was not declared in this scope
> i686-linux-client-release/llrender/llimagegl.cpp: In member function 'BOOL
> LLImageGL::bindTextureInternal(S32) const':
> i686-linux-client-release/llrender/llimagegl.cpp:422: error:
> 'glActiveTextureARB' was not declared in this scope
> i686-linux-client-release/llrender/llimagegl.cpp: In member function 'void
> LLImageGL::destroyGLTexture()':
> i686-linux-client-release/llrender/llimagegl.cpp:1060: error:
> 'glActiveTextureARB' was not declared in this scope
> scons: *** [i686-linux-client-release/llrender/llimagegl.o] Error 1
> scons: building terminated because of errors.
>  *
>  * ERROR: games-simulation/secondlife-1.19.1.4 failed.
>  * Call stack:
>  *               ebuild.sh, line   49:  Called src_compile
>  *             environment, line 2348:  Called die
>  * The specific snippet of code:
>  *       TEMP_BUILD_DIR= scons ${myopts} || die
>  *  The die message:
>  *   (no error message)
>  *
>  * If you need support, post the topmost build error, and the call stack if
> relevant.
>  * A complete build log is located at
> '/var/tmp/portage/games-simulation/secondlife-1.19.1.4/temp/build.log'.
>  * The ebuild environment file is located at
> '/var/tmp/portage/games-simulation/secondlife-1.19.1.4/temp/environment'.
>  *
> 
>  * Messages for package games-simulation/secondlife-1.19.1.4:
> 
>  *
>  * ERROR: games-simulation/secondlife-1.19.1.4 failed.
>  * Call stack:
>  *               ebuild.sh, line   49:  Called src_compile
>  *             environment, line 2348:  Called die
>  * The specific snippet of code:
>  *       TEMP_BUILD_DIR= scons ${myopts} || die
>  *  The die message:
>  *   (no error message)
>  *
>  * If you need support, post the topmost build error, and the call stack if
> relevant.
>  * A complete build log is located at
> '/var/tmp/portage/games-simulation/secondlife-1.19.1.4/temp/build.log'.
>  * The ebuild environment file is located at
> '/var/tmp/portage/games-simulation/secondlife-1.19.1.4/temp/environment'.
>  *
> 

Comment 167 Torsten Kaiser 2008-05-18 16:53:34 UTC
The current ebuild in the overlay is broken with the current version of c-ares
(net-dns/c-ares-1.5.1)

x86_64-linux-client-release/llcommon/llares.cpp: In member function 'void LLAres::getHostByName(const char*, LLAres::HostResponder*, int)':
x86_64-linux-client-release/llcommon/llares.cpp:147: error: invalid conversion from 'void (*)(void*, int, hostent*)' to 'void (*)(void*, int, int, hostent*)'
x86_64-linux-client-release/llcommon/llares.cpp:147: error:   initializing argument 4 of 'void ares_gethostbyname(ares_channeldata*, const char*, int, void (*)(void*, int, int, hostent*), void*)'
x86_64-linux-client-release/llcommon/llares.cpp: In member function 'void LLAres::getNameInfo(const sockaddr&, socklen_t, int, LLAres::NameInfoResponder*)':
x86_64-linux-client-release/llcommon/llares.cpp:415: error: invalid conversion from 'void (*)(void*, int, char*, char*)' to 'void (*)(void*, int, int, char*, char*)'
x86_64-linux-client-release/llcommon/llares.cpp:415: error:   initializing argument 5 of 'void ares_getnameinfo(ares_channeldata*, const sockaddr*, socklen_t, int, void (*)(void*, int, int, char*, char*), void*)'
x86_64-linux-client-release/llcommon/llares.cpp: In member function 'void LLAres::search(const std::string&, LLResType, LLAres::QueryResponder*)':
x86_64-linux-client-release/llcommon/llares.cpp:443: error: invalid conversion from 'void (*)(void*, int, unsigned char*, int)' to 'void (*)(void*, int, int, unsigned char*, int)'
x86_64-linux-client-release/llcommon/llares.cpp:443: error:   initializing argument 5 of 'void ares_search(ares_channeldata*, const char*, int, int, void (*)(void*, int, int, unsigned char*, int), void*)'
scons: *** [x86_64-linux-client-release/llcommon/llares.o] Error 1
scons: building terminated because of errors.


Bumping the ebuild to Branch_1-20-Viewer-r86487 does not help, you might need to change the DEPEND?
Comment 168 MATSUU Takuto (RETIRED) gentoo-dev 2008-05-19 15:38:12 UTC
(In reply to comment #167)
> The current ebuild in the overlay is broken with the current version of c-ares
> (net-dns/c-ares-1.5.1)

Fixed in svn.
Comment 169 Hanno Böck gentoo-dev 2008-06-09 11:47:12 UTC
I get with the latest overlay:

 -I/usr/include/libpng12 -I/usr/include/pixman-1 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/SDL -I/usr/include/gstreamer-0.10 -I/usr/include/libxml2 -I/usr/include/apr-1 -I/var/tmp/portage/games-simulation/secondlife-1.19.1.4-r1/work/linden/libraries/i686-linux/include/gstreamer-0.10 -I/var/tmp/portage/games-simulation/secondlife-1.19.1.4-r1/work/linden/libraries/i686-linux/include/glib-2.0 -I/var/tmp/portage/games-simulation/secondlife-1.19.1.4-r1/work/linden/libraries/i686-linux/include/glib-2.0/include -I/var/tmp/portage/games-simulation/secondlife-1.19.1.4-r1/work/linden/libraries/i686-linux/include/libxml2 i686-linux-client-release/llmessage/llmessagethrottle.cpp
In file included from i686-linux-client-release/llmessage/llmessagethrottle.cpp:34:
llcommon/llhash.h:42:31: error: ext/hashtable.h: No such file or directory
In file included from i686-linux-client-release/llmessage/llmessagethrottle.cpp:34:
llcommon/llhash.h: In function 'size_t llhash(T)':
llcommon/llhash.h:62: error: 'hash' is not a member of '__gnu_cxx'
llcommon/llhash.h:62: error: expected primary-expression before '>' token
llcommon/llhash.h:62: error: 'H' was not declared in this scope
scons: *** [i686-linux-client-release/llmessage/llmessagethrottle.o] Error 1
scons: building terminated because of errors.
Comment 170 Hanno Böck gentoo-dev 2008-06-12 18:14:31 UTC
Created attachment 156521 [details, diff]
gcc43 fixes for secondlife

Some gcc 4.3 fixes. If anyone wants to send upstream feel free. I'll probably not get to it within the next days.
Comment 171 Manu Eder 2008-06-15 19:55:13 UTC
trying to build secondlife from source with secondlife-1.19.1.4-r1.ebuild I get the following:

ar rc lib_release_client/i686-linux/libllui.a i686-linux-client-release/llui/llalertdialog.o i686-linux-client-release/llui/llbutton.o i686-linux-client-release/llui/llcheckboxctrl.o i686-linux-client-release/llui/llclipboard.o i686-linux-client-release/llui/llcombobox.o i686-linux-client-release/llui/llctrlselectioninterface.o i686-linux-client-release/llui/lldraghandle.o i686-linux-client-release/llui/lleditmenuhandler.o i686-linux-client-release/llui/llfloater.o i686-linux-client-release/llui/llfocusmgr.o i686-linux-client-release/llui/lliconctrl.o i686-linux-client-release/llui/llkeywords.o i686-linux-client-release/llui/lllineeditor.o i686-linux-client-release/llui/llmenugl.o i686-linux-client-release/llui/llmodaldialog.o i686-linux-client-release/llui/llmultislider.o i686-linux-client-release/llui/llmultisliderctrl.o i686-linux-client-release/llui/llpanel.o i686-linux-client-release/llui/llradiogroup.o i686-linux-client-release/llui/llresizebar.o i686-linux-client-release/llui/llresizehandle.o i686-linux-client-release/llui/llresmgr.o i686-linux-client-release/llui/llrootview.o i686-linux-client-release/llui/llscrollbar.o i686-linux-client-release/llui/llscrollcontainer.o i686-linux-client-release/llui/llscrollingpanellist.o i686-linux-client-release/llui/llscrolllistctrl.o i686-linux-client-release/llui/llslider.o i686-linux-client-release/llui/llsliderctrl.o i686-linux-client-release/llui/llspinctrl.o i686-linux-client-release/llui/llstyle.o i686-linux-client-release/llui/lltabcontainer.o i686-linux-client-release/llui/lltabcontainervertical.o i686-linux-client-release/llui/lltextbox.o i686-linux-client-release/llui/lltexteditor.o i686-linux-client-release/llui/llui.o i686-linux-client-release/llui/lluictrl.o i686-linux-client-release/llui/lluictrlfactory.o i686-linux-client-release/llui/lluistring.o i686-linux-client-release/llui/llundo.o i686-linux-client-release/llui/llview.o i686-linux-client-release/llui/llviewborder.o i686-linux-client-release/llui/llviewquery.o i686-linux-client-release/llui/llmultislider.o i686-linux-client-release/llui/llmultisliderctrl.o
ranlib lib_release_client/i686-linux/libllui.a
scons: *** Source `/var/tmp/portage/games-simulation/secondlife-1.19.1.4-r1/work/linden/libraries/i686-linux/lib_release_client/libaprutil-1.so' not found, needed by target `linux_crash_logger/linux-crash-logger-i686-bin-globalsyms'.  Stop.
scons: building terminated because of errors.
 * 
 * ERROR: games-simulation/secondlife-1.19.1.4-r1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2339:  Called die
 * The specific snippet of code:
 *       TEMP_BUILD_DIR= scons ${myopts} || die
 *  The die message:
 *   (no error message)
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/games-simulation/secondlife-1.19.1.4-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/games-simulation/secondlife-1.19.1.4-r1/temp/environment'.
 * 

The referenced file /var/tmp/portage/games-simulation/secondlife-1.19.1.4-r1/work/linden/libraries/i686-linux/lib_release_client/libaprutil-1.so is a symlink to a nonexistant libaprutil-1.so.0 in the same directory.
Reading through http://wiki.secondlife.com/wiki/Compiling_the_viewer_(Linux)#Installing_the_required_dependencies_.28prepackaged_by_Linden_labs.29 I figure this is one of the files, that should be added to the directory structure by this line in the ebuild:
unpack slviewer-linux-libs-${MY_PV}.tar.gz
So either that doesn't do what it should, or the files get deleted during the build process??
Also I don't understand why the ebuild both depends on all the packages listed in the above link AND unpacks slviewer-linux-libs-${MY_PV}.tar.gz - from reading through the instructions at the secondlife wiki I got the impression it was EITHER do one or the other??

Anyway, I understand too little of any of this to be able to fix it myself - have been trying for a few hours already. Could anyone help me out?

I have tried apr and apr-util versions 1.3.0, 1.2.11 (with apr-util version 1.2.10) and 1.2.8.
Comment 172 the_mgt 2008-07-29 12:41:11 UTC
The secondlife-1.19.1.84244.ebuild is seriously b0rked! It mixes the standalone with the provided libs approach, the patch belonging to the ebuild does funny things with the xmlrpc-epi pathes... Also, the llmozlib build seems rather blown, it could be depending on gentoos xulrunner and seamonkey builds, i think. And it does NOT install llmozlib2.h!!

I am trying to fix these things, but I can only check for x86 systems. Will upload my stuff until next weekend.
Comment 173 Denis Pesotsky 2008-09-24 15:29:27 UTC
Here are newer ebuilds: http://gentoo.zugaina.org/games-simulation.html.en
Comment 174 Joe Peterson (RETIRED) gentoo-dev 2009-04-16 19:44:31 UTC
secondlife-bin is now in portage (has been for a while, but just found this bug).
I'll add a src build as soon as we have one.
Comment 175 Joe Peterson (RETIRED) gentoo-dev 2009-05-27 00:21:46 UTC
Just added a build-from-source ebuild to the tree:

    games-simulation/secondlife

It is the newest release candidate, and it is keyworded for ~amd64.  If you have x86 and can test, please let me know if this works.

Still working on audio (and streaming and voice, of course), but the viewer seems to work.  The font looks different than that used in the binary dist, however.