Re: [blfs-support] Good DNS server for personal and home use?

2012-07-05 Thread Andrew Benton
On Thu, 05 Jul 2012 23:23:35 +0100
Aleksandar Kuktin  wrote:

> Hi guys!
> 
> I have a question. I want to have my own DNS server. The main reason
> for this is to increase fault tolerance of my computer, make browsing
> the Web and Internet faster and more enjoyable and have a local miror
> of as much of the Internet as possible.
> 
> But I am lost as to what DNS server I should put.
> 
> For now, I want to run the server on my computer, serving only my
> computer. I will firewall it from the rest of the world. Later, when I
> move to my own place, I want it to run on a dedicated "master of the
> network" machine, serving the whole home.
> 
> I was originaly going to go with BIND, but I have cold feet now because
> of it's many security holes, the ones they still keep discovering all
> the time. Also, I would kind-of like to avoid reading a huge manual to
> set it up in a simple enviroment like this.
> 
> Do you have any sugestions for a program which would fit my bill? I am
> going through Wikipedia, looking for interesting picks, and there are a
> few, but I would like to hear some real-world experience first.
> 
> The number one priority is security, even though it will not be
> available to the public. The number two priority is hackability - I
> want to be able to fix it to suit my needs.
> 
> Ideas?

Just use BIND. It works fine for me in a setup very similar to the one
you describe. I have an old computer which I use as a router/print
server/general workhorse. It runs BIND and acts as the domain name
server for 3 other computers.
I think BIND is pretty secure, it's used on some pretty important
machines. Hackers are not going to be interested in a small home network

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] Midori - icons

2012-06-29 Thread Andrew Benton
On Sat, 30 Jun 2012 00:50:58 +0100
Ken Moffat  wrote:

>  I took a look at oxygen-icons-4.8.4 (so big a tarball!), but it
> only contains one of the icons that were reported on stderr as
> missing, so I don't think it will help.

I use the Elementary Icon Theme
http://gnome-look.org/content/show.php/Elementary+Icon?content=150749
But now I come to look at it I think I've edited the index.theme a
little so that it has:
Inherits=oxygen-refit-2,hicolor
So maybe it's inheriting the icons that Midori is asking for from
oxygen-refit-2?
http://gnome-look.org/content/show.php/Oxygen+Refit+2?content=79756

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] Parole : CDs and DVDs

2012-06-29 Thread Andrew Benton
On Fri, 29 Jun 2012 19:13:54 +0100
Ken Moffat  wrote:

>  The second of my current niggles : parole is fine with my stored
> multimedia files, but it doesn't let me play real DVDs or CDs - the
> menu options only lead to an option to play from an iso file.
> 
>  Any ideas what I'm missing, please ?

Have you tried clicking Media> Open location and entering dvd:// into
the box? http://www.linuxfromscratch.org/blfs/view/svn/xfce/parole.html

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] SVG conversion program? (Was: CUPS problem: lp: Unsupported document-format "text/plain".)

2012-06-26 Thread Andrew Benton
On Tue, 26 Jun 2012 11:35:13 +0100
DJ Lucas  wrote:

> I find it 
> difficult to believe that there is not already a tool for that. My 
> simpleton logic would suggest a way to find contiguous regions in any 
> given bitmap image (or other decompressed image) and assign recognizable 
> shapes or straight lines (similar to a line art drawing maybe).

In my experience any svg generated by an automated tool is as ugly as
the html generated by a word processor.

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] CUPS problem: lp: Unsupported document-format "text/plain".

2012-06-26 Thread Andrew Benton
On Tue, 26 Jun 2012 11:50:12 +0100
Ken Moffat  wrote:

> I *assume* what is
> currently in the book works for *someone* ?  Perhaps someone with a
> real postscript printer ?

Guilty as charged, your honour! :)

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] CUPS problem: lp: Unsupported document-format "text/plain".

2012-06-26 Thread Andrew Benton
On Tue, 26 Jun 2012 11:25:12 +0100
Jeremy Henty  wrote:

> > CUPS refuses to work on my latest  LFS system - any attempt to print
> > produces 'lp: Unsupported document-format "text/plain".' .
> 
> Fixed!  I had to configure ghostscript-9.05 with --with-install-cups .
> This installs  the gstoraster filter program  and the gstoraster.convs
> configuration file that tells CUPS how to convert PostScript to raster
> (I  should  have  said  that  I  don't  have  a  PostScript  printer.)
> Ghostscript-8x didn't need this parameter.
> 
> Perhaps this is worth mentioning on the BLFS Ghostscript page?

Cups is an optional dependency of Ghostscript so I can't make this part
of the default Ghostscript install instructions. What I can do is add a
paragraph to the command explanations section mentioning this option.

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] 回复: libwww-perl-6.04

2012-06-25 Thread Andrew Benton
On Mon, 25 Jun 2012 03:47:58 +0100
Omar  wrote:

> XML::Parser-2.41 requires libwww-perl-6.04 (optionally used during the 
> tests)  in section Perl Modules of chapter 13.
> Do you mean that I needn't install libwww-perl-6.04? Does it affect the tests 
> though it is optional?

Don't bother testing XML::Parser. If intltool doesn't work you'll know
about it soon enough.

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Re: [blfs-support] compile error with opal-3.10.2

2012-06-21 Thread Andrew Benton
On Thu, 21 Jun 2012 17:36:32 +0100
John Burrell  wrote:

> 
> I get these messages when compiling opal-3.10.2, having installed 
> ffmpeg-0.11.1
> 
> h263-1998.cxx:319:27: error: 'CODEC_FLAG_H263P_UMV' was not declared in this 
> scope
> h263-1998.cxx:321:28: error: 'CODEC_FLAG_H263P_UMV' was not declared in this 
> scope
> h263-1998.cxx:362:27: error: 'CODEC_FLAG_H263P_SLICE_STRUCT' was not declared 
> in this scope
> h263-1998.cxx:364:28: error: 'CODEC_FLAG_H263P_SLICE_STRUCT' was not declared 
> in this scope
> h263-1998.cxx:372:27: error: 'CODEC_FLAG_H263P_AIV' was not declared in this 
> scope
> h263-1998.cxx:374:28: error: 'CODEC_FLAG_H263P_AIV' was not declared in this 
> scope
> h263-1998.cxx: In member function 'bool 
> H263_Base_EncoderContext::OpenCodec()':
> h263-1998.cxx:428:3: error: 'CODEC_FLAG_H263P_UMV' was not declared in this 
> scope
> h263-1998.cxx:429:3: error: 'CODEC_FLAG_OBMC' was not declared in this scope
> h263-1998.cxx:431:3: error: 'CODEC_FLAG_H263P_SLICE_STRUCT' was not declared 
> in this scope
> h263-1998.cxx:433:3: error: 'CODEC_FLAG_H263P_AIV' was not declared in this 
> scope
> h263-1998.cxx: In member function 'virtual bool 
> H263_Base_EncoderContext::EncodeFrames(const BYTE*, unsigned int&, BYTE*, 
> unsigned int&, unsigned int&)':
> h263-1998.cxx:497:72: error: 'FF_I_TYPE' was not declared in this scope
> h263-1998.cxx:497:84: error: 'FF_P_TYPE' was not declared in this scope
> h263-1998.cxx: In member function 'virtual bool 
> H263_RFC2190_EncoderContext::Init()':
> h263-1998.cxx:582:24: error: 'CODEC_FLAG_H263P_UMV' was not declared in this 
> scope
> h263-1998.cxx:587:24: error: 'CODEC_FLAG_H263P_AIV' was not declared in this 
> scope
> h263-1998.cxx:588:24: error: 'CODEC_FLAG_H263P_SLICE_STRUCT' was not declared 
> in this scope
> make[3]: *** 
> [/usr/src/multimedia/opal/opal-3.10.2/plugins/../lib_linux_x86/plugins/h263_ffmpeg/h263-1998.o]
>  Error 1
> 
> Is opal-3.10.2-ffmpeg-1.patch addressing this problem for mpeg4.cxx?

No, that was for a different problem. Please try the attached patch
(which includes and updates the opal-3.10.2-ffmpeg-1.patch)

Andy


opal-3.10.2-ffmpeg-2.patch
Description: Binary data
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Re: [blfs-support] 回复: 回复: libwww-perl-6.04

2012-06-21 Thread Andrew Benton
On Thu, 21 Jun 2012 03:31:18 +0100
Omar  wrote:

> But what is my actual hostname? I set up LFS step by step on VMware, not by 
> cdrom. How would I confirm hostname?

Open a terminal and enter the command:
hostname
Then press return. It will tell you your hostname.

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] 回复: libwww-perl-6.04

2012-06-20 Thread Andrew Benton
On Wed, 20 Jun 2012 07:54:01 +0100
Omar  wrote:

> This is the content of /etc/hosts which is completed in the LFS 7.1. How to 
> fix it? Is it with some errors?
> 
> # Begin /etc/hosts (network card version)
> 127.0.0.1 localhost
> 192.168.0.100 lfs.example.org lfs1
> # End /etc/hosts (network card version)

Change lfs.example.org for your fully qualified domain name. If you
don't have a fully qualified domain name, remove lfs.example.org
from /etc/hosts. Change lfs1 to your actual hostname. Is 192.168.0.100
your IP address on your local network?

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] cairo / gtk / librsvg circular dependency

2012-06-18 Thread Andrew Benton
On Mon, 18 Jun 2012 10:56:15 +0100
Tobias Gasser  wrote:

> Andrew Benton schrieb:
> > I think Cairo needs Librsvg installed to run the testsuite, but the
> > Cairo testsuite is really broken so I wouldn't bother running it.
> 
> as i've done thunar (xfce), ristretto and glshw neither thunar nor
> ristretto could display .svg files.
> and glshw didn't show the hardware-icons (all .svg)
> 
> rebuilding cairo and gdk-pixbuf solved the problem as now the
> /usr/X11/lib/gdk-pixbuf-2.0/2.10.0/loaders lists the required
> libpixbufloader-svg.{so,la}.
> 
> i first just rebuild gdk-pixbuf only, but the loader for svg was not
> build. rebuilding cairo first and then gdk-pixbuf solved the problem.

You shouldn't need to rebuild anything. If libpixbufloader-svg.so is
installed it should be enough to simply:

gdk-pixbuf-query-loaders --update-cache

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] colord-0.1.21 dependencies incorrect in current blfs book

2012-06-16 Thread Andrew Benton
On Sat, 16 Jun 2012 23:23:31 +0100
Ronnie van Aarle  wrote:

> I'm writing this email while I'm configuring and building the packages, and
> now udev is installed with Kmod running, I found another oddity on
> pollkit-0.106 this time:
> 
> Building polkit-0.106 on an offline system halts on a make error because it
> cannot acces:
> 
> http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
> 
> of course not, without an internet connection, since when is internet
> required for make?
> 
> It is the first time I experience that a build requires internet acces, but
> I don't see why and I don't like it also.
> 
> adding --disable-manpages to the configure arguments makes the build
> succesfull. This is a very weird and uncommon thing in my point of view,
> make that requires internet access.

Another option is to install all the docbook stuff, in this case, the
docbook xsl stylesheets:
http://www.linuxfromscratch.org/blfs/view/svn/pst/docbook-xsl.html
You can see in the configuring section it has a rule to rewrite the URI
to point to a local file on your system:

xmlcatalog --noout --add "rewriteURI" \
   "http://docbook.sourceforge.net/release/xsl/current"; \
   "/usr/share/xml/docbook/xsl-stylesheets-1.77.0" \
/etc/xml/catalog

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] glibc-2.15 make failure

2012-06-15 Thread Andrew Benton
On Fri, 15 Jun 2012 13:12:11 +0100
"Armin K."  wrote:

> On 06/14/2012 03:42 AM, Ken Moffat wrote:
> >   In either case, it doesn't match any version of the book (old glibc
> > and make, very recent gcc and binutils), so I assume you have
> > updated some packages but not others ?  Doing that is fine, but if
> > it breaks you can get unusual problems, perhaps this is one of them.
> >
> >   And at the risk of boring people, and attracting scorn from those
> > who *do* update glibc versions in-place, I repeat that the only
> > recommended way to update glibc versions on LFS is to make a new
> > build on a different partition.
> 
> Who recommended that? Did upstream do it? I don't recall having any bad 
> failures with that one.

That' because you are new here.

> LFS tends to scare people of upgrading stuff. 

Your distro, your rules

> Same for Linux API Headers. No one said that your system will explode if 
> you upgrade API headers from 3.2.1 to 3.2.12 for example, those are just 
> headers ... Same for glibc. Glibc claims to be backwards-compatible, but 
> not forward compatible. Programs compiled on 2.13 can run on 2.15 very 
> well (well, there has been recent RPC stuff change, but that means that 
> only some and not ALL apps need to be recompiled after upgrade in order 
> to link with libtirpc to use these functions). Also, that's how binary 
> programs work. Binary program was compiled on, eg glibc2.3 or such, but 
> still runs on glibc 2.15.

Installing a new Glibc over the currently installed Glibc risks
breaking programs in strange and unpredictable ways. The ones to worry
about are Gcc and Binutils. You may end up unable to compile and have
to start again booting from a live CD.

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] gtk2 2.24.10 fails to build

2012-06-15 Thread Andrew Benton
On Fri, 15 Jun 2012 09:44:26 +0100
Tobias Gasser  wrote:

> 
> make fails in 'demos' with
> 
> failed to load "./apple-red.png": Couldn't recgognize the image file
> format for './apple-red.png'

Where are you installing things? Into /usr with --sysconfdir=/etc?
"Couldn't recognise the image file format" implies a problem with
gdk-pixbuf

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] cairo / gtk / librsvg circular dependency

2012-06-15 Thread Andrew Benton
On Fri, 15 Jun 2012 08:41:54 +0100
Tobias Gasser  wrote:

> to build cairo with svg support, librsvg must be installed.

Yes, librsvg must be installed, but it doesn't have to be installed
when Cairo is compiled. I compile Cairo then Gtk then Librsvg and svg
images work fine. There is no need to reinstall any of these things.

I think Cairo needs Librsvg installed to run the testsuite, but the
Cairo testsuite is really broken so I wouldn't bother running it.

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] Libre Office 3.5.3 with Gcc 4.7 on i686

2012-06-12 Thread Andrew Benton
On Tue, 12 Jun 2012 11:32:15 +0100
"Armin K."  wrote:

> On 06/11/2012 06:18 PM, Andrew Benton wrote:
> > On Thu, 07 Jun 2012 23:05:58 +0100
> > Andrew Benton  wrote:
> >
> >> On Wed, 06 Jun 2012 12:32:09 +0100
> >> Matthew Burgess  wrote:
> >>
> >>> There's useful info at http://gcc.gnu.org/bugs/#detailed as to what they'd
> >>> expect your report to contain.
> >>
> >> Thanks to your suggestion I took the plunge and opened a bug
> >> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53602
> >
> > Which has now been fixed. Libre office now compiles fine with the
> > Gcc-4.7 branch on i686
> >
> > Andy
> 
> Hm, I have experienced same problem twice in last 24 hours. First time 
> it was with gcc building ffmpeg (not sure if ffmpeg 0.11, ffmpeg bundled 
> with mplayer 1.1 or ffmpeg bundled with gst-ffmpeg). And today, same 
> problem happened with gcc building poppler. Both errors were "internal 
> compiler errors" ... Also, If I re-run make, it finishes. I suspect it 
> might be something when running make -j5 ... Also, the gcc was built on 
> pentium4, and I'm running same LFS on new laptop which has core i5 
> processor, so I don't think it's overoptimized. Gcc is 4.6.3 with glibc 
> 2.13 and so on.

That doesn't sound like the same bug. I've had no problem compiling
ffmpeg or poppler. For me on i686 Libre Office failed to compile in
exactly the same way at exactly the same point.

> Did you manage to dig anything about the error?

