From: mc0710 on
Hey!
i'm getting the following errors when i try to compile a program to
test if gnuplotfortran works...

[root(a)lucifer /usr/home/mc/fortran]# g95 -o test6 test6.f95 -
lfortranposix -lgnuplotfortran
ld: warning: libifport.so.5, needed by /usr/lib/libfortranposix.so,
not found (try using -rpath or -rpath-link)
ld: warning: libifcoremt.so.5, needed by /usr/lib/libfortranposix.so,
not found (try using -rpath or -rpath-link)
ld: warning: libimf.so, needed by /usr/lib/libfortranposix.so, not
found (try using -rpath or -rpath-link)
ld: warning: libm.so.6, needed by /usr/lib/libfortranposix.so, not
found (try using -rpath or -rpath-link)
ld: warning: libcxa.so.5, needed by /usr/lib/libfortranposix.so, not
found (try using -rpath or -rpath-link)
ld: warning: libunwind.so.5, needed by /usr/lib/libfortranposix.so,
not found (try using -rpath or -rpath-link)
ld: warning: libpthread.so.0, needed by /usr/lib/libfortranposix.so,
not found (try using -rpath or -rpath-link)
/usr/lib/libfortranposix.so: undefined reference to `getenv(a)GLIBC_2.0'
/usr/lib/libfortranposix.so: undefined reference to `getcwd(a)GLIBC_2.0'
/usr/lib/libgnuplotfortran.so: undefined reference to
`fortran_access__'
/usr/lib/libfortranposix.so: undefined reference to `getpid(a)GLIBC_2.0'
/usr/lib/libgnuplotfortran.so: undefined reference to
`fortran_getcwd__'
/usr/lib/libfortranposix.so: undefined reference to `fgets(a)GLIBC_2.0'
/usr/lib/libgnuplotfortran.so: undefined reference to
`fortran_pipebufsize__'
/usr/lib/libfortranposix.so: undefined reference to
`strncpy(a)GLIBC_2.0'
/usr/lib/libfortranposix.so: undefined reference to `for_len_trim'
/usr/lib/libfortranposix.so: undefined reference to `strcmp(a)GLIBC_2.0'
/usr/lib/libfortranposix.so: undefined reference to `popen(a)GLIBC_2.1'
/usr/lib/libgnuplotfortran.so: undefined reference to
`fortran_pclose__'
/usr/lib/libfortranposix.so: undefined reference to `pclose(a)GLIBC_2.1'
/usr/lib/libgnuplotfortran.so: undefined reference to
`fortran_gethostname__'
/usr/lib/libgnuplotfortran.so: undefined reference to
`fortran_getlogin__'
/usr/lib/libfortranposix.so: undefined reference to `fflush(a)GLIBC_2.0'
/usr/lib/libfortranposix.so: undefined reference to `mkdir(a)GLIBC_2.0'
/usr/lib/libfortranposix.so: undefined reference to `chdir(a)GLIBC_2.0'
/usr/lib/libfortranposix.so: undefined reference to
`gethostname(a)GLIBC_2.0'
/usr/lib/libgnuplotfortran.so: undefined reference to
`fortran_mkdir__'
/usr/lib/libgnuplotfortran.so: undefined reference to
`fortran_fflush__'
/usr/lib/libfortranposix.so: undefined reference to
`getchar(a)GLIBC_2.0'
/usr/lib/libgnuplotfortran.so: undefined reference to
`fortran_getenv__'
/usr/lib/libfortranposix.so: undefined reference to `fputs(a)GLIBC_2.0'
/usr/lib/libfortranposix.so: undefined reference to
`getpwuid(a)GLIBC_2.0'
/usr/lib/libfortranposix.so: undefined reference to `malloc(a)GLIBC_2.0'
/usr/lib/libfortranposix.so: undefined reference to `exit(a)GLIBC_2.0'
/usr/lib/libfortranposix.so: undefined reference to
`__cxa_finalize(a)GLIBC_2.1.3'
/usr/lib/libfortranposix.so: undefined reference to
`for_write_seq_lis'
/usr/lib/libfortranposix.so: undefined reference to `rmdir(a)GLIBC_2.0'
/usr/lib/libgnuplotfortran.so: undefined reference to
`fortran_popen__'
/usr/lib/libfortranposix.so: undefined reference to `getuid(a)GLIBC_2.0'
/usr/lib/libfortranposix.so: undefined reference to `fileno(a)GLIBC_2.0'
/usr/lib/libgnuplotfortran.so: undefined reference to
`fortran_rmdir__'
/usr/lib/libfortranposix.so: undefined reference to `perror(a)GLIBC_2.0'
/usr/lib/libfortranposix.so: undefined reference to `access(a)GLIBC_2.0'
/usr/lib/libfortranposix.so: undefined reference to
`getppid(a)GLIBC_2.0'
/usr/lib/libfortranposix.so: undefined reference to `strlen(a)GLIBC_2.0'
/usr/lib/libfortranposix.so: undefined reference to
`__errno_location(a)GLIBC_2.0'
/usr/lib/libfortranposix.so: undefined reference to `for_cpystr'
/usr/lib/libfortranposix.so: undefined reference to `printf(a)GLIBC_2.0'
/usr/lib/libfortranposix.so: undefined reference to
`strerror(a)GLIBC_2.0'
/usr/lib/libgnuplotfortran.so: undefined reference to
`fortran_fputs__'

could someone please help me out!?

P.S i use freebsd
From: Henrik Holst on
On Jan 9, 11:53 am, "mc0...(a)gmail.com" <mc0...(a)gmail.com> wrote:
> Hey!
> i'm getting the following errors when i try to compile a program to
> test if gnuplotfortran works...
>
> [root(a)lucifer /usr/home/mc/fortran]# g95 -o test6 test6.f95 -
> lfortranposix -lgnuplotfortran
> ld: warning: libifport.so.5, needed by /usr/lib/libfortranposix.so,
> not found (try using -rpath or -rpath-link)
> ld: warning: libifcoremt.so.5, needed by /usr/lib/libfortranposix.so,
> not found (try using -rpath or -rpath-link)
> ld: warning: libimf.so, needed by /usr/lib/libfortranposix.so, not
> found (try using -rpath or -rpath-link)
> ld: warning: libm.so.6, needed by /usr/lib/libfortranposix.so, not
> found (try using -rpath or -rpath-link)
> ld: warning: libcxa.so.5, needed by /usr/lib/libfortranposix.so, not
> found (try using -rpath or -rpath-link)
> ld: warning: libunwind.so.5, needed by /usr/lib/libfortranposix.so,
> not found (try using -rpath or -rpath-link)
> ld: warning: libpthread.so.0, needed by /usr/lib/libfortranposix.so,
> not found (try using -rpath or -rpath-link)
> /usr/lib/libfortranposix.so: undefined reference to `getenv(a)GLIBC_2.0'
> /usr/lib/libfortranposix.so: undefined reference to `getcwd(a)GLIBC_2.0'
> /usr/lib/libgnuplotfortran.so: undefined reference to
> `fortran_access__'
> /usr/lib/libfortranposix.so: undefined reference to `getpid(a)GLIBC_2.0'
> /usr/lib/libgnuplotfortran.so: undefined reference to
> `fortran_getcwd__'
> /usr/lib/libfortranposix.so: undefined reference to `fgets(a)GLIBC_2.0'
> /usr/lib/libgnuplotfortran.so: undefined reference to
> `fortran_pipebufsize__'
> /usr/lib/libfortranposix.so: undefined reference to
> `strncpy(a)GLIBC_2.0'
> /usr/lib/libfortranposix.so: undefined reference to `for_len_trim'
> /usr/lib/libfortranposix.so: undefined reference to `strcmp(a)GLIBC_2.0'
> /usr/lib/libfortranposix.so: undefined reference to `popen(a)GLIBC_2.1'
> /usr/lib/libgnuplotfortran.so: undefined reference to
> `fortran_pclose__'
> /usr/lib/libfortranposix.so: undefined reference to `pclose(a)GLIBC_2.1'
> /usr/lib/libgnuplotfortran.so: undefined reference to
> `fortran_gethostname__'
> /usr/lib/libgnuplotfortran.so: undefined reference to
> `fortran_getlogin__'
> /usr/lib/libfortranposix.so: undefined reference to `fflush(a)GLIBC_2.0'
> /usr/lib/libfortranposix.so: undefined reference to `mkdir(a)GLIBC_2.0'
> /usr/lib/libfortranposix.so: undefined reference to `chdir(a)GLIBC_2.0'
> /usr/lib/libfortranposix.so: undefined reference to
> `gethostname(a)GLIBC_2.0'
> /usr/lib/libgnuplotfortran.so: undefined reference to
> `fortran_mkdir__'
> /usr/lib/libgnuplotfortran.so: undefined reference to
> `fortran_fflush__'
> /usr/lib/libfortranposix.so: undefined reference to
> `getchar(a)GLIBC_2.0'
> /usr/lib/libgnuplotfortran.so: undefined reference to
> `fortran_getenv__'
> /usr/lib/libfortranposix.so: undefined reference to `fputs(a)GLIBC_2.0'
> /usr/lib/libfortranposix.so: undefined reference to
> `getpwuid(a)GLIBC_2.0'
> /usr/lib/libfortranposix.so: undefined reference to `malloc(a)GLIBC_2.0'
> /usr/lib/libfortranposix.so: undefined reference to `exit(a)GLIBC_2.0'
> /usr/lib/libfortranposix.so: undefined reference to
> `__cxa_finalize(a)GLIBC_2.1.3'
> /usr/lib/libfortranposix.so: undefined reference to
> `for_write_seq_lis'
> /usr/lib/libfortranposix.so: undefined reference to `rmdir(a)GLIBC_2.0'
> /usr/lib/libgnuplotfortran.so: undefined reference to
> `fortran_popen__'
> /usr/lib/libfortranposix.so: undefined reference to `getuid(a)GLIBC_2.0'
> /usr/lib/libfortranposix.so: undefined reference to `fileno(a)GLIBC_2.0'
> /usr/lib/libgnuplotfortran.so: undefined reference to
> `fortran_rmdir__'
> /usr/lib/libfortranposix.so: undefined reference to `perror(a)GLIBC_2.0'
> /usr/lib/libfortranposix.so: undefined reference to `access(a)GLIBC_2.0'
> /usr/lib/libfortranposix.so: undefined reference to
> `getppid(a)GLIBC_2.0'
> /usr/lib/libfortranposix.so: undefined reference to `strlen(a)GLIBC_2.0'
> /usr/lib/libfortranposix.so: undefined reference to
> `__errno_location(a)GLIBC_2.0'
> /usr/lib/libfortranposix.so: undefined reference to `for_cpystr'
> /usr/lib/libfortranposix.so: undefined reference to `printf(a)GLIBC_2.0'
> /usr/lib/libfortranposix.so: undefined reference to
> `strerror(a)GLIBC_2.0'
> /usr/lib/libgnuplotfortran.so: undefined reference to
> `fortran_fputs__'
>
> could someone please help me out!?
>
> P.S i use freebsd

Hi!

(I am by no means an expert on this, but since nobody has suggested
anything yet I will throw out an idea...)

You should know that there is no standard binary format for Fortran
compilers so you can't expect to be able to exchange libraries between
different compilers. That said, I am unsure if this actually is the
real reason why you can't use g95 (it should be fairly compatible with
GFortran since they are both based on GCC) to compile your program
against those libraries.

More specific for your problem: I think GFortran is the standard
Fortran compiler in FreeBSD 6. That means that the prebuilt libraries
should have been built using GFortran 4.x (I am guessing). So my
advice is that you try compile your program using GFortran instead.

If you need g95 for your project, then I think the only alternative is
that you recompile the gnuplot library and it's dependences with g95.

--
Henrik Holst, Sweden
http://www.nada.kth.se/~holst/contact.shtml
I don't use my Gmail account.