LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Amigo
User Name
Password
Amigo This forum is for the discussion of Amigo Linux.

Notices


Reply
  Search this Thread
Old 03-29-2008, 12:32 PM   #1
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
Build libmcrypt Fails


Hi.

I'm trying to build libmcrypt-2.5.8.tar.bz2 using src2pkg -D -DEST -p=/usr/local -e='--enable-dynamic-loading --disable-posix-threads' -C libmcrypt-2.5.8.tar.bz2; it fails with a configure error (if I configure manually with the above arguments it configures and builds just fine).

I assume I'm doing something wrong -- any hints?

Thanks.

The message is:
Code:
fubar-root-/usr/local/src: src2pkg -D -DEST -p=/usr/local -e='--enable-dynamic-loading --disable-posix-threads' -C libmcrypt-2.5.8.tar.bz2
Found source archive: libmcrypt-2.5.8.tar.bz2
Creating working directories:
   PKG_DIR=/tmp/libmcrypt-2.5.8-pkg-1
   SRC_DIR=/tmp/libmcrypt-2.5.8-src-1
Unpacking source archive - Done
Correcting source permissions - Done
Found configure script - Configuring sources using:
   CFLAGS=-O2 -march=i486 -mtune=i686 ./configure --prefix=/usr/local --enable-dynamic-loading --disable-posix-threads
ERROR! Configuring sources has failed!
This usually happens because of missing libraries, or you
may need to pass extra options to configure using EXTRA_CONFIGS.
Found an RPM .spec file which shows this:
Requires: libmcrypt = %{version}
 
Old 04-07-2008, 03:21 PM   #2
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 613Reputation: 613Reputation: 613Reputation: 613Reputation: 613Reputation: 613
Sorry I hadn't noticed your post till today.
When you configure manually does the routine end with some sort of oupuit message or prompt? Someitmes these text-output messages confuse the error handling.
In the worst case, you could substitute a line or two of manual code to replace the regular src2pkg functions -something like this:

# configure_source
# compile_source
# fake_install

cd $SRC_DIR ;
./configure --prefix=/usr/local --enable-dynamic-loading --disable-posix-threads
make
make DESTDIR=$PKG_DIR install

It may be that I have changed some code which would fix this in the next version which will be released soon. But, the above fix is a good one to know anyway as it is still sometimes needed -at least for some sources.
You can generate a starting script with:

src2pkg -N libmcrypt-2.5.8.tar.bz2

The just do the edit as shown(you don't need to bother with the EXTRA_CONFIGS, etc since you will code that manually anyway).

Then, run it with this:
src2pkg -X -D -C

Hope this fixes it for you in the short term. I'll have a look at the sources in question to see what is happening.
 
Old 04-07-2008, 03:40 PM   #3
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Original Poster
Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
Thanks for responding.

When I configure manually, it completes successfully, I can compile successfully (and install, but I didn't want to do that).

I'll fiddle with the above and see if I can get a package made that way.

Thanks again.
 
Old 04-07-2008, 04:00 PM   #4
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 613Reputation: 613Reputation: 613Reputation: 613Reputation: 613Reputation: 613
Okay, I just checked this problem out. Configuration fails because libltdl thinks we are trying to specify two different architectures when we export bot CFLAGS and CXXFLAGS.
You can fix this in the src2pkg files by opening the file /usr/libexec/src2pkg/06-configure_source and commenting out the two lines with this:
export CXXFLAGS=$FLAG_LINE

Just change them to:
#export CXXFLAGS=$FLAG_LINE

You'll find them both around line 290 of the file. Thanks for steering me to this error -it's a strange and unlikely one -the export of CXXFLAGS is a recent addition and not something I'd expect to see problems with. Nor have I run across it among my many compiles, so I'm glad you reported it. Once you've made that change you should have no trouble using the command you were trying originally.
 
Old 04-07-2008, 04:17 PM   #5
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Original Poster
Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
Ah-Ha!

That took care of that... now, it's on to rebuilding PHP with mcrypt and all will be well that ends.

Thanks
 
  


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
php 5.2.5 configure always fails on libmcrypt jfernandez Fedora 3 12-27-2007 06:22 AM
glibc fails to build pauledwards03 Linux - Software 5 11-01-2007 12:16 AM
klibido fails to build hedpe Linux - Software 0 06-14-2006 11:27 AM
'make' fails while trying to build jonnycarlos Linux - Software 0 04-29-2004 10:14 PM
postgresql build fails j-ray Linux - Software 3 09-06-2002 08:37 AM

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

All times are GMT -5. The time now is 10:04 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