Yes, as I said, the bug has been fixed. The details are in the link
above.

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] Libre Office 3.5.3 with Gcc 4.7 on i686

2012-06-11 Thread Andrew Benton
On Thu, 07 Jun 2012 23:05:58 +0100
Andrew Benton  wrote:

> On Wed, 06 Jun 2012 12:32:09 +0100
> Matthew Burgess  wrote:
> 
> > There's useful info at http://gcc.gnu.org/bugs/#detailed as to what they'd
> > expect your report to contain.
> 
> Thanks to your suggestion I took the plunge and opened a bug
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53602

Which has now been fixed. Libre office now compiles fine with the
Gcc-4.7 branch on i686

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] Libre Office 3.5.3 with Gcc 4.7 on i686

2012-06-07 Thread Andrew Benton
On Wed, 06 Jun 2012 12:32:09 +0100
Matthew Burgess  wrote:

> The ICE is definitely a bug in GCC, so should be reported upstream (I did
> a quick search at http://gcc.gnu.org/bugzilla/ for force_move_args_size_note
> and didn't get any hits).
> 
> There's useful info at http://gcc.gnu.org/bugs/#detailed as to what they'd
> expect your report to contain.

Thanks to your suggestion I took the plunge and opened a bug
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53602

>  As you're using git, I'm sure they'd be
> more than happy if you could do a 'git bisect' to see which commit broke
> things, but given how long it takes to compile GCC, I'm not sure I'd have
> the patience for that.

I was confused, Gcc uses svn not git.

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] Libre Office 3.5.3 with Gcc 4.7 on i686

2012-06-06 Thread Andrew Benton
On Wed, 06 Jun 2012 12:32:09 +0100
Matthew Burgess  wrote:

> The ICE is definitely a bug in GCC, so should be reported upstream (I did
> a quick search at http://gcc.gnu.org/bugzilla/ for force_move_args_size_note
> and didn't get any hits).
> 
> There's useful info at http://gcc.gnu.org/bugs/#detailed as to what they'd
> expect your report to contain.

It seems they want something like:
gcc -v -save-temps all-your-options source-file
I've no idea what options gxx is being run with as the output from make
(or rather, dmake) just says:

Entering 
/home/andy/save/sources/extras/libreoffice-core-3.5.4.2/unodevtools/source/skeletonmaker

Making:all_uno-skeletonmaker.dpobj
Compiling: unodevtools/source/skeletonmaker/skeletonmaker.cxx
Compiling: unodevtools/source/skeletonmaker/skeletoncommon.cxx
/home/andy/save/sources/extras/libreoffice-core-3.5.4.2/unodevtools/source/skeletonmaker/skeletoncommon.cxx:
 In function 'void 
skeletonmaker::checkDefaultInterfaces(boost::unordered::unordered_set&, const boost::unordered::unordered_set&, const rtl::OString&)':
/home/andy/save/sources/extras/libreoffice-core-3.5.4.2/unodevtools/source/skeletonmaker/skeletoncommon.cxx:317:1:
 internal compiler error: in force_move_args_size_note, at 
combine-stack-adj.c:419

There's no Makefile in unodevtools/source/skeletonmaker. There is a
makefile.mk but I can't make head not tail of it (maybe because it's
used by dmake?). I can't even begin to submit a gcc bug as I don't know
how gxx is being called.

>  As you're using git, I'm sure they'd be
> more than happy if you could do a 'git bisect' to see which commit broke
> things, but given how long it takes to compile GCC, I'm not sure I'd have
> the patience for that.

I would be happy to do that except that my 32 bit computers are very
slow and I can't reproduce the problem on 64 bit. It takes about a day
to compile Libre Office on my 32 bit computers so I'd only be able to
attempt it once a day, but I'd probably get there eventually.

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


[blfs-support] Libre Office 3.5.3 with Gcc 4.7 on i686

2012-06-06 Thread Andrew Benton
Hello All,
Libre Office 3.5.3 compiles fine for me with Gcc 4.7 on x86_64 but on
i686 the build dies with this error:

Making:all_uno-skeletonmaker.dpobj
Compiling: unodevtools/source/skeletonmaker/skeletonmaker.cxx
Compiling: unodevtools/source/skeletonmaker/skeletoncommon.cxx
/home/andy/save/sources/extras/libreoffice-core-3.5.3.2/unodevtools/source/skeletonmaker/skeletoncommon.cxx:
 In function 'void 
skeletonmaker::checkDefaultInterfaces(boost::unordered::unordered_set&, const boost::unordered::unordered_set&, const rtl::OString&)':
/home/andy/save/sources/extras/libreoffice-core-3.5.3.2/unodevtools/source/skeletonmaker/skeletoncommon.cxx:317:1:
 internal compiler error: in force_move_args_size_note, at 
combine-stack-adj.c:419
Please submit a full bug report,
with preprocessed source if appropriate.
See  for instructions.

The "internal compiler error" and the request for a bug report to be
sent to gcc makes it look like a bug in Gcc 4.7. The actual code that
causes the problem looks like this:

void checkDefaultInterfaces(
 boost::unordered_set< OString, OStringHash >& interfaces,
 const boost::unordered_set< OString, OStringHash >& services,
   const OString & propertyhelper)
{
if ( services.empty() ) {
if (interfaces.find("com.sun.star.lang.XServiceInfo") != 
interfaces.end())
interfaces.erase("com.sun.star.lang.XServiceInfo");
} else {
if (interfaces.find("com.sun.star.lang.XServiceInfo") == 
interfaces.end())
interfaces.insert("com.sun.star.lang.XServiceInfo");
}

if ( propertyhelper.equals("_") ) {
if (interfaces.find("com.sun.star.beans.XPropertySet")
!= interfaces.end())
interfaces.erase("com.sun.star.beans.XPropertySet");
if (interfaces.find("com.sun.star.beans.XFastPropertySet")
!= interfaces.end())
interfaces.erase("com.sun.star.beans.XFastPropertySet");
if (interfaces.find("com.sun.star.beans.XPropertyAccess")
!= interfaces.end())
interfaces.erase("com.sun.star.beans.XPropertyAccess");
}
}

Googling on the error found this bug report at Ubunut:
https://bugs.launchpad.net/ubuntu/+source/gcc-4.7/+bug/1007616
But sadly they have no solution.

I have previously built Libre Office 3.5.3 on i686 with Gcc 4.7, what
was different this time was that I used a git pull of the Gcc 4.7
branch. Ie, Gcc had changes that had been checked into the Gcc 4.7
branch since gcc-4.7.0 was released.

Does anyone have any insight into what's going on here?

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] wpa_supplicant-1.0 fails to compile

2012-05-28 Thread Andrew Benton
On Thu, 24 May 2012 15:38:20 +0100
John Burrell  wrote:

> 
> wpa_supplicant-1.0 fails with:
> 
> ../src/drivers/driver_nl80211.c:25:31: fatal error: netlink/genl/genl.h: No 
> such file or directory
> compilation terminated.
> 
> I had to include the libnl3 headers location:
> 
> CFLAGS="-I/usr/include/libnl3" make BINDIR=/sbin LIBDIR=/lib
> 
> for it to work.

Thanks for the information. I've not built wpa_supplicant-1.0 yet (I've
been away). I suspect that we need to put:
"CFLAGS += -I/usr/include/libnl3" back into the config file.

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] Shell at startup

2012-05-18 Thread Andrew Benton
On Fri, 18 May 2012 00:45:15 +0100
Ken Moffat  wrote:

> On Thu, May 17, 2012 at 05:00:01PM -0600, Andrew Elian wrote:
> > 
> > Dash does not support brace expansion, as far as I know.  I also have
> > found that ash (with patches from Slackware) also doesn't like them.
> > 
> 
>  OK, so this is a bug against the book's build of dash. #3371
> created - I vote for dropping dash, because I've seen no reason to
> use it :)

Dash is small (about 1/6th the size of Bash) and fast (I don't have any
benchmarks to hand) so I do think it has a place on some systems that
are low on disk space and CPU power. I personally couldn't live with
its limited features but it is said to be a Posix compliant shell. I'd
use it if I wanted to check if a script was Posix compliant.

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] gcc-4.5.1 (BLFS) vs. gcc-4.7.0 (LFS)

2012-05-06 Thread Andrew Benton
On Mon, 07 May 2012 00:49:37 +0100
alex lupu  wrote:

> My latest build (make) of the Chrome browser failed with
> apparently a gcc (actually, g++) error of some sort:
> 
> "...
> Please submit a full bug report, ...
> See  for instructions. ..."
> 
> I've had gcc-4.5.1 (in good standing) for quite a while.
> Rather than going through the big effort, uncertainty and
> probably the futility of submitting a bug report,
> I'm thinking about just upgrading to gcc-4.7.0 (the latest
> as of this writing), thereby killing as many as two birds
> (in the ideal outcome).
> 
> QUESTIONS
> 1.  Mostly theoretical.  Why this dissimilarity between
> LFS and BLFS versions?

I think the version of GCC in BLFS is neglected because none of the
current editors use any of those compilers. I just need a C and C++
compiler so the GCC installed in LFS is fine for me. 

If I were you I'd install GCC-4.7 with the configure switches from
chapter 6 of current LFS. Unless you need fortran or whatever, in which
case, do you want to volunteer to update the BLFS page ;)

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] Gtk+-2.24.10 and Gtk+-3.4.1

2012-05-04 Thread Andrew Benton
On Fri, 04 May 2012 10:27:52 +0100
"Armin K."  wrote:

> --enable-gtk2-dependency removes that conflict.

That's interesting. Is that for Gtk 3? We don't want to make Gtk 2 a
required dep of Gtk 3 so we couldn't make that option the default. We
could put a switch on the configure line that tests if Gtk 2 is
installed. Something like:

./configure --prefix=/usr --sysconfdir=/etc \
 $(pkg-config --exists gtk+-2.0 &&
 echo --enable-gtk2-dependency) &&
make

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] X unsolved and networking solved

2012-05-04 Thread Andrew Benton
On Fri, 04 May 2012 03:55:25 +0100
Walter Webb  wrote:

> My kernel has:
> 
> # CONFIG_FIRMWARE_IN_KERNEL is not set
> CONFIG_EXTRA_FIRMWARE=""
> 
> and I have no clue where it comes from.

In make menuconfig:
Device Drivers  --->
  Generic Driver Options  --->
-*- Userspace firmware loading support
[*]   Include in-kernel firmware blobs in kernel binary
(radeon/REDWOOD_rlc.bin radeon/REDWOOD_pfp.bin radeon/REDWOOD_me.bin) 
External firmware blobs to build into the kernel binary
(/lib/firmware) Firmware blobs root directory (NEW)

> Anyhow, I only have 10 bootable Linux partitions on that machine;
> and I wiped 6 of them, including the 3 with LFS-7.1.

I find it helps to have a monolithic kernel with no modules and the
firmware built into the kernel. That way I don't need to have the
modules and firmware on every partition.

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] Gtk+-2.24.10 and Gtk+-3.4.1

2012-05-04 Thread Andrew Benton
On Fri, 04 May 2012 06:38:45 +0100
Thanos Baloukas  wrote:

> Hello
> 
> Could someone please answer to the question if there are conflicts between
> Gtk+-2.24.10 and Gtk+-3.4.1? Can they both be installed in /usr?
> Thanks

There is a slight conflict as they both
install /usr/bin/gtk-update-icon-cache, however, in practice the
gtk-update-icon-cache from both Gtk 2 and Gtk 3 seems to work
identically so it doesn't cause any problems.
Other than that there is no conflict. Installing them both into /usr
works well, which is why the book says to install both of them
into /usr. I'm sure that if there was a problem someone would have
reported it to the list by now.

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] X unsolved and networking solved

2012-05-02 Thread Andrew Benton
On Wed, 02 May 2012 22:34:01 +0100
Walter Webb  wrote:

> Well, I tried KMS on both computers. Both hesitated for a long time
> when booting, after which the older one with a Radeon HD 3600 Series
> made the display unusable; lots of colors in a fine-grained display.
> The newer one with a Radeon HD 5500 Series displayed 240x75
> characters on a 1920x1200 screen.  X worked normally.

My kitchen computer has a HD 5500 and it needs 3 bits of firmware to
enable KMS. If you build the radeon driver as a module you can load the
firmware at the same time as it loads the module. If you build a
monolithic kernel (as I do) then the firmware needs to be built into
the kernel so it's available as the kernel boots.

The firmware is available from the linux firmware:
git clone git://git.kernel.org/pub/scm/linux/kernel/git/dwmw2/linux-firmware.git
I put the firmware in /lib/firmware.
The relevant bits of the kernel config:

CONFIG_FW_LOADER=y
CONFIG_FIRMWARE_IN_KERNEL=y
CONFIG_EXTRA_FIRMWARE="radeon/REDWOOD_rlc.bin radeon/REDWOOD_pfp.bin 
radeon/REDWOOD_me.bin"
CONFIG_EXTRA_FIRMWARE_DIR="/lib/firmware"

CONFIG_DRM_RADEON=y
CONFIG_DRM_RADEON_KMS=y

# CONFIG_FB_RADEON is not set

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] wicd

2012-05-02 Thread Andrew Benton
On Wed, 02 May 2012 13:54:31 +0100
rhubarbpie...@gmail.com wrote:

> On 05/02/2012 07:31 AM, . . wrote:
> >
> > pycairo-1.8.8 is the older version of py2cairo-1.10.0. It is the python
> > 2 version of pycairo. pycairo-1.10.0 is the python 3 version of cairo.
> > py2cairo-1.10.0 works fine for me.
> > My problem wasn't with the GUI, it was with the network configuration.
> > It seems bizarre to me that it can't read the files in /proc or /sys or
> > use some simple commands to work out what wireless interfaces are
> > available. But once configured it remembers the settings and it will
> > work in the future.
> >
> > Andy
> 
> Yes, I understood the problem after reading your solution.  However, I 
> wonder if you've pinpointed my problem.  You mention Py2cairo is the 
> Python 3 version of cairo.

No. py2cairo-1.10.0 is the python 2 version of pycairo.
pycairo-1.10.0 is the python 3 version of pycairo.

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] cairo-1.12.0 text rendering buggy?

2012-04-30 Thread Andrew Benton
On Mon, 30 Apr 2012 22:27:27 +0100
Ken Moffat  wrote:

>  Anybody managed to port this to xorg-server-1.12.1 (which is what's
> in xorg-7.7-RC1) ?  I thought I'd managed to apply it by hand, but
> it failed to compile (barfed at the 'else' at the beginning of the
> 5th hunk, probably imbalanced parentheses).
> 
>  FWIW, on my radeon (some sort of r600) the fixes in debian's
> xorg-xserver-video-ati_6.14.4-2.diff.gz which are taken from the
> various patches in that bug *appear* to solve the problem.  Without
> them, firefox-12 using system cairo was unusable.

This patch is for xorg-server. It's a work around that makes the
problem less noticeable, not a fix. There are some more patches in the
xf86-video-ati drivers (in git, I don't think they've made it into a
release yet) that also help (effectively the bug is unnoticeable). I
don't have the patch for the ati drivers, I just did a git pull and
have been using that.

No one seems to be sure exactly what or where the bug is. It seems to
be in xorg server as some people using Nouveau (which uses EXA) have
had the problem but intel (which doesn't use EXA) seems to be
unaffected.

Andy


xorg-server-1.12.0.901-exa.patch
Description: Binary data
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Re: [blfs-support] wicd

2012-04-30 Thread Andrew Benton
On Mon, 30 Apr 2012 18:44:02 +0100
rhubarbpie...@gmail.com wrote:

> I'm glad you found a solution.  However, your post piqued my interest as 
> I vaguely remembered having a similar problem.  So I recompiled wicd 
> (without error) using py2cairo, but wicd-gtk did not respond.  I then 
> did the same, but with 
> http://cairographics.org/releases/pycairo-1.8.8.tar.gz and wicd-gtk came 
> up with no configuration necessary.
> 
> I realize it's a moot point for you as you have a perfectly acceptable 
> solution.  But I wonder if others experience the same py2cairo/pycairo 
> result.  I'm using the configuration options in the BLFS documentation.  
> The only unique aspect I see is I'm using pycairo.  Wicd is working 
> quite well.

pycairo-1.8.8 is the older version of py2cairo-1.10.0. It is the python
2 version of pycairo. pycairo-1.10.0 is the python 3 version of cairo.
py2cairo-1.10.0 works fine for me.
My problem wasn't with the GUI, it was with the network configuration.
It seems bizarre to me that it can't read the files in /proc or /sys or
use some simple commands to work out what wireless interfaces are
available. But once configured it remembers the settings and it will
work in the future.

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] error in libX11 in blfs

