LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-27-2014, 04:04 PM   #1
moisespedro
Senior Member
 
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223

Rep: Reputation: 195Reputation: 195
Python error while compiling Firefox 32.0.3 under Slackware64 14.1


Hi, I am trying to upgrade Firefox using this instead of something simpler like ruario's SlackBuild because I want to try to see how it improves HTML5 support.

I am using all SlackBuilds unmodified from here and all of them went fine, except Firefox.

I've started it with:

Code:
LANG=C MOZLOCALIZE=pt-BR sh mozilla-firefox.SlackBuild 2>error.log
error.log:
Code:
chmod: cannot operate on dangling symlink './media/webrtc/trunk/webrtc/tools/e2e_quality/audio/perf'
client.mk:214: /tmp/mozilla-release/obj/.mozconfig.mk: No such file or directory
Traceback (most recent call last):
  File "/tmp/mozilla-release/python/mozbuild/mozbuild/virtualenv.py", line 473, in <module>
    manager.ensure()
  File "/tmp/mozilla-release/python/mozbuild/mozbuild/virtualenv.py", line 128, in ensure
    return self.build()
  File "/tmp/mozilla-release/python/mozbuild/mozbuild/virtualenv.py", line 371, in build
    self.create()
  File "/tmp/mozilla-release/python/mozbuild/mozbuild/virtualenv.py", line 147, in create
    raise Exception('Error creating virtualenv.')
Exception: Error creating virtualenv.
make[2]: *** [configure] Error 1
make[1]: *** [/tmp/mozilla-release/obj/Makefile] Error 2
make: *** [build] Error 2
 
Old 09-27-2014, 05:04 PM   #2
fsLeg
Member
 
Registered: Dec 2013
Location: Russia, Moscow
Distribution: Slackware, EndeavourOS
Posts: 89

Rep: Reputation: Disabled
Perhaps you need python-virtualenv?
 
Old 09-27-2014, 05:31 PM   #3
schmatzler
Member
 
Registered: Jan 2011
Location: Germany
Distribution: Slackware64 -current + Multilib
Posts: 411

Rep: Reputation: 181Reputation: 181
Quote:
Originally Posted by fsLeg View Post
Perhaps you need python-virtualenv?
I don't have it installed and the build works fine.

These two errors don't cause any problems with the build:

Code:
chmod: cannot operate on dangling symlink './media/webrtc/trunk/webrtc/tools/e2e_quality/audio/perf'
client.mk:214: /tmp/mozilla-release/obj/.mozconfig.mk: No such file or directory
Can you upload the full log somewhere?
 
Old 09-27-2014, 06:43 PM   #4
moisespedro
Senior Member
 
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223

Original Poster
Rep: Reputation: 195Reputation: 195
Full log here
 
Old 09-27-2014, 07:40 PM   #5
schmatzler
Member
 
Registered: Jan 2011
Location: Germany
Distribution: Slackware64 -current + Multilib
Posts: 411

Rep: Reputation: 181Reputation: 181
Your error seems to be OpenSSL-related:

https://trac.torproject.org/projects/tor/ticket/12462
 
Old 09-27-2014, 07:52 PM   #6
moisespedro
Senior Member
 
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223

Original Poster
Rep: Reputation: 195Reputation: 195
I am using mancha's OpenSSL build. I will mark this as solved (I rather keep things the way they are now than build Firefox).
 
Old 09-27-2014, 08:08 PM   #7
mancha
Member
 
Registered: Aug 2012
Posts: 484

Rep: Reputation: Disabled
Hi moisespedro.

If that's the case then your OpenSSL doesn't have SSL 2.0 support. Please take a look at my SSL 2.0 thread and pay particular
attention to the caveat utilitor halfway down. Your issue might be that you didn't re-build Python and possibly M2Crypto.

Try again after re-building those two packages against your OpenSSL.

--mancha
 
Old 09-27-2014, 08:35 PM   #8
moisespedro
Senior Member
 
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223

Original Poster
Rep: Reputation: 195Reputation: 195
Quote:
Originally Posted by mancha View Post
Hi moisespedro.

If that's the case then your OpenSSL doesn't have SSL 2.0 support. Please take a look at my SSL 2.0 thread and pay particular
attention to the caveat utilitor halfway down. Your issue might be that you didn't re-build Python and possibly M2Crypto.

Try again after re-building those two packages against your OpenSSL.

--mancha
I was aware of that thread, I just didn't take time to rebuild all it was posted there. I only rebuilt neon, so far. I thought python was going to be much harder because I've misread you at this: "If you want to use it with LibreSSL you'll have to patch Python so it doesn't use RAND_egd." I probably missed the "LibreSSL" part. I am going to rebuild them and see if everything works correctly now.

And before creating this thread I thought it could have been related to OpenSSL but I wasn't sure.

Anyways, thanks again.
 
Old 09-27-2014, 08:53 PM   #9
moisespedro
Senior Member
 
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223

Original Poster
Rep: Reputation: 195Reputation: 195
Ok, I am confused now. I am still not sure if I got everything correclty: am I supposed to rebuilt Python and M2Crypto with unmodified SlackBuilds? Because I just tried that and I got the exact same error messages. The logs are equal.
 
Old 09-27-2014, 08:57 PM   #10
mancha
Member
 
Registered: Aug 2012
Posts: 484

Rep: Reputation: Disabled
Quote:
Originally Posted by moisespedro View Post
Ok, I am confused now. I am still not sure if I got everything correclty: am I supposed to rebuilt Python and M2Crypto with unmodified SlackBuilds? Because I just tried that and I got the exact same error messages. The logs are equal.
What happens when you try the following:

Code:
$ python
Python 2.7.5
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import ssl
 
Old 09-27-2014, 09:00 PM   #11
moisespedro
Senior Member
 
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223

Original Poster
Rep: Reputation: 195Reputation: 195
Code:
 pedro@slack [~] $ python
Python 2.7.5 (default, Sep 27 2014, 22:40:36) 
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import ssl
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib64/python2.7/ssl.py", line 60, in <module>
    import _ssl             # if we can't import it, let the error propagate
ImportError: No module named _ssl
>>>
 
Old 09-27-2014, 09:06 PM   #12
mancha
Member
 
Registered: Aug 2012
Posts: 484

Rep: Reputation: Disabled
That's the problem then. You're using my first OpenSSL slackbuild. Check the note at the end of this post.

Your slackbuild should be disabling SSL 2.0 with no-ssl2 and probably has -DOPENSSL_NO_SSL2.

--mancha
 
Old 09-27-2014, 09:18 PM   #13
moisespedro
Senior Member
 
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223

Original Poster
Rep: Reputation: 195Reputation: 195
I had downloaded your new version but I think I messed up something while extracting the files/moving the directories around.

Just for curiosity I've ran diff against both directories (the one in my SlackBuilds folder, which I used to compile OpenSSL and the openssl-20140916.tar.bz2 extracted folder under /home/pedro/Downloads)

Code:
pedro@slack [~] $ ls -l SlackBuilds/openssl/
total 4364
-rw-r--r-- 1 pedro users    1758 Ago  8  2012 certwatch.gz
-rw-r--r-- 1 pedro users     281 Jun 13  2007 doinst.sh-openssl-solibs.gz
-rw-r--r-- 1 pedro users     501 Jul 12  2012 doinst.sh-openssl.gz
-rw-r--r-- 1 pedro users 4422117 Set 16 05:06 openssl-1.0.1i.tar.gz
-rw-r--r-- 1 pedro users     473 Set 16 05:06 openssl-1.0.1i.tar.gz.asc
-rwxr-xr-x 1 pedro users    7699 Set 16 23:30 openssl.SlackBuild*
-rw-r--r-- 1 pedro users     509 Jun  5 16:14 openssl.optsx86.diff.gz
-rw-r--r-- 1 pedro users     303 Jul  3  2012 openssl.soname.diff.gz
drwxr-xr-x 2 pedro users    4096 Set 16 15:28 openssl0/
-rw-r--r-- 1 pedro users    1019 Abr  6  2002 slack-desc.openssl
-rw-r--r-- 1 pedro users    1090 Jul  3  2012 slack-desc.openssl-solibs
Code:
pedro@slack [~] $ ls -l ~/Downloads/openssl
total 4364
-rw-r--r-- 1 pedro users    1758 Ago  8  2012 certwatch.gz
-rw-r--r-- 1 pedro users     281 Jun 13  2007 doinst.sh-openssl-solibs.gz
-rw-r--r-- 1 pedro users     501 Jul 12  2012 doinst.sh-openssl.gz
-rw-r--r-- 1 pedro users 4422117 Set 16 05:06 openssl-1.0.1i.tar.gz
-rw-r--r-- 1 pedro users     473 Set 16 05:06 openssl-1.0.1i.tar.gz.asc
-rw-r--r-- 1 pedro users    7699 Set 16 15:56 openssl.SlackBuild
-rw-r--r-- 1 pedro users     509 Jun  5 16:14 openssl.optsx86.diff.gz
-rw-r--r-- 1 pedro users     303 Jul  3  2012 openssl.soname.diff.gz
drwxr-xr-x 2 pedro users    4096 Set 16 15:28 openssl0/
-rw-r--r-- 1 pedro users    1019 Abr  6  2002 slack-desc.openssl
-rw-r--r-- 1 pedro users    1090 Jul  3  2012 slack-desc.openssl-solibs

Code:
pedro@slack [~] $ diff -rq /home/pedro/Downloads/openssl /home/pedro/SlackBuilds/openssl/                                                                                                                                                                                                                                   
Files /home/pedro/Downloads/openssl/openssl.SlackBuild and /home/pedro/SlackBuilds/openssl/openssl.SlackBuild differ
I am recompiling it right now.
 
Old 09-28-2014, 12:59 PM   #14
moisespedro
Senior Member
 
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223

Original Poster
Rep: Reputation: 195Reputation: 195
Well, the compilation went fine but nothing really change regarding HTML5 support.

html5test.org dropped from 475 to 471 points

youtube still doesn't have H264 support (everything else is marked as green).
 
Old 09-28-2014, 01:42 PM   #15
schmatzler
Member
 
Registered: Jan 2011
Location: Germany
Distribution: Slackware64 -current + Multilib
Posts: 411

Rep: Reputation: 181Reputation: 181
Quote:
Originally Posted by moisespedro View Post
youtube still doesn't have H264 support (everything else is marked as green).
That's because Firefox doesn't support MSE and H.264. MSE works with some other codecs with these settings in about:config:
Code:
media.mediasource.enabled
media.mediasource.ignore_codecs
Quote:
html5test.org dropped from 475 to 471 points
I get 477. But it doesn't really matter, because if the gstreamer base package is present on the system almost all tests regarding HTML5 video and audio automatically go green. Firefox can't distinguish which codecs are present and which are not. Unless you really want to play a file and it doesn't work.

There's another test here: http://www.quirksmode.org/html5/tests/video.html

With the pre-built version of Firefox, the H.264 video at the top doesn't run. With my packages, it does.

Last edited by schmatzler; 09-28-2014 at 01:43 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiling mjpegtools on Slackware64 14 pchristy Slackware 5 10-24-2012 02:13 AM
[SOLVED] Error when compiling Linux-PAM in slackware64-current fakhry Slackware 2 01-02-2012 11:42 AM
[SOLVED] Error compiling php with oci8 - slackware64-13.37 Uzuki Slackware 1 06-23-2011 05:33 AM
[SOLVED] Error Compiling Apache fop-1.0 on Slackware64 13.1 KamasCZ Slackware 2 04-05-2011 10:38 AM
Does gstp-python compile on slackware64 13.1 ? NetNightmare Slackware 6 06-21-2010 02:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration