Re: Formats "HDF and Vis5D" in Linux RH 6.0

>  cc -G -z defs -o v5d_read.o v5d.o binio.o \
>  -lm -lc
>  cc: unrecognized option '-G'
>  /usr/lib/crt1.o(.text+0x18): undefind reference to 'main'
>  collect2: ld returned 1 exit status
>  make:  *** [] Error

Try making the following changes:

  1) Change
        JAVAINCS = -I${JAVADIR}/include -I${JAVADIR}/include/solaris
        JAVAINCS = -I${JAVADIR}/include -I${JAVADIR}/include/linux

  2) Change
        SHCFLAGS = -fPIC -DPIC

  3) Change
        SHLDFLAGS = -G -z defs
        SHLDFLAGS = -shared

I *think* those are the right flags for Linux, but I haven't been able
to test them (I don't have access to a Linux box.)

I spent some time today hacking on the Makefiles, so this will hopefully
be easier someday soon.

  • Follow-Ups:
    • Thanks.
      • From: Marcelo Tadeu Zamana
  • 1999 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the visad archives: