LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Make error trying to install WineASIO from SlackBuild (https://www.linuxquestions.org/questions/slackware-14/make-error-trying-to-install-wineasio-from-slackbuild-4175490267/)

SimonPalmieri 01-05-2014 09:23 PM

Make error trying to install WineASIO from SlackBuild
 
Hello, I'm trying to install WineASIO. Thus far, I've got the asio.h header file from the ASIO SDK and the Jack Audio Connection Kit. When I go to run the SlackBuild for wineasio, I receive an error saying the following:

Code:

collect2: error: ld returned 1 exit status
winegcc: gcc failed
make: *** [wineasio.dll.so] Error 2

Anybody know what's up? :(

gengisdave 01-06-2014 08:28 AM

more log lines required :)

Alien Bob 01-06-2014 09:55 AM

Your earlier posts indicate that you are running a 64-bit Slackware. If you have wine installed I assume that you also installed the Slackware multilib packages.

If you want to compile a 32-bit program (for using it with the 32-bit Wine) then first you need to have installed the 32-bit versions of the dependencies, which in case of wineasio means that you need the 32-bit "compat32" version of jack-audio-connection-kit.

In order to compile a 32-bit program on Slackware64 multilib, you start with "sourcing" the /etc/profile.d/32dev/sh script (note that there is a dot at the start of the line):
Code:

. /etc/profile.d/32dev.sh
Then compile a 32-bit version of jack-audio-connection-kit by running the jack-audio-connection-kit.SlackBuild script:
Code:

ARCH=i486 jack-audio-connection-kit.SlackBuild
Next, convert the resulting package to a "compat32" package and install that:
Code:

convertpkg-compat32 -i /tmp/jack-audio-connection-kit-0.121.3-i486-*.t?z
upgradepkg --install-new  /tmp/jack-audio-connection-kit-compat32-0.121.3-*.t?z

And then proceed with compiling a wineasio package. I think that will work now.

Eric

SimonPalmieri 01-06-2014 02:52 PM

Hey Eric,

Whenever I try to compile the Jack Audio Connection Kit as a 32 bit package, I get the following errors:

Code:

checking for i486-slackware-linux-gcc... no
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/tmp/SBo/jack-audio-connection-kit-0.121.3':
configure: error: C compiler cannot create executables

Any idea why this is happening? :(

Alien Bob 01-06-2014 03:03 PM

So it would be nice to have a little more feedback:

Code:

uname -a
cat /etc/slackware-version
ls -l /var/log/packages/gcc-*
ls -l /var/log/packages/glibc-*
ls -l /var/log/packages/wine-*
ls -l /var/log/packages/*compat32 | wc -l

Eric

SimonPalmieri 01-06-2014 03:27 PM

My apologies Eric, I will remember to include my information in the future when posting on here :/

Here is the output of the commands

uname:
Code:

Linux slacktop 3.10.17 #2 SMP Wed Oct 23 16:34:38 CDT 2013 x86_64 Intel(R) Core(TM) i3 CPU M 350  @ 2.27GHz GenuineIntel GNU/Linux
cat /etc/slackware-version:
Code:

Slackware 14.1
ls -l /var/log/packages/gcc-*
Code:

-rw-r--r-- 1 root root  25528 Dec 12 02:25 /var/log/packages/gcc-4.8.2_multilib-x86_64-1alien
-rw-r--r-- 1 root root  40287 Dec 12 02:25 /var/log/packages/gcc-g++-4.8.2_multilib-x86_64-1alien
-rw-r--r-- 1 root root  2284 Dec 12 02:25 /var/log/packages/gcc-gfortran-4.8.2_multilib-x86_64-1alien
-rw-r--r-- 1 root root 250536 Dec 12 02:25 /var/log/packages/gcc-gnat-4.8.2_multilib-x86_64-1alien
-rw-r--r-- 1 root root  19679 Dec 12 02:25 /var/log/packages/gcc-go-4.8.2_multilib-x86_64-1alien
-rw-r--r-- 1 root root 236525 Dec 12 02:25 /var/log/packages/gcc-java-4.8.2_multilib-x86_64-1alien
-rw-r--r-- 1 root root  2232 Dec 12 02:26 /var/log/packages/gcc-objc-4.8.2_multilib-x86_64-1alien

ls -l /var/log/packages/glibc-*
Code:

-rw-r--r-- 1 root root 571847 Dec 12 02:26 /var/log/packages/glibc-2.17_multilib-x86_64-7alien
-rw-r--r-- 1 root root 473870 Dec 12 02:26 /var/log/packages/glibc-i18n-2.17_multilib-x86_64-7alien
-rw-r--r-- 1 root root  1303 Dec 12 02:26 /var/log/packages/glibc-profile-2.17_multilib-x86_64-7alien
-rw-r--r-- 1 root root  15532 Dec 12 02:26 /var/log/packages/glibc-solibs-2.17_multilib-x86_64-7alien
-rw-r--r-- 1 root root  70234 Dec 12 02:27 /var/log/packages/glibc-zoneinfo-2013d_multilib-noarch-7alien

ls -l /var/log/packages/wine-*
Code:

-rw-r--r-- 1 root root 67937 Dec 12 15:44 /var/log/packages/wine-1.6.1-x86_64-1_SBo
ls -l /var/log/packages/*compat32 | wc -l
Code:

126
Regards,

Simon

Alien Bob 01-06-2014 03:35 PM

OK I think you compiled a 64-bit version of Wine instead of a 32-bit version.
What gives:
Code:

file /usr/lib*/libwine.so.1.0
Eric

SimonPalmieri 01-06-2014 06:10 PM

Okay, here is the output:

Code:

/usr/lib/libwine.so.1.0: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, stripped

Alien Bob 01-07-2014 03:28 AM

Your wine is 32-bit which is OK.
I tried compiling a 32-bit version of jack-audio-connection-kit and wineasio on mutilib Slackware64-14.1 and that worked without issues. This is the build log for jack-audio-connection-kit: http://pastebin.com/bHSZFmxd
And this is the log for compiling wineasio: http://pastebin.com/6eC1c862

What I ran after installing my own wine package, and a 32-bit "compat32" version of OpenAL:
Code:

# . /etc/profile.d/32dev.sh
# cd /path/to/jack-audio-connection-kit
# ARCH=i486 ./jack-audio-connection-kit.SlackBuild
# installpkg /tmp/jack-audio-connection-kit-*.t?z
# cd /path/to/wineasio
# ARCH=i486 ./wineasio.SlackBuild

Zero issues.

Note that running ". /etc/profile.d/32dev.sh" alters your environment to compile 32-bit software. If you are done with that and want to compile your regular 64-bit programs again, just logout root and login again. That will "reset" your environment and undo the effects of the 32dev.sh script.

Eric


All times are GMT -5. The time now is 11:26 AM.