2012-04-30 Thread Andrew Benton
On Mon, 30 Apr 2012 04:33:41 +0100
ankit vishwakarma  wrote:

> i have in /usr/lib/pkgconfig/xproto.pc
> 
> root [ / ]# cat /usr/lib/pkgconfig/xproto.pc
> prefix=/usr
> exec_prefix=${prefix}
> libdir=${exec_prefix}/lib
> includedir=${prefix}/include
> includex11dir=${prefix}/include/X11
> 
> Name: Xproto
> Description: Xproto headers
> Version: 7.0.22
> Cflags: -I${includedir}
> 
> 
> i started again but still the same error persists

Then you have another xproto.pc file somewhere.
Perhaps /usr/share/pkgconfig/xproto.pc?

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] gnumeric-1.10.17 problems

2012-04-29 Thread Andrew Benton
On Mon, 30 Apr 2012 00:46:09 +0100
Ken Moffat  wrote:

>  Egg on face time - I didn't notice the seds that someone (probably
> Andy, looking at how they are constructed) had put in the book.
> Patch committed and then uncommitted.  The instructions currently in
> the book for goffice, gnumeric, abiword are correct.

Whew! You had me worried, what was wrong? I had read your earlier
emails but I was scratching my head about what the problem was. I think
I did put the sed in the book but IIRC it first surfaced as a patch
from Armin when we were trying to get gnucash to work.

>  So, after that fubar, I'm in no hurry to commit the patch from
> gentoo that I'm using for audacious-3.2.2.

I'm curious about this. What does the patch do? What problem does it
fix? I'm still using audacious-3.2.1 but looking at my build scripts I
configure it with LIBS=-lgmodule-2.0 and I don't remember why. I also
notice that this is not in the book. Does the book need it? Or is this
just something I need to cope with using bleeding edge binutils and
glibc?

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] wicd

2012-04-29 Thread Andrew Benton
On Sun, 29 Apr 2012 20:45:24 +0100
Ragnar Thomsen  wrote:

> Wicd works fine for me, but I haven't tried the GTK frontend since I use the 
> KDE frontend.
> Have you checked the logfile in /var/log/wicd?

Thanks, that was the key, it said:
did not find wireless_interface in configuration, setting default None

So I ggogled on that and it led me to a forum post which said to set
that in wicd's preferences. Preferences was hidden behind a drop down
arrow at the end of the toolbar. I had to set a few more things (as I
don't run dhcp on my router) but it didn't take long to get it working
once I was on the right track.

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] wicd

2012-04-29 Thread Andrew Benton
On Sun, 29 Apr 2012 15:48:17 +0100
rhubarbpie...@gmail.com wrote:

> Wicd works for me using LFS 7.1 and recent BLFS documentation.

Thanks for your reply, it's good to know that Wicd works for someone.
It would be nice to know why it doesn't work for me but it doesn't spit
out any useful error messages.

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


[blfs-support] wicd

2012-04-29 Thread Andrew Benton
Hello Everyone,

I thought I'd try Wicd on my netbook, however, I can't get it to work.
When I run wicd-gtk it just displays "No wireless networks found".
However, if I (as root) run "iwlist wlan0 scan" it lists 5 networks
that can be detected. I can connect to my router fine with commands but
I'd like to be able to use a GUI for a bit more flexibility/convenience
when I take the little thing out to other places. Has anyone got Wicd
to work?

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] error in libXdmcp-1.1.0

2012-04-29 Thread Andrew Benton
On Sun, 29 Apr 2012 06:52:02 +0100
ankit vishwakarma  wrote:

> the following error occurs when issuing make command. i installed all
> the protocols i think i might have made mistake please provide help
> how to rectify it

You want us to read for you?

> checking for XDMCP... configure: error: Package requirements (xproto)
> were not met:
> 
> No package 'xproto' found

Install xproto, it's one of the xorg proto packages:
http://www.linuxfromscratch.org/blfs/view/svn/x/x7proto.html

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] MesaLib-8.0.2

2012-04-27 Thread Andrew Benton
On Fri, 27 Apr 2012 19:27:34 +0100
John Burrell  wrote:

> A bit more research shows me the above statement is not the answer.
> The first time I run the commands from the sed to make, it hangs in 
> /usr/bin/makedepend. If I Ctrl^Z and redo the configure and the make, it runs 
> to completion, whatever gallium drivers are defined.
> 
> So there is something different about the environment the second time through.
> The behaviour is the same whether run as root or as an unprivileged user so 
> it's not a permission issue.
> 
> I'm a bit stumped at the moment wondering what to do next. Any ideas how I 
> might reveal the environmental difference between the first and second run?

Make 2 copies of the Mesa source, in the first run  the commands until
it hangs, in the second take it to just after the hang and then use
diff to compare the 3 folders?

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] setleds KDSKBLED: Invalid argument

2012-04-26 Thread Andrew Benton
On Thu, 26 Apr 2012 21:04:21 +0100
Bruce Dubbs  wrote:

> You might want to tell the kernel guys about it.

I did, someone had already filed 
https://bugzilla.kernel.org/show_bug.cgi?id=43144
so I added to it.

