Opened 15 years ago

Closed 15 years ago

#23972 closed defect (worksforme)

ruby-1.8.6-p114 Build failure

Reported by: guaripete@… Owned by: kimuraw (kimura wataru)
Priority: Normal Milestone:
Component: ports Version: 1.8.2
Keywords: Cc:
Port: ruby

Description

Openssl error on ruby build.

System information:

Hardware:

    Hardware Overview:

      Model Name: MacBook Pro
      Model Identifier: MacBookPro3,1
      Processor Name: Intel Core 2 Duo
      Processor Speed: 2.6 GHz
      Number Of Processors: 1
      Total Number Of Cores: 2
      L2 Cache: 4 MB
      Memory: 4 GB
      Bus Speed: 800 MHz
      Boot ROM Version: MBP31.0070.B07
      SMC Version (system): 1.16f11
      Sudden Motion Sensor:
          State: Enabled

Software:

    System Software Overview:

      System Version: Mac OS X 10.5.8 (9L30)
      Kernel Version: Darwin 9.8.0
      Time since boot: 5 days 1:10


> sudo port clean ruby
--->  Cleaning ruby
[18:38] ~ srafael$
> sudo port install ruby
--->  Computing dependencies for ruby
--->  Fetching ruby
--->  Verifying checksum(s) for ruby
--->  Extracting ruby
--->  Applying patches to ruby
--->  Configuring ruby
--->  Building ruby
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_Users_Shared_dports_lang_ruby/work/ruby-1.8.6-p114" && /usr/bin/make -j1 all " returned error 2
Command output: /usr/bin/gcc-4.0 -I. -I../.. -I../../. -I../.././ext/fcntl -I/opt/local/include -fno-common -O2 -arch i386  -fno-common -pipe -fno-common  -c fcntl.c
cc -dynamic -bundle -undefined suppress -flat_namespace -o ../../.ext/i686-darwin9.8.0/fcntl.bundle fcntl.o -L\".\" -L\"../..\" -L. -L/opt/local/lib    -lruby  -lpthread -ldl -lobjc  
compiling gdbm
/usr/bin/gcc-4.0 -I. -I../.. -I../../. -I../.././ext/gdbm -DHAVE_GDBM_H -I/opt/local/include -fno-common -O2 -arch i386  -fno-common -pipe -fno-common  -c gdbm.c
cc -dynamic -bundle -undefined suppress -flat_namespace -o ../../.ext/i686-darwin9.8.0/gdbm.bundle gdbm.o -L\".\" -L\"../..\" -L. -L/opt/local/lib    -lruby -lgdbm  -lpthread -ldl -lobjc  
compiling iconv
/usr/bin/gcc-4.0 -I. -I../.. -I../../. -I../.././ext/iconv -I/opt/local/include -fno-common -O2 -arch i386  -fno-common -pipe -fno-common  -c iconv.c
cc -dynamic -bundle -undefined suppress -flat_namespace -o ../../.ext/i686-darwin9.8.0/iconv.bundle iconv.o -L\".\" -L\"../..\" -L. -L/opt/local/lib    -lruby -liconv  -lpthread -ldl -lobjc  
compiling io/wait
mkdir -p ../../../.ext/i686-darwin9.8.0/io
/usr/bin/gcc-4.0 -I. -I../../.. -I../../../. -I../../.././ext/io/wait -DFIONREAD_HEADER="<sys/ioctl.h>" -I/opt/local/include -fno-common -O2 -arch i386  -fno-common -pipe -fno-common  -c wait.c
cc -dynamic -bundle -undefined suppress -flat_namespace -o ../../../.ext/i686-darwin9.8.0/io/wait.bundle wait.o -L\".\" -L\"../../..\" -L. -L/opt/local/lib    -lruby  -lpthread -ldl -lobjc  
mkdir -p ../../../.ext/common/io
cp ../../.././ext/io/wait/lib/nonblock.rb ../../../.ext/common/io
compiling nkf
/usr/bin/gcc-4.0 -I. -I../.. -I../../. -I../.././ext/nkf -I/opt/local/include -fno-common -O2 -arch i386  -fno-common -pipe -fno-common  -c nkf.c
nkf.c: In function 'nkf_split_options':
nkf.c:116: warning: pointer targets in passing argument 1 of 'options' differ in signedness
nkf.c:124: warning: pointer targets in passing argument 1 of 'options' differ in signedness
cc -dynamic -bundle -undefined suppress -flat_namespace -o ../../.ext/i686-darwin9.8.0/nkf.bundle nkf.o -L\".\" -L\"../..\" -L. -L/opt/local/lib    -lruby  -lpthread -ldl -lobjc  
cp ../.././ext/nkf/lib/kconv.rb ../../.ext/common
compiling openssl
/usr/bin/gcc-4.0 -I. -I../.. -I../../. -I../.././ext/openssl -DRUBY_EXTCONF_H=\"extconf.h\" -I/opt/local/include -fno-common -O2 -arch i386  -fno-common -pipe -fno-common  -c openssl_missing.c
In file included from openssl_missing.c:22:
openssl_missing.h:119: error: conflicting types for 'BN_rand_range'
/opt/local/include/openssl/bn.h:411: error: previous declaration of 'BN_rand_range' was here
openssl_missing.h:120: error: conflicting types for 'BN_pseudo_rand_range'
/opt/local/include/openssl/bn.h:412: error: previous declaration of 'BN_pseudo_rand_range' was here
make[1]: *** [openssl_missing.o] Error 1
make: *** [all] Error 1

