[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
error with shared libs on irix
From: |
Kremp, Johannes |
Subject: |
error with shared libs on irix |
Date: |
Wed, 13 Nov 2002 12:58:16 +0100 |
hello,
i'm on irix 6.5 and using
automake (GNU automake) 1.6.1
autoconf (GNU Autoconf) 2.54
ltmain.sh (GNU libtool) 1.4.2 (1.922.2.53 2001/09/11 03:18:52)
and the native cc and ld.
i wrote a little example to build a static (there is no error) and a shared
library (there is an error). therefore i have to use '$(AM_CFLAGS)' without
'$(AM_CFLAGS)' i got the following message by automake:
automake-1.6: Makefile.am: object `foo.lo' created both with libtool and
without
test> cat configure.in
AC_INIT(Makefile.am)
AM_INIT_AUTOMAKE(foo, 1)
AC_PROG_LIBTOOL
AC_PROG_CC
AC_OUTPUT(Makefile)
test> cat Makefile.am
AUTOMAKE_OPTIONS = foreign
lib_LTLIBRARIES = libfoo.la
libfoo_la_SOURCES = foo.c
libfoo_la_CFLAGS = $(AM_CFLAGS)
lib_LIBRARIES = libfoo.a
libfoo_a_SOURCES = foo.c
libfoo_a_CFLAGS = $(AM_CFLAGS)
test> cat foo.c
#include <stdio.h>
int main()
{
printf ("hello !\n");
}
when i run 'make' i got the following error:
test> make
source='foo.c' object='libfoo_a-foo.o' libtool=no \
depfile='.deps/libfoo_a-foo.Po' tmpdepfile='.deps/libfoo_a-foo.TPo' \
depmode=sgi /bin/sh ./depcomp \
cc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\"
-DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"foo\"
-DVERSION=\"2\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -I. -I. -g -c -o
libfoo_a-foo.o `test -f 'foo.c' || echo './'`foo.c
Cannot find SERVER hostname in network database (-14,7)
...
rm -f libfoo.a
ar cru libfoo.a libfoo_a-foo.o
: libfoo.a
source='foo.c' object='libfoo_la-foo.lo' libtool=yes \
depfile='.deps/libfoo_la-foo.Plo' tmpdepfile='.deps/libfoo_la-foo.TPlo' \
depmode=sgi /bin/sh ./depcomp \
/bin/sh ./libtool --mode=compile cc -DPACKAGE_NAME=\"\"
-DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\"
-DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"foo\" -DVERSION=\"2\" -DSTDC_HEADERS=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1
-DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_UNISTD_H=1
-DHAVE_DLFCN_H=1 -I. -I. -g -c -o libfoo_la-foo.lo `test -f 'foo.c' ||
echo './'`foo.c
mkdir .libs
cc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\"
-DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"foo\"
-DVERSION=\"2\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -I. -I. -g -c foo.c
-Wp,-MDupdate,.deps/libfoo_la-foo.TPlo -DPIC Cannot find SERVER hostname in
network database (-14,7)
...
mv -f libfoo_la-foo.o .libs/libfoo_la-foo.lo
libfoo_la-foo.o - No such file or directory
make: *** [libfoo_la-foo.lo] Error 2
test>
do have an idea?
thanks for every help.
regards
johannes
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- error with shared libs on irix,
Kremp, Johannes <=