Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

1.18.3.2 Compilation errors (Linux Mint 3.0)

Jabb3r Panhandle
Registered User
Join date: 27 Jan 2007
Posts: 20
09-03-2007 05:52
Hi, I'm reletively new to linux so I using the building from source as a learning experience.

Prob I'm getting is after so long using the build line

scons DISTCC=no BTARGET=client BUILD=releasefordownload MOZLIB=no

I get this error

/tmp/jabb3r/home/jabb3r/Downloads/Branch_1-18-3-Viewer/indra/i686-linux-client-releasefordownload/llmessage/llblowfishcipher.cpp:56:25: openssl/evp.h: No such file or directory
/tmp/jabb3r/home/jabb3r/Downloads/Branch_1-18-3-Viewer/indra/i686-linux-client-releasefordownload/llmessage/llblowfishcipher.cpp: In member function `virtual U32 LLBlowfishCipher::encrypt(const U8*, U32, U8*, U32)':
/tmp/jabb3r/home/jabb3r/Downloads/Branch_1-18-3-Viewer/indra/i686-linux-client-releasefordownload/llmessage/llblowfishcipher.cpp:65: error: `EVP_CIPHER_CTX' was not declared in this scope
/tmp/jabb3r/home/jabb3r/Downloads/Branch_1-18-3-Viewer/indra/i686-linux-client-releasefordownload/llmessage/llblowfishcipher.cpp:65: error: expected `;' before "context"
/tmp/jabb3r/home/jabb3r/Downloads/Branch_1-18-3-Viewer/indra/i686-linux-client-releasefordownload/llmessage/llblowfishcipher.cpp:66: error: `context' was not declared in this scope
/tmp/jabb3r/home/jabb3r/Downloads/Branch_1-18-3-Viewer/indra/i686-linux-client-releasefordownload/llmessage/llblowfishcipher.cpp:66: error: `EVP_CIPHER_CTX_init' was not declared in this scope
/tmp/jabb3r/home/jabb3r/Downloads/Branch_1-18-3-Viewer/indra/i686-linux-client-releasefordownload/llmessage/llblowfishcipher.cpp:71: error: `EVP_bf_cbc' was not declared in this scope
/tmp/jabb3r/home/jabb3r/Downloads/Branch_1-18-3-Viewer/indra/i686-linux-client-releasefordownload/llmessage/llblowfishcipher.cpp:71: error: `EVP_EncryptInit_ex' was not declared in this scope
/tmp/jabb3r/home/jabb3r/Downloads/Branch_1-18-3-Viewer/indra/i686-linux-client-releasefordownload/llmessage/llblowfishcipher.cpp:72: error: `EVP_CIPHER_CTX_set_key_length' was not declared in this scope
/tmp/jabb3r/home/jabb3r/Downloads/Branch_1-18-3-Viewer/indra/i686-linux-client-releasefordownload/llmessage/llblowfishcipher.cpp:80: error: `EVP_CIPHER_CTX_block_size' was not declared in this scope
/tmp/jabb3r/home/jabb3r/Downloads/Branch_1-18-3-Viewer/indra/i686-linux-client-releasefordownload/llmessage/llblowfishcipher.cpp:81: error: `EVP_CIPHER_CTX_key_length' was not declared in this scope
/tmp/jabb3r/home/jabb3r/Downloads/Branch_1-18-3-Viewer/indra/i686-linux-client-releasefordownload/llmessage/llblowfishcipher.cpp:82: error: `EVP_CIPHER_CTX_iv_length' was not declared in this scope
/tmp/jabb3r/home/jabb3r/Downloads/Branch_1-18-3-Viewer/indra/i686-linux-client-releasefordownload/llmessage/llblowfishcipher.cpp:94: error: `EVP_EncryptUpdate' was not declared in this scope
/tmp/jabb3r/home/jabb3r/Downloads/Branch_1-18-3-Viewer/indra/i686-linux-client-releasefordownload/llmessage/llblowfishcipher.cpp:94: warning: unused variable 'EVP_EncryptUpdate'
/tmp/jabb3r/home/jabb3r/Downloads/Branch_1-18-3-Viewer/indra/i686-linux-client-releasefordownload/llmessage/llblowfishcipher.cpp:102: error: `EVP_EncryptFinal_ex' was not declared in this scope
/tmp/jabb3r/home/jabb3r/Downloads/Branch_1-18-3-Viewer/indra/i686-linux-client-releasefordownload/llmessage/llblowfishcipher.cpp:102: warning: unused variable 'EVP_EncryptFinal_ex'
/tmp/jabb3r/home/jabb3r/Downloads/Branch_1-18-3-Viewer/indra/i686-linux-client-releasefordownload/llmessage/llblowfishcipher.cpp:109: error: `EVP_CIPHER_CTX_cleanup' was not declared in this scope
/tmp/jabb3r/home/jabb3r/Downloads/Branch_1-18-3-Viewer/indra/i686-linux-client-releasefordownload/llmessage/llblowfishcipher.cpp:65: warning: unused variable 'EVP_CIPHER_CTX'
/tmp/jabb3r/home/jabb3r/Downloads/Branch_1-18-3-Viewer/indra/i686-linux-client-releasefordownload/llmessage/llblowfishcipher.cpp:66: warning: unused variable 'EVP_CIPHER_CTX_init'
/tmp/jabb3r/home/jabb3r/Downloads/Branch_1-18-3-Viewer/indra/i686-linux-client-releasefordownload/llmessage/llblowfishcipher.cpp:71: warning: unused variable 'EVP_bf_cbc'
/tmp/jabb3r/home/jabb3r/Downloads/Branch_1-18-3-Viewer/indra/i686-linux-client-releasefordownload/llmessage/llblowfishcipher.cpp:72: warning: unused variable 'EVP_CIPHER_CTX_set_key_length'
/tmp/jabb3r/home/jabb3r/Downloads/Branch_1-18-3-Viewer/indra/i686-linux-client-releasefordownload/llmessage/llblowfishcipher.cpp:80: warning: unused variable 'EVP_CIPHER_CTX_block_size'
/tmp/jabb3r/home/jabb3r/Downloads/Branch_1-18-3-Viewer/indra/i686-linux-client-releasefordownload/llmessage/llblowfishcipher.cpp:81: warning: unused variable 'EVP_CIPHER_CTX_key_length'
/tmp/jabb3r/home/jabb3r/Downloads/Branch_1-18-3-Viewer/indra/i686-linux-client-releasefordownload/llmessage/llblowfishcipher.cpp:82: warning: unused variable 'EVP_CIPHER_CTX_iv_length'
scons: *** [/tmp/jabb3r/home/jabb3r/Downloads/Branch_1-18-3-Viewer/indra/i686-linux-client-releasefordownload/llmessage/llblowfishcipher.o] Error 1
scons: building terminated because of errors.