Thanks again,

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] Problems building sylpheed ( Andy's list )

2012-04-26 Thread Andrew Benton
On Thu, 26 Apr 2012 16:12:47 +0100
"Dr.-Ing. Edgar Alwers"  wrote:

> Hi Andy,
> 
> I am building sylpheed using your desktop utilities Version 2012-02-19.
> On my 4.7.2 system, no problems. On my new built 4.8.2 system I get, 
> independent from the sylpheed version ( last I used 3.1.4 ) an error when 
> starting "make":
> -
> In file included from /usr/include/glib-2.0/glibconfig.h:9:0,
>  from defs.h:27,
>  from account.c:24:
> /usr/include/glib-2.0/glib/gmacros.h:32:2: error: #error "Only  can 
> be included directly."
> make[3]: *** [account.lo] Error 1
> make[3]: Leaving directory `/sources_BLFS/sylpheed-3.1.4/libsylph'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/sources_BLFS/sylpheed-3.1.4/libsylph'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/sources_BLFS/sylpheed-3.1.4'
> make: *** [all] Error 2
> ---
> 
> Could you perhaps help ?

Sorry for being slow to reply, I've been busy. These commands allow Sylpheed to 
build for me:

  sed -i '/#include /d' $(grep -rl 'http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] setleds KDSKBLED: Invalid argument

2012-04-26 Thread Andrew Benton
On Thu, 26 Apr 2012 17:07:24 +0100
Bruce Dubbs  wrote:

> Andrew Benton wrote:
> > On Thu, 26 Apr 2012 15:50:51 +0100
> > Bruce Dubbs  wrote:
> > 
> >> Andrew Benton wrote:
> >>> +   case KDSKBLED:
> >>> +   if (!perm)
> >>> +   return -EPERM;
> >>> +   if (arg & ~0x77)
> >>> +   return -EINVAL;
> >>> +spin_lock_irqsave(&kbd_event_lock, flags);
> >>> +   kbd->ledflagstate = (arg & 7);
> >>> +   kbd->default_ledflagstate = ((arg >> 4) & 7);
> >>> +   set_leds();
> >>> +spin_unlock_irqrestore(&kbd_event_lock, flags);
> >>> +   break;   // <<<<<  change to return 0;
> > 
> >> It looks like an error in the code.  The only case that doesn't return is
> >> KDSKBLED.  The break then goes to return -ENOIOCTLCMD which doesn't seem 
> >> right.
> >> Try changing the break to return 0;
> > 
> > Thanks, I changed it to return 0; but sadly the kernel will not compile:
> > 
> >   LD  vmlinux.o
> >   MODPOST vmlinux.o
> >   GEN .version
> >   CHK include/generated/compile.h
> >   UPD include/generated/compile.h
> >   CC  init/version.o
> >   LD  init/built-in.o
> >   LD  .tmp_vmlinux1
> > drivers/built-in.o: In function `do_compute_shiftstate':
> > keyboard.c:(.text+0x5fe03): undefined reference to `key_maps'
> > drivers/built-in.o: In function `k_slock':
> > keyboard.c:(.text+0x6043c): undefined reference to `key_maps'
> > drivers/built-in.o: In function `handle_diacr':
> > keyboard.c:(.text+0x6048a): undefined reference to `accent_table_size'
> > keyboard.c:(.text+0x60493): undefined reference to `accent_table'
> > keyboard.c:(.text+0x604bc): undefined reference to `accent_table'
> 
> There is no way that changing a 'break' command to a 'return' would result in 
> an 
> undefined reference.  There is something else going on.
> 
> Unpack the kernel and configure as normal.  Then run make.  Not edit the file 
> changing the one line and run make again.

Right you are. I edited the file after I'd run make oldconfig, it must
source the file in some way.
This sed edits the file as you suggest and fixes the problem for me:
sed -i '/ spin_u/{N;s#break#return 0#;}' drivers/tty/vt/keyboard.c

Many thanks for your help with this Bruce.

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] setleds KDSKBLED: Invalid argument

2012-04-26 Thread Andrew Benton
On Thu, 26 Apr 2012 15:50:51 +0100
Bruce Dubbs  wrote:

> Andrew Benton wrote:
> > +   case KDSKBLED:
> > +   if (!perm)
> > +   return -EPERM;
> > +   if (arg & ~0x77)
> > +   return -EINVAL;
> > +spin_lock_irqsave(&kbd_event_lock, flags);
> > +   kbd->ledflagstate = (arg & 7);
> > +   kbd->default_ledflagstate = ((arg >> 4) & 7);
> > +   set_leds();
> > +spin_unlock_irqrestore(&kbd_event_lock, flags);
> > +   break;   // <<<<<  change to return 0;

> It looks like an error in the code.  The only case that doesn't return is
> KDSKBLED.  The break then goes to return -ENOIOCTLCMD which doesn't seem 
> right.
> Try changing the break to return 0;

Thanks, I changed it to return 0; but sadly the kernel will not compile:

  LD  vmlinux.o
  MODPOST vmlinux.o
  GEN .version
  CHK include/generated/compile.h
  UPD include/generated/compile.h
  CC  init/version.o
  LD  init/built-in.o
  LD  .tmp_vmlinux1
drivers/built-in.o: In function `do_compute_shiftstate':
keyboard.c:(.text+0x5fe03): undefined reference to `key_maps'
drivers/built-in.o: In function `k_slock':
keyboard.c:(.text+0x6043c): undefined reference to `key_maps'
drivers/built-in.o: In function `handle_diacr':
keyboard.c:(.text+0x6048a): undefined reference to `accent_table_size'
keyboard.c:(.text+0x60493): undefined reference to `accent_table'
keyboard.c:(.text+0x604bc): undefined reference to `accent_table'
drivers/built-in.o: In function `kbd_event':
keyboard.c:(.text+0x60785): undefined reference to `key_maps'
keyboard.c:(.text+0x60a2e): undefined reference to `key_maps'
drivers/built-in.o: In function `k_fn.part.9':
keyboard.c:(.text+0x60ce8): undefined reference to `func_table'
drivers/built-in.o: In function `vt_do_diacrit':
(.text+0x6187c): undefined reference to `accent_table_size'
drivers/built-in.o: In function `vt_do_diacrit':
(.text+0x61891): undefined reference to `accent_table'
drivers/built-in.o: In function `vt_do_diacrit':
(.text+0x618a0): undefined reference to `accent_table'
drivers/built-in.o: In function `vt_do_diacrit':
(.text+0x619a7): undefined reference to `accent_table'
drivers/built-in.o: In function `vt_do_diacrit':
(.text+0x619bf): undefined reference to `accent_table_size'
drivers/built-in.o: In function `vt_do_diacrit':
(.text+0x61a5a): undefined reference to `accent_table_size'
drivers/built-in.o: In function `vt_do_diacrit':
(.text+0x61a61): undefined reference to `accent_table'
drivers/built-in.o: In function `vt_do_diacrit':
(.text+0x61a75): undefined reference to `accent_table'
drivers/built-in.o: In function `vt_do_diacrit':
(.text+0x61afc): undefined reference to `accent_table_size'
drivers/built-in.o: In function `vt_do_diacrit':
(.text+0x61b09): undefined reference to `accent_table'
drivers/built-in.o: In function `vt_do_diacrit':
(.text+0x61b81): undefined reference to `accent_table_size'
drivers/built-in.o: In function `vt_do_kdsk_ioctl':
(.text+0x6207d): undefined reference to `key_maps'
drivers/built-in.o: In function `vt_do_kdsk_ioctl':
(.text+0x62125): undefined reference to `key_maps'
drivers/built-in.o: In function `vt_do_kdsk_ioctl':
(.text+0x621c0): undefined reference to `key_maps'
drivers/built-in.o: In function `vt_do_kdsk_ioctl':
(.text+0x621cf): undefined reference to `key_maps'
drivers/built-in.o: In function `vt_do_kdsk_ioctl':
(.text+0x62242): undefined reference to `keymap_count'
drivers/built-in.o: In function `vt_do_kdsk_ioctl':
(.text+0x62250): undefined reference to `key_maps'
drivers/built-in.o: In function `vt_do_kdsk_ioctl':
(.text+0x62276): undefined reference to `keymap_count'
drivers/built-in.o: In function `vt_do_kdsk_ioctl':
(.text+0x622b4): undefined reference to `keymap_count'
drivers/built-in.o: In function `vt_do_kdgkb_ioctl':
(.text+0x623c0): undefined reference to `funcbufleft'
drivers/built-in.o: In function `vt_do_kdgkb_ioctl':
(.text+0x623cc): undefined reference to `funcbufsize'
drivers/built-in.o: In function `vt_do_kdgkb_ioctl':
(.text+0x623d9): undefined reference to `func_table'
drivers/built-in.o: In function `vt_do_kdgkb_ioctl':
(.text+0x623eb): undefined reference to `funcbufptr'
drivers/built-in.o: In function `vt_do_kdgkb_ioctl':
(.text+0x6241e): undefined reference to `func_table'
drivers/built-in.o: In function `vt_do_kdgkb_ioctl':
(.text+0x6248a): undefined reference to `func_table'
drivers/built-in.o: In function `vt_do_kdgkb_ioctl&

Re: [blfs-support] setleds KDSKBLED: Invalid argument

2012-04-26 Thread Andrew Benton
On Thu, 26 Apr 2012 13:50:45 +0100
Fernando de Oliveira  wrote:

> I use numlockx.

So do I, at init 5, when xorg is running. I was talking about init 3,
at the console.

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


[blfs-support] setleds KDSKBLED: Invalid argument

2012-04-26 Thread Andrew Benton
Hello Everyone,

I have a boot script which sets the numlock key so I can use the number
keypad on the end of my keyboard without thinking about having to press
the numlock key. I think I got the code from the setleds man page and
it goes like this:

for tty in /dev/tty{1..6}
do setleds -D +num < ${tty}
done

It runs in init 3, at the console. I've had it for years, it's always
run fine without causing me any problems, until recently. With the 3.4
kernel (currently 3.4-rc4) I get an error message printed on the screen
6 times:
KDSKBLED: Invalid argument
and then a big red error message 'cos the bootscript failed as setleds
exited with a non zero return value of 1. Oddly, despite
this, setleds works, it sets the numlock key :/ so I can work around
the error messages by adding a little to the script:

for tty in /dev/tty{1..6}
do setleds -D +num < ${tty} &> /dev/null || true
done

Which works, does the job, sets the numlock and doesn't complain.
However, I'd rather get to the bottom of it and fix it properly rather
than muffle the error message. Does anyone know what has changed in the
3.4 kernel that is causing this? setleds comes from kbd-1.15.2. I've
also tried kbd-1.15.3 and current git with the same results. Digging in
the kernel, it seems that this commit is the culprit:

http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blobdiff;f=drivers/tty/vt/keyboard.c;h=70d0593d3bc66331f942632130c7ddd802a65fbb;hp=898e359c54240dfa10a9c3c0dfbea5dde77f6cf3;hb=079c9534a96da9a85a2a2f9715851050fbfbf749;hpb=0fb8379dab9f97e4c56de8f9ea772c10eda27561

Specifically this bit:

+int vt_do_kdskled(int console, int cmd, unsigned long arg, int perm)
+{
+   struct kbd_struct * kbd = kbd_table + console;
+unsigned long flags;
+   unsigned char ucval;
+
+switch(cmd) {
+   /* the ioctls below read/set the flags usually shown in the leds */
+   /* don't use them - they will go away without warning */
+   case KDGKBLED:
+spin_lock_irqsave(&kbd_event_lock, flags);
+   ucval = kbd->ledflagstate | (kbd->default_ledflagstate << 4);
+spin_unlock_irqrestore(&kbd_event_lock, flags);
+   return put_user(ucval, (char __user *)arg);
+
+   case KDSKBLED:
+   if (!perm)
+   return -EPERM;
+   if (arg & ~0x77)
+   return -EINVAL;
+spin_lock_irqsave(&kbd_event_lock, flags);
+   kbd->ledflagstate = (arg & 7);
+   kbd->default_ledflagstate = ((arg >> 4) & 7);
+   set_leds();
+spin_unlock_irqrestore(&kbd_event_lock, flags);
+   break;
+
+   /* the ioctls below only set the lights, not the functions */
+   /* for those, see KDGKBLED and KDSKBLED above */
+   case KDGETLED:
+   ucval = getledstate();
+   return put_user(ucval, (char __user *)arg);
+
+   case KDSETLED:
+   if (!perm)
+   return -EPERM;
+   setledstate(kbd, arg);
+   return 0;
+}
+return -ENOIOCTLCMD;
+}

Which looks to me like it's something to do with permissions? But I get
the error if use setleds as root?
The offending code from setleds.c is like this:

if (ioctl(0, KDSKBLED, (ndefflags << 4) | nflags)) {
perror("KDSKBLED");
exit(1);
}

And that's as far as I've got. Can anyone shed any light on this?

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] Firefox-12 and flash

2012-04-24 Thread Andrew Benton
On Tue, 24 Apr 2012 04:50:27 +0100
Ian Macdonald  wrote:

> Just built Firefox-12 ( by the book with the addition of Andy's
> cairo-1.10.2 patch to get it to compile ).
> 
> Has anyone been able to get the flash plugin to work? I have Shockwave
> Flash v 11.2.202.233 installed
> but it doesn't download any movies.

Have you installed curl? I think Flash needs Curl.

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] RoxTerm-2.6.2

2012-04-23 Thread Andrew Benton
On Mon, 23 Apr 2012 15:32:00 +0100
Fernando de Oliveira  wrote:

> My problem may be due to other rox* in that machine. I was trying to choose a 
> file manager, so tried many: mc, thunar, pacmanfm and rox. When trying rox, I 
> used used 0install, have many directories with that and with rox-all, etc. 
> Tried moving out all old rox related, but problem persisted.

That sounds likely, I've never used 0install, I like to know what's
been installed and where, that's why the Rox-filer page in the book
puts almost everything into /usr/share/rox

> Finally, must say that I was suspicious about roxterm, and would stick to 
> terminator, and start a discussion asking for it in the book.
> 
> However, both do essentially the same, with main difference being how to 
> customize, so *I can live with roxterm*. The most important similarity is 
> having tabs *and* drag and drop re-ordering of terminals, lxterminal lacks 
> this.
> 
> The things I see terminator excels roxterm are "simultaneous typing to 
> arbitrary groups of terminals" and the possibility to divide the terminal 
> window with a grid of terminals:
> 
> http://www.tenshu.net/p/terminator.html
> 
> http://1.bp.blogspot.com/-pBBJoLyOUbs/Ti9BfXqRu7I/DUk/Uw-4Zy9pAQU/s320/2008-08-17-terminator.png
> 
> http://2.bp.blogspot.com/-qyMP81mKst8/Ti9BhfyHm0I/DU0/etHIgq6-g3k/s320/terminator.png
> 
> http://2.bp.blogspot.com/-Z4-232D1ndA/Ti9BgR98CsI/DUs/XaLH04i6CW0/s320/terminator-mad.png
> 
> the last image is referred to as "ridiculous" by the author
> 
> Although very interesting, I never used those but grid, just for curiosity.

I like to be able to drag a file into a terminal window but I don't
need anything more advanced than that. I've just stopped using roxterm
as it has a bug with gtk+-3.4: I can't scroll back with the scroll
wheel. I can scroll fine in other gtk+-3 app but not roxterm :/ So I've
gone back to using Xfce's terminal which uses gtk+-2 and the gtk+-2
version of vte, vte-0.28.2. Xfce's terminal has a few more dependencies
than Roxterm as it uses some Xfce things but it works fine.

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] RoxTerm-2.6.2

2012-04-22 Thread Andrew Benton
On Sun, 22 Apr 2012 15:15:10 +0100
Fernando de Oliveira  wrote:

> I am using
> 
> python mscript.py configure  --prefix=/usr
> python mscript.py build
> python mscript.py install --destdir=/
> 
> Checked with your instructions, problem was the same:
> 
> > /usr/bin/install -m 0644 ../Config/Colours/Tango ../Config/Colours/GTK 
> > ///usr/share/roxterm/Config/Colours
> > /usr/bin/install -d ///usr/share/roxterm/Config/Shortcuts
> > /usr/bin/install -m 0644 ../Config/Shortcuts/Default 
> > ///usr/share/roxterm/Config/Shortcuts

For me, that's the last line of my log, it's finished installing, I
can't reproduce your error.

> Traceback (most recent call last):
>   File "mscript.py", line 494, in 
> ctx.install_data("roxterm.xml", gda)
>   File 
> "/media/dados/home/fernando/tmp/paco-build-2012.04.22/roxterm-2.6.2/maitch.py",
>  line 1086, in install_data
> self.install(directory, sources, mode, libtool, other_options)
>   File 
> "/media/dados/home/fernando/tmp/paco-build-2012.04.22/roxterm-2.6.2/maitch.py",
>  line 1025, in install
> raise MaitchInstallError("Can't install files to multiple " \
> maitch.MaitchInstallError: Can't install files to multiple directories

The string "Can't install files to multiple " is from the python script
maitch.py. I don't know enough python to work out what's going wrong.
What version of Python are you using? I'm still using Python-2.7.2

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] hicolor-icon-theme/MPlayer-svn_20120315 documentation Beyond Linux® From Scratch - Version 2012-04-11/Chapter 38. Video Utilities

2012-04-19 Thread Andrew Benton
On Wed, 18 Apr 2012 23:18:45 +0100
rhubarbpie...@gmail.com wrote:

> 
> Should hicolor-icon-theme be mentioned as a requirement in the "Skin 
> Installation (Optional)" section?  If I compile the Blue skin (as per 
> instructions) and access gmplayer I receive the following:
> 
>  Gtk-WARNING **: Could not find the icon 'mplayer.'  The 'hicolor' 
> theme was not found either, perhaps you need to install it.

Run time dependencies are a bit of a grey area. Sometimes they're
mentioned and sometimes not, e.g., you don't need to install Xorg
Server to install Gtk+ but Gtk+ is pretty useless without Xorg Server
and yet it's not mentioned on either of the Gtk+ pages. In general we
focus on compile time dependencies.

> I know little of MPlayer and installed only the Blue skin, but 
> installing hicolor-icon-theme fixed the problem and gmplayer executed 
> well.  hicolor-icon-theme is listed as Recommended in the gtk+ 
> documentation.

We tend to treat recommended deps the same as required deps, we expect
you to install them and if you don't, well, that's your decision.

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] Need help with Udev-Installed LFS Version in BLFS

2012-04-16 Thread Andrew Benton
On Mon, 16 Apr 2012 17:01:10 +0100
"Dr.-Ing. Edgar Alwers"  wrote:

> Hallo, 
> 
> I am building udev BLFS § 12 Version 2012-04-15. My LFS System is 7.0
> My original LFS udev was 173. If I build this one in BLFS, following the 
> actual instructions, I get an error during the boot process: 
> " /dev/pts does not exist" 
> and  I do not have xterm or consoles availaible. By the way, udev-173 is not 
> anymore included in the list.
> 
> So I took udev-174 and built following the book. "Make check" delivers some 
> 140 errors, but the system boots now withouth problems. Is that OK ? Can I 
> continue with udev-174 even if LFS was built with  udev-173 ?

If the system boot Ok then sure, why not?

> May be a follow up problem is that, after building upower-0.9.14, the system 
> crashes during the boot process, telling that /dev/sda1 has not been found. I 
> do not know, if this could be related to a udev not working as it should ?

The only way that I can think that installing a package would produce
a /dev/sda1 has not been found error would be if it modified the udev
rules so that /dev/sda1 was called something else or had the wrong
permissions so it couldn't be read. So check your udev rules,
/lib/udev/rules.d/* and /etc/udev/rules.d/*

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Re: [blfs-support] llvm in BLFS SVN

2012-04-14 Thread Andrew Benton
On Fri, 13 Apr 2012 20:58:55 +0100
James Richard Tyrer  wrote:

> Do you have OCaml installed?

No, I didn't, but since installing it I now get the same error as you. I
got past that with these commands. I configure LLVM
--with-ocaml-libdir=/usr/lib (ocaml has its .cmi files
in /usr/lib/ocaml), after I run configure I changed one of the
Makefiles with a sed and then copied META.llvm into the Release folder:

sed -i 's#/ocaml$##;s#(OCAML_LIBDIR)$#&/ocaml#' bindings/ocaml/Makefile.ocaml
mkdir bindings/ocaml/llvm/Release
cp bindings/ocaml/llvm/{,Release/}META.llvm

Basically the sed moves /ocaml from the end of one line onto the end of
the previous line and it seems the make process doesn't copy META.llvm
into the right place. It looks like buggy, unmaintained code to me, but
what do I know ;)

It compiled and installed Ok. I'm not sure if it works as I don't use
ocaml. I only need LLVM as a dependency for Mesa.

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] llvm in BLFS SVN

2012-04-13 Thread Andrew Benton
On Fri, 13 Apr 2012 06:51:16 +0100
James Richard Tyrer  wrote:

> I was unable to build llvm-3.0.
> 
> It failed with:
> 
> make[3]: Entering directory `/usr/src/llvm-3.0.src/bindings/ocaml/llvm'
> make[3]: *** No rule to make target 
> `/usr/src/llvm-3.0.src/Release/lib/ocaml/libLLVMCore.so', needed by 
> `build-deplibs'.  Stop.
> make[3]: Leaving directory `/usr/src/llvm-3.0.src/bindings/ocaml/llvm'
> make[2]: *** [all] Error 1
> make[2]: Leaving directory `/usr/src/llvm-3.0.src/bindings/ocaml'
> 
> This appears to be an error in a Makefine somewhere since the file 
> exists but it is in a different directory:
> 
> /usr/src/llvm-3.0.src/Release/lib/libLLVMCore.so
> 
> The same is true for other SO files so I can only speculate that it is 
> using:
> 
>   ./Release/lib/ocaml
> 
> instead of:
> 
>   .Release/lib
> 
> somewhere.  But, these Make files are too clever and I couldn't figure 
> it out.
> 
> I also note that the: "configure" option: "--with-ocaml-libdir=" is 
> necessary if building OCaml bindings.  Should this be where OCaml is 
> installed?  The default appears to be for where LLVM will be installed: 
> "/opt/llvm/lib/ocaml".  "--prefix=" does not appear to change this.

How did you configure llvm? If I grep through my build log for
'bindings/ocaml/llvm' the only mention of it is when it's creating a
file called META.llvm. Ie, for me, it doesn't run make in the directory
at all.

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] cairo-1.12.0 text rendering buggy?

2012-04-11 Thread Andrew Benton
On Tue, 03 Apr 2012 21:18:22 +0100
Andrew Benton  wrote:

> On Mon, 02 Apr 2012 11:49:31 +0100
> Simon Geard  wrote:
> 
> > That one links to https://bugs.freedesktop.org/show_bug.cgi?id=47266
> > which makes it sound like this is an X server bug, which the new cairo
> > release triggers. Unfortunately, they don't seem to have a clear idea of
> > what that bug is yet...
> 
> Good news everyone! Patch for xorg-server-1.12.0 which fixes the problem!
> https://bugs.freedesktop.org/attachment.cgi?id=59437
> 

Sorry, I was a bit over enthusiastic there. It makes the problem a bit
less noticeable so most things are quite usable.
One problem I have found which the above patch doesn't fix is with
Libre Office. When viewing a powerpoint, I can see the slides and edit
them and so on but when I try to view it full screen (like if you were
giving a powerpoint for real) nothing changes on the screen. If I try
to click anywhere on the screen it's unresponsive unless I keep
clicking and then I get the black screen with "click to exit
presentation..." Ie, it seems that it is giving the presentation but I
can't see it. I think it is trying to render a full screen overlay
using cairo and it fails to render it on a system with cairo-1.12.0.
On an otherwise identical system that has cairo-1.10.2 it works as it
should, I get the slide show. I don't know if this is the same bug as
the one above (in xorg server?) or if this is another bug in
cairo-1.12.0, but it's not a bug in Libre Office which works as
expected with cairo-1.10.2.

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] Cyrus-sasl and SMTP

2012-04-10 Thread Andrew Benton
On Tue, 10 Apr 2012 18:24:53 +0100
Bruce Dubbs  wrote:

> Michael Shell wrote:
> > On Mon, 9 Apr 2012 13:47:16 -0500
> > Stuart Stegall  wrote:
> > 
> >> It's not resolved as of yet I believe: downgrade to 2.1.23
> 
> > FWIW, there is a patch to fix 2.1.25:
> > 
> > https://bugzilla.cyrusimap.org/show_bug.cgi?id=3590
> > 
> > 
> > --- auxprop.c.orig  2012-01-11 12:34:03.948477379 -0800
> > +++ auxprop.c   2012-01-11 12:34:45.878474663 -0800
> > @@ -917,7 +917,10 @@
> > (sasl_callback_ft *)&getopt,
> > &context) == SASL_OK) {
> >ret = getopt(context, NULL, "auxprop_plugin", &plist, NULL);
> > -   if(ret != SASL_OK) plist = NULL;
> > +   if(ret != SASL_OK) {
> > +   plist = NULL;
> > +   result = SASL_OK;
> > +   }
> > }
> > 
> > if(!plist) {
> > 
> > 
> > 
> > which should get it to work as well as 2.1.23, but it probably
> > still is not the final word on the issue.
> 
> Looks like a sed to me:
> 
> sed -i 's/\(plist = NULL;\)/{\1 result = SASL_OK;}/' auxprop.c

Unfortunately that will change 3 lines in the file and the patch only
changes one.

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] Gamin-0.1.10 error

2012-04-10 Thread Andrew Benton
On Mon, 09 Apr 2012 16:21:21 +0100
spiky  wrote:

