LinuxQuestions.org
Visit Jeremy's Blog.
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 12-16-2010, 03:21 PM   #1
Maris-S
Member
 
Registered: Feb 2010
Location: Latvia
Distribution: Slackware 15.0
Posts: 33

Rep: Reputation: 2
Compiling MySql-workbench, MultiLib packages.


Hi!

Some time ago I tried to compile mysql-workbench, but even with all dependencies installed I got strange errors during compilation. I thought that I missed some dependencies or was doing something wrong, but now, when compilation script is available on slackbuilds.org, I decided to repeat this compilation. During compilation errors showed up again:

Code:
/usr/lib64/../lib/libstdc++.so: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make[4]: *** [mysqlcppconn.la] Error 1
make[4]: Leaving directory `/tmp/SBo/mysql-workbench-gpl-5.2.29-src/ext/cppconn/driver'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/tmp/SBo/mysql-workbench-gpl-5.2.29-src/ext/cppconn'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/SBo/mysql-workbench-gpl-5.2.29-src/ext'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/SBo/mysql-workbench-gpl-5.2.29-src'
make: *** [all] Error 2
After some research I found that problem was in "gcc-g++-4.4.4_multilib-x86_64-1alien" package. It's quite strange. I installed original 64 bit package and compilation completed without any errors and MySql workbench works fine. Now I installed back multilib package and repeated compilation, the same error showed up again.

So, i solved my problem and I have MySql workbench installed, but I'm just curious, is it something wrong with multilib package, or did I do something wrong? Maybe I had to pass some compiler flags or something like that when using multilib system? I didn't have anything like that for other compilations I did.

By the way I'm using multilib only because of skype and wine, how can I find out which packages is necessary for them, I would better use only multilib packages I need to run this 2 programs.

Thanks!
 
Old 12-16-2010, 03:33 PM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8104Reputation: 8104Reputation: 8104Reputation: 8104Reputation: 8104Reputation: 8104Reputation: 8104Reputation: 8104Reputation: 8104Reputation: 8104Reputation: 8104
http://slackbuilds.org/faq/#multilib

Eric
 
Old 12-16-2010, 03:51 PM   #3
Maris-S
Member
 
Registered: Feb 2010
Location: Latvia
Distribution: Slackware 15.0
Posts: 33

Original Poster
Rep: Reputation: 2
Thanks Eric for quick reply. I didn't try to use this flag before, but I just tested it and anyway it do not want to compile, still the same error. Part of the slackbuild script:

Code:
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
LDFLAGS="-L/usr/lib${LIBDIRSUFFIX}" \
./autogen.sh \
  --prefix=/usr \
  --libdir=/usr/lib${LIBDIRSUFFIX} \
  --sysconfdir=/etc \
  --localstatedir=/var \
  --mandir=/usr/man \
  --docdir=/usr/doc/$PRGNAM-$VERSION \
  --build=$ARCH-slackware-linux \
  --disable-debug \
  --enable-shared=yes \
  --enable-static=no \
  --enable-python-modules \
  --enable-readline

make -j2
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
mysql workbench exploding upon build ninja master Linux - Software 1 07-28-2010 01:33 PM
MySql - mysql-workbench problem tamtam Slackware 1 07-27-2010 11:52 AM
MySQL Workbench for RedHat zeroquaranta Linux - Server 6 03-01-2010 02:49 AM
LXer: Visual MySQL Database Design in MySQL Workbench LXer Syndicated Linux News 0 06-12-2008 07:00 PM
MySQL Workbench grahamtysall Linux - General 1 07-27-2007 03:30 PM

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

All times are GMT -5. The time now is 11:47 PM.

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