The only thing I see that it could be is openssl and according to apt-get I have the latest version installed so now I'm stumped. I have all the other dependecies installed from the Wiki, scons, g++-3.4, flex, bison, I followed the guide to the letter.

Linux Mint is a tweaked ubuntu really so I'm wanderin if somethings missing from the build compared to ubuntu. Apart from that I'm stumped

Any help would be appreciated.

Thanks
Tofu Linden
Linden Lab Employee
Join date: 29 Aug 2006
Posts: 471
09-03-2007 06:02
Hi!

You're missing the openssl headers somehow. Perhaps you still need to install the openssl-dev package.

This isn't a good forum for issues relating to the opensource release - you should ideally join the SLDev mailing list.
Jabb3r Panhandle
Registered User
Join date: 27 Jan 2007
Posts: 20
09-03-2007 06:13
From: Tofu Linden
Hi!

You're missing the openssl headers somehow. Perhaps you still need to install the openssl-dev package.

This isn't a good forum for issues relating to the opensource release - you should ideally join the SLDev mailing list.


I realised moments after I posted and went back to the wiki to look for libraries related to ssl and have just got the libssl-dev package installed. Retrying the build now. Guess I'll need the package you mentioned too.

Thanks muchly for the help.
Jabb3r Panhandle
Registered User
Join date: 27 Jan 2007
Posts: 20
09-03-2007 06:32
Just a lil update for anyone who has the same error

the libssl-dev package seems to have done the trick.

Compiling as I post. : )

*waits for next error*
Jabb3r Panhandle
Registered User
Join date: 27 Jan 2007
Posts: 20
09-03-2007 08:25
... and over 2 and a half hours later of compiling, here it is, lol

/usr/bin/ld: cannot find -lgthread-2.0
collect2: ld returned 1 exit status
scons: *** [newview/secondlife-i686-bin-globalsyms] Error 1
scons: building terminated because of errors.


No doubt more dependency problems that we're not informed about, pffft

Oh well

I can't say I've learned nothing @ all. The wiki needs lookin @. I've learned that. Why's it say "If you choose to use the provided libraries you can skip to Compiling the client." if yu damn well can't.

How stupid is it to not check you have all dependencies in the first place before the compiling takes place and not to waste over 2 and a half hours for it to say "oh yeh btw, yu don't have this"

I know I know, not the place, just needed to vent a lil. Will see whats up...
Asriazh Frye
Smart Cookie
Join date: 30 Sep 2006
Posts: 173
09-03-2007 09:35
gtread is part of glib. The libraries the lindens provide contain only parts of what you need regarding glib. During the compile process, it looks for the rest on your system. do you have libglib2.0-dev installed?
And even then the linden provided glib might not compatible with the ones you got with libglib2.0-dev. If so, get "libglib-2.0.so" "libglib-2.0.so.0" "libglib-2.0.so.0.1400.0" and put them into "libraries/i686-linux/lib_release_client". After that the source should compile fine ^_^