> I'm having a problem with gamin now. I have also tried 
> gamin-0.1.10.2.src, which had some patches in it I have applied the 
> patches but still the same output.
> Any more pointers plz
> 
> make[3]: Entering directory `/sources/lxde/gamin-0.1.10/server'
> gcc -DHAVE_CONFIG_H -I. -I..  -I.. -I../libgamin -I../protocol -I../lib
> -I../libgamin -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
> -DBINDIR=\""/usr/sbin"\" -DG_DISABLE_DEPRECATED -DGAM_DEBUG_ENABLED
> -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes
> -Wnested-externs -Wsign-compare -Wno-sign-compare -g  -MT
> gam_subscription.o -MD -MP -MF .deps/gam_subscription.Tpo -c -o
> gam_subscription.o gam_subscription.c
> In file included from gam_subscription.c:26:0:
> gam_subscription.h:24:16: error: expected '=', ',', ';', 'asm' or
> '__attribute__' before 'char'
> gam_subscription.c:144:16: error: expected '=', ',', ';', 'asm' or
> '__attribute__' before 'char'
> gam_subscription.c:351:1: warning: no previous prototype for
> 'gam_subscription_shutdown' [-Wmissing-prototypes]
> make[3]: *** [gam_subscription.o] Error 1
> make[3]: Leaving directory `/sources/lxde/gamin-0.1.10/server'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/sources/lxde/gamin-0.1.10/server'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/sources/lxde/gamin-0.1.10'
> make: *** [all] Error 2

Firerat posted a fix for this in January:
http://linuxfromscratch.org/pipermail/blfs-support/2012-January/069150.html

He suggested:
find server/ -type f -exec sed -i 's/G_CONST_RETURN/const/' {} ';'

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] wpa_supplicant, wpa_cli and the book

2012-04-08 Thread Andrew Benton
On Mon, 09 Apr 2012 00:30:16 +0100
alex lupu  wrote:

> Hello,
> 
> I was wondering if after the "wpa_supplicant-0.7.3" paragraph,
> 
> <<
>  To use wpa_cli to control the running wpa_supplicant daemon, add a
>  control interface to /etc/wpa_supplicant.conf.  As the root user:
> echo ctrl_interface=/run/wpa_supplicant >> /etc/wpa_supplicant.conf
> >>
> 
> it would be worth adding something to the effect:
> 
> <<
> Note:  The same result can be achieved by adding an extra argument,
> "-C/run/wpa_supplicant"
> to the 'wpa_supplicant' invocation (wpa_supplicant -B ...) instead.
> >>

I suppose so. That option is documented in the man page which we
install, we can't really put the whole man page into BLFS. I'm up to my
neck in Libre Office at the moment. I might have another look at
wpa_supplicant in a couple of days.

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] lxde error with glib.h

2012-04-08 Thread Andrew Benton
On Sun, 08 Apr 2012 21:40:22 +0100
spiky  wrote:

> Hi
> Not sure if this is the correct place to post this, I,m trying to 
> install LXDE on blfs svn.
> I have a problem with 1 of the lxde packages lxpanel.
> The error is looking for glib.h in /usr/include/glib-2.0/glib but glib.h 
> is in /usr/include/glib-2.0. I did try copying glib.h to the glib dir 
> but still the same results.
> 
> In file included from netstatus-sysdeps.h:28:0,
>   from netstatus-sysdeps.c:28:
> /usr/include/glib-2.0/glib/gtypes.h:28:2: error: #error "Only 
> can be included directly."
> In file included from /usr/include/glib-2.0/glibconfig.h:9:0,
>   from /usr/include/glib-2.0/glib/gtypes.h:34,
>   from netstatus-sysdeps.h:28,
>   from netstatus-sysdeps.c:28:
> /usr/include/glib-2.0/glib/gmacros.h:32:2: error: #error "Only 
> can be included directly."
> In file included from /usr/include/glib-2.0/glib/gtypes.h:35:0,
>   from netstatus-sysdeps.h:28,
>   from netstatus-sysdeps.c:28:
> /usr/include/glib-2.0/glib/gmacros.h:32:2: error: #error "Only 
> can be included directly."
> In file included from /usr/include/glib-2.0/glib/gtypes.h:36:0,
>   from netstatus-sysdeps.h:28,
>   from netstatus-sysdeps.c:28:
> /usr/include/glib-2.0/glib/gversionmacros.h:28:2: error: #error "Only
>  can be included directly."
> In file included from netstatus-sysdeps.h:29:0,
>   from netstatus-sysdeps.c:28:
> /usr/include/glib-2.0/glib/gmacros.h:32:2: error: #error "Only 
> can be included directly."
> make[4]: *** [netstatus-sysdeps.lo] Error 1
> make[4]: Leaving directory
> `/sources/lxpanel-0.4.1/src/plugins/netstatus'
> make[3]: *** [all-recursive] Error 1
> make[3]: Leaving directory `/sources/lxpanel-0.4.1/src/plugins'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/sources/lxpanel-0.4.1/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/sources/lxpanel-0.4.1'
> make: *** [all] Error 2

lxpanel-0.5.8 has no problems with current glib. Is there a reason
you're using an old version?

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] Xorg: what do I need for hardware 3D acceleration ?

2012-04-07 Thread Andrew Benton
On Sat, 07 Apr 2012 14:33:42 +0100
Ken Moffat  wrote:

> On Sat, Apr 07, 2012 at 12:08:28PM +0100, Martin Ward wrote:
> > 
> > Are you a member of the video group?, if not you will only get software 
> > acceleration
> > 
> 
>  Hi Martin, that was the problem - I hadn't needed to be in the
> video group in the past, so I wasn't in it.
> 
>  I added myself to that group on all three of my current machines -
> now even the old R200 (9200se) can run gnome-shell.

It seems the instructions to add a user to the video group are on the
x-setup.xml page but it doesn't get rendered into the html these days.
It seems it's been commented out on the installing.xml page? DJ?

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] Xorg: what do I need for hardware 3D acceleration ?

2012-04-06 Thread Andrew Benton
On Sat, 07 Apr 2012 01:29:59 +0100
Ken Moffat  wrote:

> 
>  After building all of gnome-3 on my old hardware, I had hoped that
> my newer hardware (an i3 with integrated intel graphics) would be
> able to run clutter applications such as gnome-shell and totem, but
> it wasn't up to it.  So, I've moved on to my other new machine with
> a radeon600 chipset and done some more googling.  I've just rebuilt
> the existing versions of libdrm (2.4.27), Mesa (7.11.2) and
> xf86-video-ati (6.14.3) without patches/reversions, with the nouveau
> addition to libdrm, and using llvm so that I can build *everything*.
> 
>  But still I'm using the software rasterizer:
> 
> ken@ac4tv ~ $glxinfo | grep OpenGL
> OpenGL vendor string: Mesa Project
> OpenGL renderer string: Software Rasterizer
> OpenGL version string: 2.1 Mesa 7.11.2
> OpenGL shading language version string: 1.20
> OpenGL extensions:
> ken@ac4tv ~ $ls /usr/lib/dri/
> i915_dri.somga_dri.sor200_dri.so  radeon_dri.so
> swrastg_dri.so
> i965_dri.sonouveau_vieux_dri.so  r300_dri.so  savage_dri.so
> tdfx_dri.so
> mach64_dri.so  r128_dri.so   r600_dri.so  swrast_dri.so
> unichrome_dri.so
> 
>  What am I missing in my attempts to get 3D acceleration ?

What does it say in /var/log/Xorg.0.log about dri? Hopefully it'll give
you some clue:
grep -i dri /var/log/Xorg.0.log | sed '/[Dd]river/d'

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] BLFS Book - Version 2012-04-04 Enhancement gtk+-3.2.4

2012-04-05 Thread Andrew Benton
On Thu, 05 Apr 2012 09:24:15 +0100
"Dr.-Ing. Edgar Alwers"  wrote:

> On Wed, 4 Apr 2012 22:25:00 +0100
> Andrew Benton  wrote:
> 
> > Address what? Since the 19th of Feb the Gtk+-3 page has had:
> > NB, you will need to install Gobject Introspection before you install
> > atk-2.4.0, Pango-1.30.0 and gdk-pixbuf-2.26.0.
> > How could it be any clearer?
> 
> It is not mentioned, that atk, pango and gdk-pixbuf have to be compiled also 
> with the directive "--enable-introspection=yes".

That is the default if Gobject-Introspection is installed.

> The pages for these packages do not mention this. The instructions say  
> "Recommended: gobject-introspection-1.32.0 (Required if building GNOME)", but 
> if I got it, introspection seems to be /necessary/ if building gtk+-3 is 
> intended:
> 
> Extract from Grimoire's Bug 26 dated 07/22/2011 ( 
> http://www.sourcemage.org/issues/26 )
> quote
> -
> When gdk-pixbuf2, pango, or atk is compiled without gobject-introspection one 
> of the following errors is thrown during gtk+3 cast:
> Couldn't find include 'GdkPixbuf-2.0.gir' (search path: ['../gdk', 
> '/opt/kde4/share/gir-1.0', '/usr/share/gir-1.0', '/usr/share/gir-1.0', 
> '/usr/share/gir-1.0', '/usr/share/gir-1.0'])
> This needs to be solved using appropriate sub depends.
> -
> unquote
> 
> See above. I went through atk,pango and gdk-pixbuf. As I do not use gnome, I 
> compiled using the instructions of the book. Then I built gtk+-3, with the 
> failure "Couldn't find include 'GdkPixbuf-2.0.gir" and I had to google.
> As I have some experience building BLFS, I would think that the instructions 
> could get some additional explanations. But of course, you are by far more 
> experienced as I do and you may see it better.

If you don't need support for Gobject-Introspection the simple solution
to this error is to configure Gtk+-3 with --disable-introspection. When
we edit the pages of BLFS we don't describe every possible option that
can be passed to configure, we assume that the readers have the
intelligence to run ./.configure --help themselves.

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] BLFS Book - Version 2012-04-04 Enhancement gtk+-3.2.4

2012-04-05 Thread Andrew Benton
On Wed, 04 Apr 2012 23:29:33 +0100
Bruce Dubbs  wrote:

> Do we need to add --enable-introspection=yes in the Command Explanations 
> for those that have built Gobject Introspection?

No, that is the default if Gobject-Introspection is installed.

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] BLFS Book - Version 2012-04-04 Enhancement gtk+-3.2.4

2012-04-04 Thread Andrew Benton
On Wed, 04 Apr 2012 20:21:39 +0100
Bruce Dubbs  wrote:

> Dr.-Ing. Edgar Alwers wrote:
> > Hallo Bruce,
> > 
> > Building "gtk+-3.2" according to Chapter 25 of the book, I got a
> > "make error" message concerning "gdkpixbuf-2.0.gir".
> > 
> > It seems to be necessary to include  an "--enable-introspection= yes"
> > in the configuration command: "./configure --prefix=/usr
> > --sysconfdir=/etc --enable-introspection=yes" of gtk+-3.2
> > 
> > According to a bug report "http://www.sourcemage.org/issues/26"; :
> > "gtk+3 needs gdk-pixbuf2, pango and atk to be compiled with
> > gobject-introspection support".
> > 
> > I changed the configuration accordingly in  these programs and I went
> > through the building process of gtk+-3.2.4 without further problems.
> > 
> > 
> > You may want to consider adjusting the instructions in the book.
> 
> Andy,
>You've been doing gtk+3.  Do you want to address this?

Address what? Since the 19th of Feb the Gtk+-3 page has had:

NB, you will need to install Gobject Introspection before you install
atk-2.4.0, Pango-1.30.0 and gdk-pixbuf-2.26.0.

How could it be any clearer?

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] BLFS Book - Version 2012-04-04 Enhancement gtk+-3.2.4

2012-04-04 Thread Andrew Benton
On Wed, 04 Apr 2012 19:37:17 +0100
"Dr.-Ing. Edgar Alwers"  wrote:

> Hallo Bruce,
> 
> Building "gtk+-3.2" according to Chapter 25 of the book, I got a "make error" 
> message concerning "gdkpixbuf-2.0.gir".
> 
> It seems to be necessary to include  an "--enable-introspection= yes" in the 
> configuration command: "./configure --prefix=/usr --sysconfdir=/etc 
> --enable-introspection=yes" of gtk+-3.2
> 
> According to a bug report "http://www.sourcemage.org/issues/26"; : "gtk+3 
> needs gdk-pixbuf2, pango and atk to be compiled with gobject-introspection 
> support".
> 
> I changed the configuration accordingly in  these programs and I went through 
> the building process of gtk+-3.2.4 withouth further problems.
> 
> You may want to consider adjusting the instructions in the book.

In what way? --enable-introspection is the default for Gtk+-3 if
gobject-introspection. You got your error because you didn't install
Gobject-Introspection before you installed Gdk-Pixbuf. On the Gtk+-3
page it already says that if you want introspection support you need to
install Gobject Introspection before you install Atk, Pango and
Gdk-Pixbuf. If you don't need introspection support and you're getting
an error because of Gobject-Introspection the obvious solution is to
configure with --disable-introspection.

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] cairo-1.12.0 text rendering buggy?

2012-04-03 Thread Andrew Benton
On Mon, 02 Apr 2012 11:49:31 +0100
Simon Geard  wrote:

> That one links to https://bugs.freedesktop.org/show_bug.cgi?id=47266
> which makes it sound like this is an X server bug, which the new cairo
> release triggers. Unfortunately, they don't seem to have a clear idea of
> what that bug is yet...

Good news everyone! Patch for xorg-server-1.12.0 which fixes the problem!
https://bugs.freedesktop.org/attachment.cgi?id=59437

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] cairo-1.12.0 text rendering buggy?

2012-04-01 Thread Andrew Benton
On Sun, 01 Apr 2012 13:44:59 +0100
Tobias Gasser  wrote:

> Andrew Benton schrieb:
> > Hello,
> > I've been trying to use cairo-1.12.0 over the last few days and it
> > seems quite buggy. 
> 
> i just reverted to 1.10.2 too.
> 
> i have problems with screen-garbage running midnight-commander in a
> x-terminal. i couldn't find anything really matching with google, but i
> got other cairo-related problems thus i just tried wether stepping back
> would solve my problem - and it did!
> 
> most packages are up to blfs-current, but i don't use gtk3 (xfce 4.8.x
> requires gtk2). all packages which require gtk3 are not up to
> blsf-current but should be up to the latest version for gtk2.

I wonder if we should put cairo-1.10.2 back in the book. In my opinion
cairo-1.12.0 is too buggy. Personally I'll continue to use cairo-1.12.0
on my main system as I want to get to the bottom of this, but for the
foreseeable future I'll use cairo-1.10.2 on the other computers (used by
family).

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] DHCP-4.2.3-P2 Client Configuration

2012-04-01 Thread Andrew Benton
On Sun, 01 Apr 2012 03:11:50 +0100
al...@verizon.net wrote:

> - Author's profile:
> 1. Simple, unsophisticated, country boy.
> 2. Likes to control when he is up and down.
>  NOT in sync with the machine being up and down.
>  If he wants to be in sync with the machine he uses Windows
>  (for real work, like we all), which does an "automatic"
>  DHCP behind the scenes (in a way like what our regular scripts do).
> 3. Paranoic about id-theft (the less time on line the better).

If you are paranoid about id-theft don't use windows. You're wrong to
say we all use Windows for real work. The only thing I use Windows for
is to game.

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] Intltool-0.50.0 not found

2012-03-30 Thread Andrew Benton
On Fri, 30 Mar 2012 15:42:50 +0100
"mike"  wrote:

