[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
error with shared lib on irix 6.5
From: |
Kremp, Johannes |
Subject: |
error with shared lib on irix 6.5 |
Date: |
Mon, 21 Oct 2002 10:57:05 +0200 |
sorry, if you already got this message. but i didn't find it on the mailing
list. johannes
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 (no error) and a shared library
(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
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)
This product (cc) requires a license password.
For license installation and trouble shooting
information visit the web page:
http://www.sgi.com/Support/Licensing/install_docs.html
To obtain a Permanent license (proof of purchase
required) or an Evaluation license please
visit our license request web page:
http://www.sgi.com/Products/license.html
or send a blank email message to:
address@hidden
In North America, Silicon Graphics' customers may request
Permanent licenses by sending a facsimile to:
(650) 390-0537
or by calling our technical support hotline
1-800-800-4SGI
If you are Outside of North America or you are not a Silicon
Graphics support customer then contact your local support provider.
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)
This product (cc) requires a license password.
For license installation and trouble shooting
information visit the web page:
http://www.sgi.com/Support/Licensing/install_docs.html
To obtain a Permanent license (proof of purchase
required) or an Evaluation license please
visit our license request web page:
http://www.sgi.com/Products/license.html
or send a blank email message to:
address@hidden
In North America, Silicon Graphics' customers may request
Permanent licenses by sending a facsimile to:
(650) 390-0537
or by calling our technical support hotline
1-800-800-4SGI
If you are Outside of North America or you are not a Silicon
Graphics support customer then contact your local support provider.
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>
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");
}
do have an idea?
thanks for every help.
regards
johannes