-Asriazh
Jabb3r Panhandle
Registered User
Join date: 27 Jan 2007
Posts: 20
09-04-2007 12:40
From: Asriazh Frye
gtread is part of glib. The libraries the lindens provide contain only parts of what you need regarding glib. During the compile process, it looks for the rest on your system. do you have libglib2.0-dev installed?
And even then the linden provided glib might not compatible with the ones you got with libglib2.0-dev. If so, get "libglib-2.0.so" "libglib-2.0.so.0" "libglib-2.0.so.0.1400.0" and put them into "libraries/i686-linux/lib_release_client". After that the source should compile fine ^_^

-Asriazh


Thanks for the reply, I gave it neck yesterday after it failed so thought I'd have a go again now, luckily I remembered to check my post just incase. I'll install the package you mention and give it another go.

Thanks again, appreciated, fingers x'd! :)

Edit: Just checked and I don't seem to have the libglib-2.0.so.0.1400.0 file, but I do have the rest so I'll try and compile without copying libglib-2.0.so.0.1400.0 over.
Jabb3r Panhandle
Registered User
Join date: 27 Jan 2007
Posts: 20
09-04-2007 15:02
Oooh luvly, a new dependency

latest error....

/usr/bin/ld: cannot find -lGL
collect2: ld returned 1 exit status
scons: *** [newview/secondlife-i686-bin-globalsyms] Error 1
scons: building terminated because of errors.
jabb3r@Pluto:~/Downloads/Branch_1-18-3-Viewer/indra$

I Give up for today.

Sys says usr/bin/ld don't exist, pffft

I guess it's summut to do with openGL ?
Asriazh Frye
Smart Cookie
Join date: 30 Sep 2006
Posts: 173
09-04-2007 15:33
Next solution ^^;

cd /usr/lib
sudo ln -s libGL.so.1 libGL.so

Have fun ^_^

-Asriazh
Jabb3r Panhandle
Registered User
Join date: 27 Jan 2007
Posts: 20
09-06-2007 05:30
From: Asriazh Frye
Next solution ^^;

cd /usr/lib
sudo ln -s libGL.so.1 libGL.so

Have fun ^_^

-Asriazh


Ok I is back. G/f's birthday yesterday so I dare not spend me time infront of the screen.

I've done those kinda links in the past to get WinFF to work, but I'm not sure how you worked out I needed them from the error.

Anyhoo, will apply and have another go.

Thanks again

Jabb3r
Jabb3r Panhandle
Registered User
Join date: 27 Jan 2007
Posts: 20
09-06-2007 11:14
Next...

/usr/bin/ld: cannot find -lGLU
collect2: ld returned 1 exit status
scons: *** [newview/secondlife-i686-bin-globalsyms] Error 1
scons: building terminated because of errors.

Is this a case of

cd /usr/lib
ln -s libGLU.so.1 libGLU.so ?

Edit: I've tried doin the above before I posted and got this...

sfile -lvorbis -ldb-4.2 -ljpeg -lopenjpeg -lpng12 -lGL -lGLU
collect2: ld terminated with signal 9 [Killed]
scons: *** [newview/secondlife-i686-bin-globalsyms] Error 1
scons: building terminated because of errors.
Asriazh Frye
Smart Cookie
Join date: 30 Sep 2006
Posts: 173
09-07-2007 03:16
From: Jabb3r Panhandle
Next...

/usr/bin/ld: cannot find -lGLU
collect2: ld returned 1 exit status
scons: *** [newview/secondlife-i686-bin-globalsyms] Error 1
scons: building terminated because of errors.

Is this a case of

cd /usr/lib
ln -s libGLU.so.1 libGLU.so ?

Edit: I've tried doin the above before I posted and got this...

sfile -lvorbis -ldb-4.2 -ljpeg -lopenjpeg -lpng12 -lGL -lGLU
collect2: ld terminated with signal 9 [Killed]
scons: *** [newview/secondlife-i686-bin-globalsyms] Error 1
scons: building terminated because of errors.


Hmmm, are you using the linden provided libraries? It sounds to me like those libraries cant be found on your system. If you didnt, try that first please.

-Asriazh
Jabb3r Panhandle
Registered User
Join date: 27 Jan 2007
Posts: 20
09-08-2007 06:14
I thought I was yes, I followed the wiki guide and extraced the libraries from the archive assuming they'd extract to the correct folder/s which it did look like thats what they did, I will check....

Edit: Sorry for late reply, but yes it looks like everything is where it should be.