> i i tried changeing download to mile stone it gave me a cirtificate error so
> i did wget root [ /sources ]# wget --no-check-certificate
> http://launchpad.net/intltool/trunk/0.50.0/+milestone/intltool-0.50.0.tar.g
> z
> 
> --2012-03-30 09:40:43--
> http://launchpad.net/intltool/trunk/0.50.0/+milestone/intltool-0.50.0.tar.gz
> 
> Resolving launchpad.net... 91.189.89.223, 91.189.89.222
> 
> Connecting to launchpad.net|91.189.89.223|:80... connected.
> 
> HTTP request sent, awaiting response... 301 Moved Permanently
> 
> Location:
> https://launchpad.net/intltool/trunk/0.50.0/+milestone/intltool-0.50.0.tar.g
> z [following]   
> --2012-03-30 09:40:44--
> https://launchpad.net/intltool/trunk/0.50.0/+milestone/intltool-0.50.0.tar.g
> z
> Connecting to launchpad.net|91.189.89.223|:443... connected.
> 
> WARNING: cannot verify launchpad.net's certificate, issued by
> `/C=US/ST=Arizona/L=Scottsdale/O=GoDaddy.com, Inc./OU=http:/
> /certificates.godaddy.com/repository/CN=Go Daddy Secure Certification
> Authority/serialNumber=07969287':   
>   Self-signed certificate encountered.
> 
> HTTP request sent, awaiting response... 404 Not Found
> 
> 2012-03-30 09:40:45 ERROR 404: Not Found.
> 
>  
> 
> root [ /sources ]#
> 
>  
> 
> 
> any other suggestions?

Install the ca certs:
http://www.linuxfromscratch.org/blfs/view/svn/postlfs/cacerts.html
Configure wget to use them:
echo ca-directory=/etc/ssl/certs >> /etc/wgetrc
Then try the download url from the book:
wget http://launchpad.net/intltool/trunk/0.50.0/+download/intltool-0.50.0.tar.gz

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] cairo-1.12.0 text rendering buggy?

2012-03-30 Thread Andrew Benton
On Fri, 30 Mar 2012 10:58:54 +0100
Simon Geard  wrote:

> I don't know if it's the same issue, but I saw someone on a forum
> reporting screen corruption with the new version of cairo. Here are a
> couple of links they mentioned:
> 
> https://bugs.gentoo.org/show_bug.cgi?id=409593
> 
> https://bugs.freedesktop.org/show_bug.cgi?id=38904
> 
> Maybe useful?

Thankyou, they're definitely talking about the same issue. You've given
me some links to work my way through. Many thanks

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


[blfs-support] cairo-1.12.0 text rendering buggy?

2012-03-29 Thread Andrew Benton
Hello,
I've been trying to use cairo-1.12.0 over the last few days and it
seems quite buggy. In a text editor, if the file is reasonably long
(like a configure script) then scrolling is really slow and laggy. And
in Firefox, most of the text is fine but some of the text is
missrendered, sometimes it looks sort of pixelated, sometimes it looks
like a block of diagonal lines. And as I move the mouse about and
highlight different links some of the text gets redrawn correctly and
other bits elsewhere on the page get missrendered. While Firefox is
open I sometimes get the same missrendered text effects in other
applications like the terminal, which is why I think it's something
they're both using, ie, cairo.

I didn't patch cairo, I just configured it --disable-static
--enable-tee. If I remove the files it installed and then install
cairo-1.10.2 everything works properly again. I can configure 1.10.2
--enable-xcb --disable-static --enable-gl --enable-tee --enable-xml
--enable-vg --enable-drm. cairo-1.12.0 won't even compile if I
configure it --enable-drm. It seems a lot more buggy than it was.

I'm not getting any error messages anywhere so I've nothing to google
on. I feel this may be a long slog getting to the bottom of this one so
I though I'd ask if anyone else has some insight.

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] Py2cairo (./configure or ./waf configure)? Beyond Linux® From Scratch - Version 2012-03-28

2012-03-29 Thread Andrew Benton
On Thu, 29 Mar 2012 23:52:20 +0100
rhubarbpie...@gmail.com wrote:

> 
> The 03/28/12 documentation instructs Py2cairo to be installed as follows:
> 
> ./configure --prefix=/usr &&
> make
> make install
> 
> Although the INSTALL file mentions the .configure method, ./configure 
> --prefix=/usr returns - configure: error: cannot find install-sh, 
> install.sh, or shtool in "." "./.." "./../..".  But the INSTALL file 
> also offers as follows:
> 
> ./waf configure
> ./waf build
> ./waf install
> 
> The ./waf method works perfectly.  Is the Py2cairo INSTALL file 
> incorrect?  If so, should the documentation list ./waf as the proper 
> method?  If not, what am I missing?

This is a bug in py2cairo-1.10.0 configure, make, make install should
work but clearly there are some files missing from the tarball. As you
say, the waf method works. I prefer the familiar configure, make, make
install so I use:
autoreconf -f -i
./configure --prefix=/usr
make
make install

Thanks for bringing it up, I wasn't aware that this wasn't in the book.
I was working on the python modules page earlier today as well. I'll
fix it now.

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] PyGObject-3.0.4 and PYTHONPATH (was: MesaLib-8.0.1 Questions)

2012-03-23 Thread Andrew Benton
On Fri, 23 Mar 2012 13:51:26 +
Fernando de Oliveira  wrote:

> To be more precise: I had
> 
> PYTHONPATH=:/opt/gnome/lib/python2.7/site-packages
> 
> (with the colons) and changed to
> 
> # echo $PYTHONPATH
> /usr/lib/python2.7/site-packages:/opt/gnome/lib/python2.7/site-packages
> 
> So, perhaps the incomplete PYTHONPATH was confusing "make"?
> 
> I always found confusing gnome's intruction of setting PYTHONPATH which had 
> not previously been set.
> 
> "Add to your system or personal profile:
> 
> export PATH=$PATH:/opt/gnome-3.2.2/bin
> export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/gnome-3.2.2/lib/pkgconfig
> export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/gnome-3.2.2/share/pkgconfig
> export GNOME_LIBCONFIG_PATH=/usr/lib:/opt/gnome-3.2.2/lib
> export PYTHONPATH=$PYTHONPATH:/opt/gnome-3.2.2/lib/python2.7/site-packages"

What page is that on? Is it part of the gnome instructions?
Perhaps that last line should be:
export 
PYTHONPATH=${PYTHONPATH}:/usr/lib/python&python2-majorver;/site-packages:/opt/gnome-&gnome-version;/lib/python&python2-majorver;/site-packages"

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] glib libs and includes

2012-03-22 Thread Andrew Benton
On Thu, 22 Mar 2012 18:27:25 +
LM  wrote:

> Am attempting to build the glib and the gtk libraries.  I built libffi
> which glib requires.  I noticed libffi puts its include files under
> the lib directory and not under the usual include directory.  The blfs
> information leaves the files where they are.  I checked the Debian
> patches to see how they place their files and they move the files to
> the standard include directory.  So, I tried building and moving the
> include files there.  Then I tried building glib and all files ended
> up in the standard include directory except one, glibconfig.h, which
> ends up in lib\glib-2.0\include\.  Checked the Debian patches and they
> don't move this one to the standard include directory.  Tried
> searching on Google and saw some mention that moving the file could
> mess up cross-compilers, but in that example the file wasn't exactly
> under lib\glib-2.0\include but was under lib\triplet\glib-2.0\include.
>  Is there a standard for this?  Should library include files end up in
> a common include directory or should they end up under
> lib\name_of_lib\include.  Is there a rule when they should go to one
> place as opposed to another.  I don't mind moving the files around,
> I'm just trying to find a consistent approach to where my include
> files end up that makes sense.  Does anyone have any input on why to
> do it one way as opposed to another or how to make this more
> consistent?

It's up to you. Your system, your rules. On my systems I try to put all
the headers into /usr/include. With libffi I use these commands:
sed -i 's#${libdir}/#/usr/include/#;s#/include$##' libffi.pc.in
sed -i 's#sdir = $(libdir)#sdir = /usr/include#;s#/include$##' \
  include/Makefile.in

With glib:
sed -i 's:lib\(dir)/glib-2.0\)/\(include\):\2\1:' glib/Makefile.in
sed -i 's/0 .* /0 /' glib-2.0.pc.in

For gtk2:
sed -i 's:lib\(dir)/gtk-2.0\)/\(include\):\2\1:' gdk/Makefile.in
sed -i 's/0 .* /0 /' gdk-2.0.pc.in

But there are other things that I've not got round to fixing (gcc and
perl) 'cos they're too complicated and the only benefit is to satisfy
my obsessive-compulsive tendencies. One day...

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] building pkg-config-0.26 not finding glib library

2012-03-19 Thread Andrew Benton
On Mon, 19 Mar 2012 13:52:40 +
Martins Gulbis  wrote:

> The file in the library does have the .so extension, so things are ok there.

So tell us more about it:
ls -l /usr/lib/libglib-*
file /usr/lib/libglib-2.0.so
file /usr/lib/$(readlink /usr/lib/libglib-2.0.so)

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] building pkg-config-0.26 not finding glib library

2012-03-19 Thread Andrew Benton
On Mon, 19 Mar 2012 07:52:27 +
Martins Gulbis  wrote:

> Hello,
> 
> I am having problems building pkg-config-0.26.  The following is the 
> output when I try a make:
> 
> make  all-recursive
> make[1]: Entering directory `/home/martins/pkg-config-0.26'
> Making all in popt
> make[2]: Entering directory `/home/martins/pkg-config-0.26/popt'
> make[2]: Nothing to be done for `all'.
> make[2]: Leaving directory `/home/martins/pkg-config-0.26/popt'
> Making all in .
> make[2]: Entering directory `/home/martins/pkg-config-0.26'
> /bin/sh ./libtool --tag=CC   --mode=link gcc -g -Wall -O2 -g -O2   -o 
> pkg-config pkg.o parse.o main.o lglib-2.0  popt/libpopt.la
> libtool: link: gcc -g -Wall -O2 -g -O2 -o pkg-config pkg.o parse.o 
> main.o lglib-2.0  popt/.libs/libpopt.a
> gcc: error: lglib-2.0: No such file or directory
> make[2]: *** [pkg-config] Error 1
> make[2]: Leaving directory `/home/martins/pkg-config-0.26'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/martins/pkg-config-0.26'
> make: *** [all] Error 2
> 
> As you can see, it cannot find lglib-2.0, the glib-2.0 library.   The 
> makefile was created with the following configure command:
> 
> GLIB_LIBS=-lglib-2.0  GLIB_CFLAGS=-I/usr/include/glib-2.0  \
> ./configure --prefix=/usr
> 
> 
> I noticed that the actual name of the library file in /usr/lib is 
> libglib-2.0, so I tried changing GLIBS_LIB in the above to libglib-2.0 
> and to libglib-2.0.a which had the same results.  From looking at the 
> makefile I am having a hard time trying to figure out where it is 
> looking for library files.  I think that Libtool is being used for 
> things like that, but not sure.

If gcc is trying to link to -lglib-2.0 the library should be called
libglib-2.0.so How did yours not get the .so at the end?

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] AccountService-0.6.15 config error on LFS 7.0 system

2012-03-17 Thread Andrew Benton
On Sat, 17 Mar 2012 18:12:38 +
Martins Gulbis  wrote:

> I am just starting out with BLFS adding on to my LFS 7.0 system.  When 
> preparing to build AccountService-0.6.15 I get the following error:
> 
> configure: error: Your intltool is too old.  You need intltool 0.40.0 or 
> later.
> 
> I do not think any version of intltool is installed on an LFS 7.0 
> system.  I am not sure how to proceed.

Have you tried installing intltool?

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] "&&" - To Be or Not To Be

2012-03-12 Thread Andrew Benton
On Tue, 13 Mar 2012 00:46:28 +
al...@verizon.net wrote:

> Hello,
> 
> Current BLFS (HTML) Book.
> Chapter 15. Networking Programs > wpa_supplicant-0.7.3
> 
> IMHO, I think the existence of "&&" at the end of the first line of the
> here-document,
> cat > .config << "HERE_DOC" &&
> is not desired.

Why? If cat exits with an error we want things to just stop so the user
can fix it.

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] Is the xc working directory necessary when building X?

2012-03-02 Thread Andrew Benton
On Fri, 02 Mar 2012 17:09:24 -0600
rhubarbpie...@gmail.com wrote:

> 
> Beyond Linux® From Scratch - Version 2012-03-01/Chapter 24. X Window 
> System Environment states the following:
> 
> Setting up the Xorg Build Environment
> 
> First, you'll need to create a working directory:
> 
> mkdir xc &&
> cd xc
> 
> Is a separate xc working directory necessary? I thought lfs/blfs 
> convention is to build in a src directory. Linux From Scratch Version 
> 7.0 suggests the following:

I think it's just a fossilised historical curiosity. Back in the days
before Xorg forked the code and split it all into separate packages we
used to download the whole thing from XFree86 as several large (they
seemed huge at the time) tarballs, and when you extracted them they
created a directory called xc which had all the code in. It mentions it
on this page:
http://archive.linuxfromscratch.org/blfs-museum/5.0-pre1/BLFS-BOOK-5.0-PRE1-HTML/x/xfree86.html
 "After unpacking the X430src-?.tgz files, change to the xc directory and run:"

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Re: [blfs-support] Read ntfs file system

2012-02-27 Thread Andrew Benton
On Mon, 27 Feb 2012 20:59:30 +
spiky  wrote:

> On 27/02/12 20:43, Andrew Benton wrote:
> > On Mon, 27 Feb 2012 16:58:53 +
> > spiky  wrote:
> >
> >> Hi
> >>
> >> I have stared another Blfs 7.0 build and I,m having trouble with NTFS
> >> file system, I have built the 3.3 kernel marking all ntfs boxes. The
> >> build for blfs doesn't have anything installed except ssl, ssh a few
> >> graphics libraries. What  do I need to add to be able to read ntfs, My
> >> other blfs system reads ntfs but I have installed alot of other
> >> software, so maybe it was something that I had already installed, my
> >> other blfs uses 3.2 kernel FYI
> > To be able to mount an ntfs partition read only requires compiling the
> > kernel with ntfs support. I think you also need to compile in NLS,
> > support for the locale that the filesystem is in. You don't need to
> > install any other software, it's all about the kernel config.
> >
> > Andy
> Hi
> 
> Here is the config file
> 
> #
> # DOS/FAT/NT Filesystems
> #
> CONFIG_FAT_FS=y
> CONFIG_MSDOS_FS=y
> CONFIG_VFAT_FS=y
> CONFIG_FAT_DEFAULT_CODEPAGE=437
> CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1"
> CONFIG_NTFS_FS=y
> CONFIG_NTFS_DEBUG=y
> CONFIG_NTFS_RW=y

CONFIG_NTFS_RW is very dodgy. As Nathan said, if you need to mount ntfs
read/write use ntfs-3g (a userspace program that uses FUSE). You should
avoid CONFIG_NTFS_RW, it's not safe.

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] Read ntfs file system

2012-02-27 Thread Andrew Benton
On Mon, 27 Feb 2012 16:58:53 +
spiky  wrote:

> Hi
> 
> I have stared another Blfs 7.0 build and I,m having trouble with NTFS 
> file system, I have built the 3.3 kernel marking all ntfs boxes. The 
> build for blfs doesn't have anything installed except ssl, ssh a few 
> graphics libraries. What  do I need to add to be able to read ntfs, My 
> other blfs system reads ntfs but I have installed alot of other 
> software, so maybe it was something that I had already installed, my 
> other blfs uses 3.2 kernel FYI

To be able to mount an ntfs partition read only requires compiling the
kernel with ntfs support. I think you also need to compile in NLS,
support for the locale that the filesystem is in. You don't need to
install any other software, it's all about the kernel config.

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] Cups problem

2012-02-23 Thread Andrew Benton
On Fri, 24 Feb 2012 01:04:04 +0100
"Thomas de Roo"  wrote:

> Hello,
> 
> I have a problem with CUPS. I installed Ghostscript, CUPS, and Gutenprint, 
> configured my printer "printer" with a Gutenprint-driver, but it fails to 
> print:
> 
> root [ ~ ]# lp -d printer /etc/exports
> lp: Unsupported document-format "text/plain".
> 
> A test-page from the adminwebsite gives this error:
> 
> Unsupported format "application/vnd.cups-banner".
> 
> Both text/plain and application/vnd.cups-banner are in 
> /usr/share/cups/mime/mime.convs and /usr/share/cups/mime/mime.types.
> 
> Any ideas where I should look next?

I'm temped to say "Run away! Run Away!". Printing can be hard to get
working sometimes. I don't have any magic solution, but I always start
by editing /etc/cups/cupsd.conf, set LogLevel to debug and restart the
cups daemon so it reloads it's config. Then try to print something and
look in /var/log/cups/error_log for lines that begin with E for error.
Google on the error messages (it may help but there's no guarantee).
Good luck.

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] w3m error

2012-02-17 Thread Andrew Benton
On Fri, 17 Feb 2012 22:24:52 +
spiky  wrote:

> I,m building blfs latest and want to try out w3m, I have installed 
> gc-7.1 without errors when I run configure on w3m as per book I get an 
> error,
> 
> tatus: creating Makefile
> config.status: creating posubst
> config.status: creating po/Makefile.in
> config.status: creating scripts/Makefile
> config.status: creating scripts/dirlist.cgi
> config.status: creating scripts/w3mhelp.cgi
> config.status: creating scripts/w3mmail.cgi
> config.status: creating scripts/xface2xpm
> config.status: creating scripts/multipart/Makefile
> config.status: creating scripts/multipart/multipart.cgi
> config.status: creating scripts/w3mman/Makefile
> config.status: creating scripts/w3mman/w3mman
> config.status: creating scripts/w3mman/w3mman.1
> config.status: creating scripts/w3mman/w3mman2html.cgi
> config.status: creating libwc/Makefile
> config.status: creating w3mimg/Makefile
> config.status: creating w3mimg/fb/Makefile
> config.status: creating w3mimg/x11/Makefile
> config.status: creating w3mhelp-w3m_en.html
> config.status: creating w3mhelp-w3m_ja.html
> config.status: creating w3mhelp-lynx_en.html
> config.status: creating w3mhelp-lynx_ja.html
> config.status: creating config.h
> config.status: executing default-1 commands
> config.status: creating po/POTFILES
> config.status: creating po/Makefile
> (echo '#define DEFUN(x,y,z) x y';\
>   sed -ne '/^DEFUN/{p;n;/^[  ]/p;}' ./main.c ./menu.c) | gcc -E - | \
>   awk '$1 ~ /^[_A-Za-z]/ { \
> for (i=2;i<=NF;i++) { print $i, $1} \
>   }' > funcname.tab.tmp
> funcname.tab updated
> sort funcname.tab | gawk -f ./funcname1.awk > funcname1.h
> gcc  -I. -I. -g -O2 -I./libwc  -I/usr/include/openssl  -DHAVE_CONFIG_H
> -DAUXBIN_DIR=\"/usr/lib/w3m\" -DCGIBIN_DIR=\"/usr/lib/w3m/cgi-bin\"
> -DHELP_DIR=\"/usr/share/w3m\" -DETC_DIR=\"/etc\" -DCONF_DIR=\"/etc/w3m\"
> -DRC_DIR=\"~/.w3m\" -DLOCALEDIR=\"/usr/share/locale\"   -c -o main.o
> main.c
> In file included from html.h:10:0,
>   from fm.h:39,
>   from main.c:3:
> istream.h:23:8: error: redefinition of 'struct file_handle'
> /usr/include/bits/fcntl.h:239:8: note: originally defined here
> make: *** [main.o] Error 1

The file_handle name clashes with a header installed by glibc. Rename
the function. For me, w3m-0.5.3 needs a:
sed -i 's/file_handle/file_handle_foo/' istream.{c,h}

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] Libassuan 2.0.2 and pth

2012-02-16 Thread Andrew Benton
On Thu, 16 Feb 2012 15:36:04 -0500
Michael Shell  wrote:

> 
> 
> Looking at the book for Libassuan-2.0.2:
> 
> http://www.linuxfromscratch.org/blfs/view/cvs/general/libassuan.html
> 
> I note that it states that libassuan.a and libassuan-pth.a
> are installed. However, is this really still true?
> 
> ./configure --help
> 
> for Libassuan-2.0.2 says:
> 
>   --enable-static[=PKGS]  build static libraries [default=no]
>   --enable-shared[=PKGS]  build shared libraries [default=yes]
> 
> which means it now builds only shared by default.
> 
> Building it with
> 
> ./configure --prefix=/usr
> 
> on my system results in the installation of:
> 
> libassuan.la
> libassuan.so -> libassuan.so.0.2.0
> libassuan.so.0 -> libassuan.so.0.2.0
> libassuan.so.0.2.0
> 
> Using
> 
> ./configure --prefix=/usr --enable-static --enable-shared
> 
> results in the additional static lib file:
> 
> libassuan.a
> 
> but still no libassuan-pth.a and I do have pth-2.0.7 installed.
> 
> I don't seem to see any mention of pth in the configure output.
> 
> Now, trying out Libassuan-2.0.3, I get:
> 
> libassuan.a
> libassuan.la
> libassuan.so -> libassuan.so.0.3.0
> libassuan.so.0 -> libassuan.so.0.3.0
> libassuan.so.0.3.0
> 
> But neither 2.0.2 or 2.0.3 seems to look for Pth.
> 
> Does the BLS book need updating here?
> 

Yes, thanks for the heads up, I'll have a go at it tomorrow.

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] fedora desktop creation

2012-02-16 Thread Andrew Benton
On Thu, 16 Feb 2012 10:33:24 +0530
Mehak Salhotra  wrote:

> Hi,
> 
> we are creating fedora14 desktop environment. we would like to know in detail 
> about the required packages and procedure for the same.

Maybe you should ask about this on one of the Fedora mailing lists? I
suspect that few here use Fedora.

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] pcre-8.30

2012-02-15 Thread Andrew Benton
On Tue, 14 Feb 2012 17:28:34 -0800 (PST)
Fernando de Oliveira  wrote:

> It took a while to answer you, because there were localization issues. Last 
> and annoying one was the keyboard layout indicator on lxpanel  which was 
> displaying US, instead of BR as default. I was going to write this, and 
> suddenly it switched to the right one without my intervention.
> 
> Hoping to some env variables could be used when calling X, I have adapted a 
> little your instructions:
> 
> user=fernando
> su - ${user} -l -c "env LANG=pt_BR.utf8 xinit ~/.xinitrc &> 
> ~/.x-session-errors"

That looks fine, but for what it's worth, I set environment variables
like LANG in /etc/profile and then source /etc/profile from
~/.bash_profile. Now that I think back, I seem to recall that I first
did this so that lxpanel would show the date correctly (it was showing
it in the American style). I like lxpanel. It's not perfect but it's
good enough and it only has 2 dependencies.

> If you tell me that for some reason I should do /etc/X11/xinitrc instead of 
> ~/.xinitrc, I will change immeadiately.

It's fine, ~/.xinitrc is the default for xinit so you don't need to
specify it. I just put the file somewhere else so that other users get
the same desktop. Also I can try other things in ~/.xinitrc and then
run xinit from the login prompt for testing.

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] pcre-8.30

2012-02-13 Thread Andrew Benton
On Mon, 13 Feb 2012 07:24:05 -0800 (PST)
Fernando de Oliveira  wrote:

> At the moment, what is more important to me is: what would be a reasonably 
> secure way to start X? At the moment, I am using "startx" from 
> ".bash_profile"at LFS "svn 7.0" and LXDM on the other LFS's.

I also used slim for a while but stopped using it because of security
problems (see
http://linuxfromscratch.org/pipermail/lfs-support/2011-October/041451.html)
What I do to start X is use a simple boot script with this in it:

user=andy
su - ${user} -c "xinit /etc/X11/xinitrc &> ~/.x-session-errors"

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] pcre-8.30

2012-02-12 Thread Andrew Benton
On Sun, 12 Feb 2012 21:35:12 +
Ken Moffat  wrote:

>  With respect, it's grep.  The change to libpcre.so.1 has apparently
> broken booting for those who upgrade existing systems without
> recompiling grep.  I thought LFS used to have a warning about this,
> but all I can see is the comment on --disable-perlregexp in (7.0)
> chapter 5.
> 
>  The LFS bootscripts use grep in the cleanfs and console scripts,
> so runlevel 3 is apparently broken.

... if you use the paco pack manager. If you read the original email
this happened because he uses paco. I installed pcre-8.30 and grep
continued to work fine (it was built against pcre-8.12). I don't think
there is a problem with the book.

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] libpng-1.5.2 on lfs-6.8

2012-02-09 Thread Andrew Benton
On Fri, 08 Apr 2011 01:03:57 +0300
Thanos Baloukas  wrote:

> mv dfn3.out scripts/symbols.out
> rm -f scripts/symbols.chk symbols.new
> gawk -f ./scripts/checksym.awk ./scripts/symbols.def\
>  scripts/symbols.out >&2
> highest symbol ordinal in png.h, 1020, exceeds last ordinal from png.h 221
> *** A new list is in symbols.new ***
> make: *** [scripts/symbols.chk] Error 1
> 
> same for both patches
> 
> I would appreciate it if someone could reply to the question
> if the symbol issue on patched libpngs is critical.

Sorry to be replying to an old thread but I've just been googling on
this error and found this message with no replies. The problem is that
with libpng that has been patched with the animated png patch make
check produces an error. As Google didn't provide me with an easy
solution I had to work one out for myself:

awk '/10[0-2][0-9],/{ gsub(/,png/, ", png")
  gsub(/PNG_EXPORT./, "")
  gsub(/,/, "")
  print " " $3 " @" $1 }' png.h >> scripts/symbols.def
sed -i 's#ORDINAL(233)#ORDINAL(1020)#' png.h
sed -i 's#"error"#"ignore"#' scripts/checksym.awk

I've added that to the book so that the libpng testsuite passes even if
it's been patched with the apng patch.

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] no keyboard or mouse in Xorg

2012-02-09 Thread Andrew Benton
On Thu, 9 Feb 2012 14:23:59 +0100
Thomas de Roo  wrote:

> I did build Xorg in /usr/X11. That shouldn't be a problem, right? I'm not 
> sure what went wrong, but I found a workaround: I moved all the options in 
> /etc/X11/xorg.conf.d/* to /etc/X11/xorg.conf, leaving /etc/X11/xorg.conf.d 
> empty. Now X works, don't ask me why, though...

Well done for getting it working. Sorry I didn't offer any helpful
suggestions but I had no clue what the problem was. However, the way
you fixed it suggests that there was a problem with
the /usr/X11/share/X11/xorg.conf.d/10-evdev.conf file. Perhaps it was
some unprintable character that doesn't show up in a text editor? Or
maybe something to do with locale or language settings?
Thanks for posting how you fixed the problem.

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] Intro Xorg-7.6-2 - Should we Skip half the page if prefix = /usr ?

2012-02-06 Thread Andrew Benton
On Sun, 05 Feb 2012 20:47:32 -0700
 wrote:

> Hello Folks,
> 
> I'm dusting off my LFS 7.0 and BLFS work, and I have been thinkning
> about why XOrg won't compile for me.
> 
> I keep hearing about references to PKG_CONFIG_PATH in emails here and in
> articles and things I find online.
> 
> Does anyone think maybe I should NOT skip the rest of that page [ BLFS /
> x / xorg7.html ] ?
> 
> It seems harmless enough to do if you have /usr as your prefix. 

It depends. Personally I install everything into /usr, PKG_CONFIG_PATH
is unset on my systems (though I do occasionally set it if I'm testing
new things and installing them in my home directory). There are a bunch
of variables set on that page that I don't set, but then I started
installing xorg 7 before it was in the book so I had to work out how to
do it myself. Each of the packages that make up xorg are quite simple
and straightforward in themselves. If one of them won't compile it
should tell you what's missing

The key thing is, what's the problem you're having? What won't compile?
And what error message is it giving you? Often the error messages tell
you what's wrong and other times it's possible to work out what's wrong
(and how to fix it) from googling the error messages.

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] Questions on (b)lfs-bootscripts-20120127

2012-02-05 Thread Andrew Benton
On Sat, 04 Feb 2012 19:00:34 -0600
Bruce Dubbs  wrote:

> al...@verizon.net wrote:
> >  4. How is the 'setclock' script run on "stop" (reboot, poweroff, etc.)?
> > 
> > There used to be a 'K46setclock' in 'rc6.d' (i.e. level 6):
> > 
> > "Setting hardware clock..."
> >  hwclock --systohc ...
> 
> Yes, I remember that.  It should have been in an old version of the LFS 
> Makefile for the boot scripts, but I went back 8 years and couldn't find it.
> 

I seem to remember that the shutdown symlinks weren't made and the
setclock script wasn't run at shutdown unless you installed the ntp
daemon from BLFS.
http://www.linuxfromscratch.org/blfs/view/svn/basicnet/ntp.html

Execute the following command if you would like to set the hardware clock to 
the current system time at shutdown and reboot:

ln -v -sf ../init.d/setclock /etc/rc.d/rc0.d/K46setclock &&
ln -v -sf ../init.d/setclock /etc/rc.d/rc6.d/K46setclock

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] make shadow fails after installation of Linux-PAM

2012-02-04 Thread Andrew Benton
On Sat, 4 Feb 2012 14:43:36 +0100
Ronnie van Aarle  wrote:

> Well, I tried, and it seems my assuptions on the libdir= from
> libpam_misc.lawas right. I did the same thing again for
> libpam.la because libpam.so also was not found.
> 
> However, now I ran into a new problem, and I am not sure how to fix it. The
> issue now is:
> 
> $ ls -lag /usr/lib/libpam{,misc}.so
> lrwxrwxrwx 1 blfs 10 feb  3 13:24 /usr/lib/libpam_misc.so -> ../../lib/
> lrwxrwxrwx 1 blfs 10 feb  3 13:24 /usr/lib/libpam.so -> ../../lib/
> 
> It seems like both symlinks are pointing to the directory ../../lib.
> 
> I know some basics on bash, but its still puzzling for me and far from
> routine. I thought I might have done something wrong so I went on step
> back, unzipped Linux-PAM again and did these steps over:
> 
> $ make install
> $ chmod -v 4755 /lib/security/unix_chkpwd
> 
> I skipped the tests that had to do with *.la because these files are
> updated with the new path and allready in place.
> 
> $ mv -v /lib/security/pam_tally /sbin
> 
> $ if [ -L /lib/libpam.so ]; then
>for LINK in libpam{,c,_misc}.so; do
>ln -v -sf ../../lib/$(readlink /lib/${LINK}) /usr/lib/${LINK} &&
>rm -v /lib/${LINK}
>done
> fi
> 
> I do have my doubts on this last if-statement for-loop, because I don't
> realy think it does what it is supposed to do. In my situation, I am
> building shadow from
> 
> /sources/security/shadow-4.1.3/
> 
> So ../../lib does not exist. I suppose that I can just drop the ../../
> because I think the /lib/libpam{,c,_misc}.so are the files that are
> required. While I'm writing this email I just decided that that is also the
> next thing I want to try, however, I would realy appreciate some
> confirmation from someone who has more skills and routine in bash than I do.
> 
> I'm a bit afreight of deviating from the instructions from the book,
> because in the past, with earlier attempts of installing lfs, I also found
> issues that forced me to attempt solving things myself and I did end up
> with a broken or incomplete build, which is luckily not the case this time.
> 
> Besides that I'm also a bit paranoid on every package that has to do with
> security, because in the near future I want to make another lfs build that
> I want to use for website hosting, and I do need to be able to guarantee my
> future users a stable service.
> 
> This one is on a notebook, with which I want to develop and test the
> applications and configurations that I want to deploy on the next
> installation, a server for hosting them.
> 
> Any assistance is realy appreciated, because I have to rely on the quality
> and stability of the resulting builds in the future.
> 

I'm sorry for your troubles, unfortunately I'm a bit busy at the moment
and I won't be able to look at this for a day of two.

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] make shadow fails after installation of Linux-PAM

2012-02-03 Thread Andrew Benton
On Fri, 3 Feb 2012 14:05:30 +0100
Ronnie van Aarle  wrote:

> Hello
> 
> I'm attempted installing shadow-4.1.4.3, however, running make results in
> 
> gcc: error: /lib64/libpam_misc.so: No such file or directory
> gcc: error: /lib64/libpam.so: No such file or directory.
> etc etc.
> 
> The last step from Linux-PAM is:
> 
> if [ -L /lib/libpam.so ]; then
>for LINK in libpam{,c,_misc}.so; do
>ln -v -sf ../../lib/$(readlink /lib/${LINK}) /usr/lib/${LINK} &&
>rm -v /lib/${LINK}
>done
> fi
> 
> So these files are in another path, /usr/lib. I suppose

Where?
ls {/usr,}/lib/libpam_misc.so*

> I should
> 
> sed -i -e '|/lib64/libpam_misc.so|/usr/lib64/libpam_misc.so' -e \
>  -e '|/lib64/libpam.so|/usr/lib64/libpam.so|' 
> 
> To modify the shadow build scripts in order to point to the right path.
> However, I don't know what file, and I'm also not sure how this sed syntax
> should be.

Looking at the shadow-4.1.4.3/src/Makefile, it seems that it's libtool
that's getting the path from libpam_misc.la. Please post the output from:
cat {/usr,}/lib/libpam_misc.la

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] curl-7.24.0, gnutls and nettle problem

2012-02-02 Thread Andrew Benton
On Thu, 2 Feb 2012 14:55:28 -0800 (PST)
Fernando de Oliveira  wrote:

> "libtool: link: gcc -g0 -O2 -Wno-system-headers -o .libs/curl hugehelp.o 
> tool_binmode.o tool_bname.o tool_cb_dbg.o tool_cb_hdr.o tool_cb_prg.o 
> tool_cb_rea.o tool_cb_see.o tool_cb_skt.o tool_cb_wrt.o tool_cfgable.o 
> tool_convert.o tool_dirhie.o tool_doswin.o tool_easysrc.o tool_formparse.o 
> tool_getparam.o tool_getpass.o tool_help.o tool_helpers.o tool_homedir.o 
> tool_libinfo.o tool_main.o tool_mfiles.o tool_msgs.o tool_operate.o 
> tool_operhlp.o tool_panykey.o tool_paramhlp.o tool_parsecfg.o tool_setopt.o 
> tool_sleep.o tool_urlglob.o tool_util.o tool_vms.o tool_writeenv.o 
> tool_writeout.o tool_xattr.o strtoofft.o strdup.o rawstr.o nonblock.o  
> ../lib/.libs/libcurl.so -lrt -lz
> ../lib/.libs/libcurl.so: undefined reference to `nettle_md5_digest'
> ../lib/.libs/libcurl.so: undefined reference to `nettle_des_encrypt'
> ../lib/.libs/libcurl.so: undefined reference to `nettle_des_set_key'
> ../lib/.libs/libcurl.so: undefined reference to `nettle_md5_init'
> ../lib/.libs/libcurl.so: undefined reference to `nettle_md5_update'
> ../lib/.libs/libcurl.so: undefined reference to `nettle_md4_digest'
> ../lib/.libs/libcurl.so: undefined reference to `nettle_md4_update'
> ../lib/.libs/libcurl.so: undefined reference to `nettle_md4_init'
> collect2: ld returned 1 exit status
> make[2]: ** [curl] Erro 1
> make[2]: Saindo do diretório 
> `/media/dados/home/fernando/tmp/paco-build-2012.02.01/curl-7.24.0/src'
> make[1]: ** [all] Erro 2
> make[1]: Saindo do diretório 
> `/media/dados/home/fernando/tmp/paco-build-2012.02.01/curl-7.24.0/src'
> make: ** [all-recursive] Erro 1"
> 
> It builds correctly with ssl (i.e., omiting the switches referred above).

I can't reproduce this, the build succeeds for me, and ldd shows that
libcurl is indeed linked to libgnutls and not libssl.
What does configure say about libnettle? For me it says:

checking for pkg-config... /bin/pkg-config
checking for gnutls options with pkg-config... found
checking for gnutls_check_version in -lgnutls... yes
configure: detected GnuTLS version 3.0.4
checking for nettle_MD5Init in -lgnutls... no
checking for gcry_control in -lgnutls... no
checking for nettle_MD5Init in -lnettle... yes
checking for gnutls_srp_verifier in -lgnutls... yes

Also, have a look at config.log to see what happened.
It looks to me as though it's not linking to libnettle. Try configuring
it with:

LIBS="-lnettle" ./configure --prefix=/usr --without-ssl --with-gnutls

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Re: [blfs-support] Cups, and Oki. Unable to print

2012-01-26 Thread Andrew Benton
On Thu, 26 Jan 2012 13:45:07 -0800
Nathan Coulson  wrote:

> I was having some problems getting my Oki printer working under linux,
> which was working fine on my previous LFS build.
> 
> I use Cups 1.5 (latest BLFS), ghostscript 9.04 (latest blfs),
> 
>  hplip 3.11.12 [http://prdownloads.sourceforge.net/hplip/hplip-3.11.12.tar.gz]
> ./configure --prefix=/usr --sysconfdir=/etc --disable-network-build &&
> make  &&
> make install
> 
> and the .ppd from oki
> ftp://ftp2.okidata.com/pub/drivers/linux/SFP/monochrome/desktop/OK400PCLv3.tar.gz
> 
> 
> When printing, I am receiving 'stopped "The page setup information was
> not valid."'
> 
> I always seem to have a few headaches when I set this up on a new
> build, but not sure what I am missing this time...
> 
> did not notice anything in /var/log/cups/error_log that stood out to
> me, and a bit much for a tiny email, so I threw it up on
> http://nathancoulson.com/~conathan/error_log
> 
> 
> 
> One of the main differences, is I did not install foomatic (I don't
> think the OK400PCLv3 ppd needed them, don't recall installing that on
> my last LFS build either).  Hoping I don't need it...
> 

Looking at your error log it seems that the error message comes from
imagetoraster.c, part of cups. I suspect that the problem lies with the
ppd from oki. Have you tried openprinting?
http://www.openprinting.org/printers
Is it like an Oki OL400? They say that works. Try their ppd?
http://www.openprinting.org/printer/Oki/Oki-OL400

My printer's a Samsung so my experience won't help very much. I do
install foomatic; I don't know if it's needed but it's working so I
stopped fiddling.

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] thunderbird-9.0.1-libpng-1.5-1.patch question

2012-01-25 Thread Andrew Benton
On Wed, 25 Jan 2012 17:22:09 +0200
Thanos Baloukas  wrote:

> I see that
> http://www.linuxfromscratch.org/patches/blfs/svn/thunderbird-9.0.1-libpng-1.5-1.patch
> and
> http://www.linuxfromscratch.org/patches/blfs/svn/firefox-9.0.1-libpng-1.5-1.patch
> are the same. For firefox the patch applies per book's command
> but for thunderbird fails. If thunderbird's patch is not misplaced
> and firefox and thunderbird share the same patch, shouldn't
> the command be
> patch -d mozilla -p1 < ../thunderbird-9.0.1-libpng-1.5-1.patch ?
> 
> Thanos
> 

Yes you're right. I'll rediff the patch so we can avoid the -d mozilla
bit. Thanks for the heads up.

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] Please Help!

2012-01-23 Thread Andrew Benton
On Mon, 23 Jan 2012 10:45:49 +0100
"Dmitry Blum"  wrote:

> LLVM 3.0
> 
>  make[3]: Entering directory `/xc/llvm-3.0.src/lib/Target/X86'
>  llvm[3]: Building X86.td register info implementation with tblgen
>  /xc/llvm-3.0.src/Release/bin/llvm-tblgen: Unknown unexpected exception 
> occurred.
>  make[3]: *** 
> [/xc/llvm-3.0.src/lib/Target/X86/Release/X86GenRegisterInfo.inc.tmp] Ошибка 1
>  make[3]: Leaving directory `/xc/llvm-3.0.src/lib/Target/X86'
>  make[2]: *** [X86/.makeall] Ошибка 2
>  make[2]: Leaving directory `/xc/llvm-3.0.src/lib/Target'
>  make[1]: *** [Target/.makeall] Ошибка 2
>  make[1]: Leaving directory `/xc/llvm-3.0.src/lib'
>  make: *** [all] Ошибка 1
> 
> 
>  What`s wrong?