Error: Status 1 encountered during processing.
Before reporting a bug, first run the command again with the -d flag to get complete output.

Output with debug flag attached.

Attachments (1)

ruby.txt (1.9 KB) - added by guaripete@… 15 years ago.
<port -d install ruby> output

Download all attachments as: .zip

Change History (8)

Changed 15 years ago by guaripete@…

Attachment: ruby.txt added

<port -d install ruby> output

comment:1 Changed 15 years ago by jmroot (Joshua Root)

Keywords: ruby openssl building removed
Owner: changed from macports-tickets@… to kimuraw@…

Please remember to cc the maintainer.

comment:2 Changed 15 years ago by kimuraw (kimura wataru)

ruby 1.8.6-p114 does not support recently openssl.
it is an old version released Mar 2008.

the latest macports' ruby are

  • port:ruby ruby-1.8.7-p249
  • port:ruby186 ruby-1.8.6-p388

please try the latest port:ruby.

  % sudo port clean ruby
  % sudo port sync
  % sudo port install ruby 

comment:3 Changed 15 years ago by guaripete@…

Hi, I tried as suggested and got the same error. Doing a port search ruby show the following:

ruby @1.8.6-p114 (lang, ruby)
    Powerful and clean object-oriented scripting language

ruby @1.8.7-p249 (lang, ruby)
    Powerful and clean object-oriented scripting language

Trying to specify package as follow

sudo port install ruby @1.8.7-p249

also produce the same error.

comment:4 Changed 15 years ago by guaripete@…

I was able to install the following packages:

> port installed ruby*
The following ports are currently installed:
  ruby186 @1.8.6-p388_0+darwin+darwin_9+thread_hooks (active)
  ruby19 @1.9.1-p376_0 (active)

Unfortunately, rb-rails needs ruby (no ruby186 nor ruby19) which fails.

I would apreciate your help in this matter.

comment:5 Changed 15 years ago by kimuraw (kimura wataru)

I guess threre are two port:ruby in your macports system
and the settings of sources.conf, that regularly exists as /opt/local/etc/macports/sources.conf,
prefers ruby-1.8.6-p114.

please check your sources.conf.

the command `port file ruby' tells us which Portfile macports uses. like this:

% port file ruby
/Volumes/CHome/kimuraw/proj/macports/ports/lang/ruby/Portfile
% head "`port file ruby`"
# $Id: Portfile 64858 2010-03-16 14:50:02Z kimuraw@macports.org $

PortSystem 1.0

name                    ruby
version                 1.8.7-p249
revision                1

categories              lang ruby
maintainers             kimuraw

comment:6 Changed 15 years ago by guaripete@…

Good find! You were right I had source.conf pointing to another repository and was causing the conflict.
Removing it from source.conf fixed the problem.

Many thanks and kind regards,

comment:7 Changed 15 years ago by kimuraw (kimura wataru)

Resolution: worksforme
Status: newclosed
Note: See TracTickets for help on using tickets.