LinuxQuestions.org
Review your favorite Linux distribution.
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 05-27-2008, 04:26 PM   #1
lstamm
Member
 
Registered: Aug 2007
Location: McBride, BC, Canada
Distribution: Slackware, OpenBSD, Edubuntu
Posts: 53

Rep: Reputation: 18
Compiling Erlang under Slack 12.1?


I've been trying to compile erlang-otp under Slackware 12.1 for the past couple of days. I've tried with otp_src_R11B-5.tar.gz and the Slack12 SlackBuild from rworkman, and tried src2pkg with otp_src_R11B-4.tar.gz and otp_src_R12B-2.tar.gz. I've also tried compiling manually with ./configure, make, make install, with no configure options set or with various combinations of --disable-threads, disable-smp-support, and disable-hipe. The configure script seems to run without errors, but the compile always exits out with the following error (or something similar):

Code:
obj/i686-pc-linux-gnu/opt/hybrid/hipe_x86_signal.o: In function `my_sigaction':
/tmp/otp_src_R11B-5/erts/emulator/hipe/hipe_x86_signal.c:220: undefined reference to `INIT'
/tmp/otp_src_R11B-5/erts/emulator/hipe/hipe_x86_signal.c:230: undefined reference to `__next_sigaction'
obj/i686-pc-linux-gnu/opt/hybrid/hipe_x86_signal.o: In function `hipe_signal_init':
/tmp/otp_src_R11B-5/erts/emulator/hipe/hipe_x86_signal.c:305: undefined reference to `INIT'
obj/i686-pc-linux-gnu/opt/hybrid/hipe_x86_signal.o: In function `my_sigaction':
/tmp/otp_src_R11B-5/erts/emulator/hipe/hipe_x86_signal.c:220: undefined reference to `INIT'
/tmp/otp_src_R11B-5/erts/emulator/hipe/hipe_x86_signal.c:230: undefined reference to `__next_sigaction'
/tmp/otp_src_R11B-5/erts/emulator/hipe/hipe_x86_signal.c:220: undefined reference to `INIT'
/tmp/otp_src_R11B-5/erts/emulator/hipe/hipe_x86_signal.c:230: undefined reference to `__next_sigaction'
collect2: ld returned 1 exit status
make[3]: *** [/tmp/otp_src_R11B-5/bin/i686-pc-linux-gnu/beam.hybrid] Error 1
make[3]: Leaving directory `/tmp/otp_src_R11B-5/erts/emulator'
make[2]: *** [opt] Error 2
make[2]: Leaving directory `/tmp/otp_src_R11B-5/erts/emulator'
make[1]: *** [hybrid] Error 2
make[1]: Leaving directory `/tmp/otp_src_R11B-5/erts'
make: *** [emulator] Error 2
It's always in the emulator section that the build craps out.

I've seen statements on the web to the effect that erlang won't compile on slack 12.1, and am wondering if this is really true? If so, what is the work around to get erlang to build on slack 12.1?
 
Old 05-27-2008, 05:13 PM   #2
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,367

Rep: Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843
It compiled perfectly on my 12.1 box with the following ./configure line:
Code:
CFLAGS="-O2 -march=i486 -mtune=i686" \
CXXFLAGS="-O2 -march=i486 -mtune=i686" \
./configure \
  --prefix=/usr \
  --sysconfdir=/etc \
  --localstatedir=/var \
  --infodir=/usr/info \
  --mandir=/usr/man \
  --build=i486-slackware-linux
Note that I also followed the README file and did `LANG=C; export LANG` before issuing the configure line. A SlackBuild could easily be rigged up. It should be noted that I do NOT have jdk or unixODBC installed, so I don't know if those are creating trouble for you if you DO have them installed. I'm not 100% sure if the DESTDIR variable is supported, so I didn't give it a go -- but a nice SlackBuild could still be rigged up, or src2pkg told what to do.
 
Old 05-27-2008, 05:23 PM   #3
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Quote:
Originally Posted by T3slider View Post
It compiled perfectly on my 12.1 box
I guess that will have been using otp_src_R12B-2.tar.gz ? The version otp_src_R11B-4.tar.gz would need a patch to build successfully on Slackware 12.1 as far as I can see.

Eric
 
Old 05-27-2008, 10:37 PM   #4
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,367

Rep: Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843
Quote:
Originally Posted by Alien Bob
I guess that will have been using otp_src_R12B-2.tar.gz ? The version otp_src_R11B-4.tar.gz would need a patch to build successfully on Slackware 12.1 as far as I can see.
Oops, correct you are. I just grabbed the newest sources I saw and tried. I should have specified that.
 
  


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
script connecting to erlang shell works only in interactive mode ineya Linux - Server 1 10-25-2007 07:05 AM
Processing XML in Erlang lilaz Programming 0 08-21-2007 02:05 PM
Haskell, OCaml, Scheme, Erlang, Perl, Python, Ruby manolakis Programming 8 08-06-2007 10:10 PM
Kate Syntax Highlighting for Erlang taylor_venable Programming 0 07-28-2007 10:35 PM
Erlang Segmentation Fault on Slackware 10... nebx Linux - Newbie 3 02-06-2005 05:25 PM

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

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