I've never seen this error, and google isn't showing me anything
similar so that makes me think it's got something to do with your
system. Perhaps the locale? (Just a guess)
Does it help if you:

export LC_ALL=POSIX

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Re: [blfs-support] libunique-1.1.2 and 1.1.6

2012-01-16 Thread Andrew Benton
On Sun, 15 Jan 2012 22:52:28 -0600
Bruce Dubbs  wrote:

> 
> for package in $(grep -v '^#' ../proto-7.6-2.wget)
> do
>packagedir=$(echo $package | sed 's/.tar.bz2//')
>tar -xf $DIR/$package
>pushd $packagedir
>./configure $XORG_CONFIG
>make
>sudo make install
>popd
> done

This isn't important, but you're discussing code and I find it
interesting. Bash can do some simple string manipulation itself, you
don't need to run echo and sed in a subshell. Once you have the
variable ${package} you can remove characters that match a regex from
the end of a string with %. One % removes the minimum regex that
matches. Two %% is greedy and will take as much as matches.

for package in $(grep -v '^#' ../proto-7.6-2.wget)
do
   tar -xf $DIR/$package
   pushd ${package%.tar.*}
   ./configure $XORG_CONFIG
   make
   sudo make install
   popd
done

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] firefox build error

2012-01-16 Thread Andrew Benton
On Tue, 10 Jan 2012 13:51:38 +0200
mais lfs  wrote:

