HPUX compile problems 
Author Message
 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 ;-)

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 of `timezone'

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



Sun, 31 Jul 2005 04:49:34 GMT  
 HPUX compile problems
Hi,

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

Quote:

> 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

   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



Sun, 31 Jul 2005 08:29:05 GMT  
 HPUX compile problems
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.

Quote:

> Hi,

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

> > 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

>    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



Sun, 31 Jul 2005 15:57:47 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. HPUX 10.2 compiling problems

2. Problem compiling Expect 5-19 on Sunos nad HPUX

3. HPUX and ruby 1.8preview2 compile error

4. compile errors w/f90 on HPUX 10.20

5. Python 2.1 compile error on HPUX

6. Compiling PHP 4.2.2 with Apache 2 from HP for HPUX 11i

7. compiling gnome-python under hpux

8. Tips, compiling with HPUX C++

9. HPUX to IBM RS6000 Compiling *.F Files

10. Can't compile TK 8.0.4 on HPUX 11.0

11. HPUX cc can't compile tclUnixTime.c

12. Q: compiling TK on HPUX V10.10

 

 
Powered by phpBB® Forum Software