Amigo This forum is for the discussion of Amigo Linux. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
03-29-2008, 12:32 PM
|
#1
|
Senior Member
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541
|
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}
|
|
|
04-07-2008, 03:21 PM
|
#2
|
Amigo developer
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928
|
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.
|
|
|
04-07-2008, 03:40 PM
|
#3
|
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
|
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.
|
|
|
04-07-2008, 04:00 PM
|
#4
|
Amigo developer
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928
|
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.
|
|
|
04-07-2008, 04:17 PM
|
#5
|
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
|
Ah-Ha!
That took care of that... now, it's on to rebuilding PHP with mcrypt and all will be well that ends.
Thanks
|
|
|
All times are GMT -5. The time now is 10:04 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|