> I get this error:
> 
> ...
> ake -C bmp libs
> make[7]: Entering directory
> `/xapps/mozilla-release/firefox-build-dir/modules/libpr0n/encoders/bmp'
> nsBMPEncoder.cpp
> c++ -o nsBMPEncoder.o -c -I../../../../dist/stl_wrappers
> -I../../../../dist/system_wrappers -include
> /xapps/mozilla-release/config/gcc_hidden.h -DMOZILLA_INTERNAL_API
> -D_IMPL_NS_COM -DEXPORT_XPT_API -DEXPORT_XPTC_API -D_IMPL_NS_GFX
> -D_IMPL_NS_WIDGET -DIMPL_XREAPI -DIMPL_NS_NET -DIMPL_THEBES
> -DSTATIC_EXPORTABLE_JS_API -DOSTYPE=\"Linux3.1\" -DOSARCH=Linux
> -I/xapps/mozilla-release/modules/libpr0n/src/
> -I/xapps/mozilla-release/modules/libpr0n/encoders/bmp -I.
> -I../../../../dist/include -I../../../../dist/include/nsprpub
> -I/xapps/mozilla-release/firefox-build-dir/dist/include/nspr
> -I/xapps/mozilla-release/firefox-build-dir/dist/include/nss  -fPIC
>  -fno-rtti -fno-exceptions -Wall -Wpointer-arith -Woverloaded-virtual
> -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wcast-align
> -Wno-invalid-offsetof -Wno-variadic-macros -Werror=return-type
> -pedantic -Wno-long-long -fno-strict-aliasing -std=gnu++0x -pthread
> -ffunction-sections -fdata-sections -pipe  -DNDEBUG -DTRIMMED -g -Os
> -freorder-blocks  -fomit-frame-pointer   -DMOZILLA_CLIENT -include
> ../../../../mozilla-config.h -MD -MF .deps/nsBMPEncoder.pp
> /xapps/mozilla-release/modules/libpr0n/encoders/bmp/nsBMPEncoder.cpp
> make[6]: *** [RasterImage.o] Error 1
> make[6]: *** Waiting for unfinished jobs
> rm -f libimgbmpe_s.a
> /usr/bin/python2.7 /xapps/mozilla-release/config/pythonpath.py
> -I../../../../config /xapps/mozilla-release/config/expandlibs_gen.py
> nsBMPEncoder.o   > libimgbmpe_s.a.desc
> make[7]: Leaving directory
> `/xapps/mozilla-release/firefox-build-dir/modules/libpr0n/encoders/bmp'
> make[6]: Leaving directory
> `/xapps/mozilla-release/firefox-build-dir/modules/libpr0n/encoders'
> make[6]: Leaving directory
> `/xapps/mozilla-release/firefox-build-dir/modules/libpr0n/src'
> ...

This was my fault. I thought that configure treated --enable the same
as --with. In fact it ignores --enable-system-png and uses it's own
version of libpng-1.4.8, which is why applying the patch causes the
build to fail. It seems to be completely arbitrary which options use
--enable and which use --with. I just have to hope that the output of
configure --help matches the logic further down this 25000 line
script...

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] libunique-1.1.2 and 1.1.6

2012-01-15 Thread Andrew Benton
On Sun, 15 Jan 2012 21:56:59 +
Firerat  wrote:

> You can escape the - with \
> e.g.
> grep -Werror
> grep "-Werror"
> grep '-Werror'
> All fail
> grep \-Werror
> grep "\-Werror"
> grep '\-Werror'
> Are all ok

Another option is to use -- eg:
grep -rl -- -Werror

-- tells grep that there are no more options and it will then treat a
leading dash as part of the regex to match.

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] libunique-1.1.2 and 1.1.6

2012-01-15 Thread Andrew Benton
On Sun, 15 Jan 2012 18:23:55 +
spiky  wrote:

> I,m trying to install libunique-1.1.2 or1.1.6, on LFS7
> 
> I receive an error

>CC libunique_dbus_la-uniquebackend-dbus.lo
> uniquebackend-dbus.c: In function 'unique_backend_dbus_request_name':
> uniquebackend-dbus.c:87:22: error: variable 'backend_dbus' set but not 
> used [-Werror=unused-but-set-variable]
> uniquebackend-dbus.c: In function 'unique_backend_dbus_send_message':
> uniquebackend-dbus.c:189:12: error: variable 'res' set but not used 
> [-Werror=unused-but-set-variable]
> cc1: all warnings being treated as errors

> Any ideas plz

I install libunique like this:

sed -i '/DG_DISABLE_DEPRECATED/d' unique/Makefile.in
./configure --prefix=/usr --disable-static
sed -i 's#  -Werror ##' unique/dbus/Makefile
make
make install

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] Error instaling thunderbird

2012-01-14 Thread Andrew Benton
On Sat, 14 Jan 2012 16:24:16 +
spiky  wrote:

> Am I right in thinking that the 
> mkdir -p /usr/lib/thunderbird-9.0.1 is missing?

Yes you are right. Thanks for the report. I'll fix it now.

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] Opera 11.60 crash report LFS-7.0/BLFS 01/10/12

2012-01-12 Thread Andrew Benton
On Thu, 12 Jan 2012 09:10:17 -0600
rhubarbpie...@gmail.com wrote:

> 
> Each time I close Opera 11.60 I receive a crash report.  Opera seems to 
> work well and I simply choose the "Do Not Send" option.  This happens 
> whenever I close Opera; regardless of site visited and even offline.  I 
> was using Opera 11.60 with my LFS-6.3 older BLFS build without 
> incident.  The "Details" option of the crash report tells me nothing.
> 
> I realize Opera isn't open source, but it's easily my favorite browser.  
> I'm confused as Opera works fine until closing.  Is there a dependency 
> I'm missing?  How can I determine the cause?

I wouldn't know how to debug a problem with a closed source program.
However, I recently had a problem with another program crashing when I
closed it that turned out to be due to a change made in glib-2.30.2.
It seems that glib-2.30.2 expects pointers to be aligned on 8-byte
boundaries (or something, waves hands as if he knows what he's talking
about ;). What version of glib are you using?

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


  1   2   3   4   5   6   7   >