HPUX compile problems

Hi,

I am having problems when compiling on a HPUX11.00i machine (gcc 3.2), and
am hoping that somebody knows a fix, or can change the source so I don’t
have to deal with it again :wink:

ruby-1.8.0.prerelease compile:

gcc -I. -g -O2 -I. -I. -c ./missing/strftime.c
missing/strftime.c:124: conflicting types for timezone' /usr/include/sys/time.h:450: previous declaration oftimezone’

where /usr/include/sys/time.h looks like this:

ifndef _TIMEZONE

define _TIMEZONE

   extern long timezone;

endif

···

If I correct the above problem, I then get the linker error:

gcc -g -O2 -Wl,-E main.o dmyext.o libruby-static.a -ldld -lcrypt -lm -o
miniruby
/usr/ccs/bin/ld: Unsatisfied symbols:
altzone (first referenced in libruby-static.a(eval.o)) (data)
collect2: ld returned 1 exit status



After correcting the above I get the following linker error:

ld -b -Wl,-E -E -L"/home/cfiles/dnload/hpux/ruby-1.8.0" -o curses.sl curses.o
-lcur_colr -ldld -lcrypt -lm -lc
ld: Unrecognized argument: -Wl,-E
ld: Usage: ld [options] [flags] files

(Which is strange that it now decides to use ld as the linker instead of
gcc which it used on the previous error. This last error also comes up when I
try to compile the CVS snapshot taken on February 10th of ruby.)

Thanks,
Craig

Hi,

···

At Wed, 12 Feb 2003 06:00:32 +0900, Craig Files wrote:

After correcting the above I get the following linker error:

ld -b -Wl,-E -E -L"/home/cfiles/dnload/hpux/ruby-1.8.0" -o curses.sl curses.o
-lcur_colr -ldld -lcrypt -lm -lc
ld: Unrecognized argument: -Wl,-E
ld: Usage: ld [options] [flags] files

(Which is strange that it now decides to use ld as the linker instead of
gcc which it used on the previous error. This last error also comes up when I
try to compile the CVS snapshot taken on February 10th of ruby.)

gcc is standard on HP-UX?

Index: configure.in

RCS file: /cvs/ruby/src/ruby/configure.in,v
retrieving revision 1.166
diff -u -2 -p -r1.166 configure.in
— configure.in 20 Jan 2003 12:51:50 -0000 1.166
+++ configure.in 12 Feb 2003 00:27:12 -0000
@@ -729,7 +729,7 @@ if test “$with_dln_a_out” != yes; then

case “$target_os” in

  • hpux*) DLDFLAGS=“-E”
  •   	LDSHARED='ld -b'
    
  •   	LDFLAGS="-Wl,-E"
    
  • hpux*) DLDFLAGS=“-Wl,-E”
  •   	LDSHARED="${CC}"
    
  •   	XLDFLAGS="-Wl,-b"
      	rb_cv_dlopen=yes;;
    
    solaris*) if test “$GCC” = yes; then


Nobu Nakada

I was trying to get hold of the a later version of autoconf - I know
this is slightly off topic, but does anyone know where HP have moved
their download site too that has all the precompiled depots for Open
Source tools?

Cheers.

···

On Wed, Feb 12, 2003 at 09:29:05AM +0900, nobu.nokada@softhome.net wrote:

Hi,

At Wed, 12 Feb 2003 06:00:32 +0900, > Craig Files wrote:

After correcting the above I get the following linker error:

ld -b -Wl,-E -E -L"/home/cfiles/dnload/hpux/ruby-1.8.0" -o curses.sl curses.o
-lcur_colr -ldld -lcrypt -lm -lc
ld: Unrecognized argument: -Wl,-E
ld: Usage: ld [options] [flags] files

(Which is strange that it now decides to use ld as the linker instead of
gcc which it used on the previous error. This last error also comes up when I
try to compile the CVS snapshot taken on February 10th of ruby.)

gcc is standard on HP-UX?

Index: configure.in

RCS file: /cvs/ruby/src/ruby/configure.in,v
retrieving revision 1.166
diff -u -2 -p -r1.166 configure.in
— configure.in 20 Jan 2003 12:51:50 -0000 1.166
+++ configure.in 12 Feb 2003 00:27:12 -0000
@@ -729,7 +729,7 @@ if test “$with_dln_a_out” != yes; then

case “$target_os” in

  • hpux*) DLDFLAGS=“-E”
  • 	LDSHARED='ld -b'
    
  • 	LDFLAGS="-Wl,-E"
    
  • hpux*) DLDFLAGS=“-Wl,-E”
  • 	LDSHARED="${CC}"
    
  • 	XLDFLAGS="-Wl,-b"
    	rb_cv_dlopen=yes;;
    
    solaris*) if test “$GCC” = yes; then


Nobu Nakada