LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-11-2011, 03:57 PM   #1
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,683

Rep: Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375
Error compiling compiz plugins with Alien Bob's multilib packages installed


I maintain the compiz packages over at SBo and I recently submitted packages for 13.37. I tested the packages before I submitted them and they compiled fine. I was contacted by the devs a few days ago about the plugins-main,plugins-extra, and emerald packages failing to compile. I immediately tested this and confirmed that it does indeed fail but only if multilib is installed. I figured out it is the glib2-compat32 package that is causing the problem. For some reason the build keeps picking up the libraries in /usr/lib instead of /usr/lib64 even with the LDFLAGS="-L/usr/lib64" set in the build. If I remove the glib2-compat32 package it will build fine, and oddly enough if I compile without the --prefix=/usr flag set it will finish successfully. I decided to test this on 13.1 and had no problems, this leads me to believe that it could possibly be the glib2-compat32 and not compiz, but I doubt it since Alien Bob's stuff is usually bullet proof.

BTW, here is the output wrong about that.
ude/libxml2 -I/usr/include/startup-notification-1.0 -I/usr/include/compiz -pthread -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -I/usr/include/pango-1.0 -DDATADIR='"/usr/share/compiz"' -DLIBDIR='"/usr/lib64"' -DLOCALEDIR="\"/usr/share/locale\"" -DIMAGEDIR='"/usr/share/compiz"' -O2 -fPIC -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -MT resizeinfo.lo -MD -MP -MF .deps/resizeinfo.Tpo -c -o resizeinfo.lo resizeinfo.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -I../../include -I/usr/include/libxml2 -I/usr/include/startup-notification-1.0 -I/usr/include/compiz -pthread -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -I/usr/include/pango-1.0 -DDATADIR=\"/usr/share/compiz\" -DLIBDIR=\"/usr/lib64\" -DLOCALEDIR=\"/usr/share/locale\" -DIMAGEDIR=\"/usr/share/compiz\" -O2 -fPIC -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -MT resizeinfo.lo -MD -MP -MF .deps/resizeinfo.Tpo -c resizeinfo.c -fPIC -DPIC -o .libs/resizeinfo.o
In file included from /usr/include/glib-2.0/glib/gasyncqueue.h:34:0,
from /usr/include/glib-2.0/glib.h:34,
from /usr/include/pango-1.0/pango/pango-coverage.h:25,
from /usr/include/pango-1.0/pango/pango-font.h:25,
from /usr/include/pango-1.0/pango/pango-attributes.h:25,
from /usr/include/pango-1.0/pango/pango.h:25,
from resizeinfo.c:33:
/usr/include/glib-2.0/glib/gthread.h: In function ‘g_once_init_enter’:
/usr/include/glib-2.0/glib/gthread.h:347:3: error: size of unnamed array is negative
make[4]: *** [resizeinfo.lo] Error 1
make[4]: Leaving directory `/tmp/SBo/compiz-plugins-main-0.8.8/src/resizeinfo'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/tmp/SBo/compiz-plugins-main-0.8.8/src/resizeinfo'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/SBo/compiz-plugins-main-0.8.8/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/SBo/compiz-plugins-main-0.8.8'
make: *** [all] Error 2
root@Slackware64:/rm/compiz/compiz-plugins-main#

Last edited by Daedra; 06-12-2011 at 11:51 AM.
 
Old 06-12-2011, 02:23 AM   #2
disturbed1
Senior Member
 
Registered: Mar 2005
Location: USA
Distribution: Slackware
Posts: 1,133
Blog Entries: 6

Rep: Reputation: 224Reputation: 224Reputation: 224
Should be able to pass /usr/lib$LIBSUFFIXDIR/glib-2.0/include either in configure or as linker flags.
 
Old 06-12-2011, 04:07 AM   #3
disturbed1
Senior Member
 
Registered: Mar 2005
Location: USA
Distribution: Slackware
Posts: 1,133
Blog Entries: 6

Rep: Reputation: 224Reputation: 224Reputation: 224
Looks like the problem is with configure. It's hard coded to search /usr/lib/pkgconfig before any other directory. This causes pango and cairo to look in the wrong directories. Every where else, it honors $LIBDIR, but not here.

On or around line 12991.
Even if you pass or export PKG_CONFIG_PATH, this is used as the last search path. Slackware does have the correct search paths set by default (/usr/local/lib64/pkgconfig:/usr/lib64/pkgconfig).

I'd file an upstream bug report with compiz.

I did a dirty sed hack on configure which allowed plugins-main to finish compiling.
 
1 members found this post helpful.
Old 06-12-2011, 09:16 AM   #4
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,683

Original Poster
Rep: Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375
Cool man, Just out of curiosity could you post the sed hack you did? I tried it myself but I am screwing it up somehow. Your fix did work cause I made a quick patch, but I not too familiar with sed and I am messing it up somehow?

Thanks


P.S. Nevermind I got it, sed hack is working now. Big thanks again man.

Last edited by Daedra; 06-12-2011 at 10:43 AM.
 
Old 07-25-2011, 05:31 AM   #5
zeroberto
Member
 
Registered: Aug 2008
Location: Serbia
Posts: 44

Rep: Reputation: 1
Can somebody explain that sed thing, please? I get this very often:
/usr/include/glib-2.0/glib/gthread.h: In function ‘g_once_init_enter’:
/usr/include/glib-2.0/glib/gthread.h:347:3: error: size of unnamed array is negative

Removing the glib2-compat32 helps, but I'm annoyed to do that every time.
Thanks.
 
Old 07-25-2011, 05:54 AM   #6
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
Daedra already submitted this to slackbuilds.org, latest script should work fine.
 
  


Reply



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

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Errors with Alien Bob's libtorrent-rasterbar and qbittorrent packages. Daedra Slackware 6 02-27-2011 02:47 AM
[SOLVED] Slackware 13 64 - Alien Bob's multilib and Wine Gerard Lally Slackware 20 05-14-2010 11:04 AM
rebuilding Alien Bob's multilib toolchain fails kohoutm2 Slackware 1 04-01-2010 04:38 AM
[SOLVED] Recommendations for regarding BIG changes in current and Alien Bob's 4.4 packages? damgar Slackware 2 03-01-2010 11:16 PM
Command to create local mirror of Alien Bob's kde4.4.0 packages damgar Slackware 5 02-11-2010 11:41 AM

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

All times are GMT -5. The time now is 05:32 AM.

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