A package we're converting to the autotools is having an issue building
a library; it seems to think gcc supports a -soname option.
/bin/sh ../libtool --tag=CC --mode=link mpicc -I/home/tfogal/sw/include
-L/home/tfogal/sw/lib -o libH5Part.la -rpath
/home/tfogal/dev/install-h5part/lib H5Part.lo H5PartAttrib.lo H5Block.lo
H5BlockReadWrite.lo H5MultiBlock.lo H5MultiBlockReadWrite.lo -lhdf5
mpicc -shared .libs/H5Part.o .libs/H5PartAttrib.o .libs/H5Block.o
.libs/H5BlockReadWrite.o .libs/H5MultiBlock.o .libs/H5MultiBlockReadWrite.o
-L/home/tfogal/sw/lib /home/tfogal/shigeru/lib/libhdf5.a -lc -soname
libH5Part.so.0 -o .libs/libH5Part.so.0.0.0
gcc: libH5Part.so.0: No such file or directory
gcc: unrecognized option '-soname'
I do not think I am doing anything all that special:
lib_LTLIBRARIES = libH5Part.la
libH5Part_la_SOURCES = H5Part.c \
H5PartAttrib.c \
H5Block.c \
H5BlockReadWrite.c \
H5MultiBlock.c \
H5MultiBlockReadWrite.c
I tried adding -version-info in hopes it would avoid the soname
problems, to no avail. Attached is the gzip'd output of the libtool
invocation, with --debug. I also attached the full Makefile.am.
It seems like we should get a -Wl, in front of that -soname, but we are
not. What am I doing wrong?
-tom
ltmain.sh (GNU libtool) 1.5.26 Debian 1.5.26-4+lenny1 (1.1220.2.493 2008/02/01
16:58:18)
automake (GNU automake) 1.10.1
autoconf (GNU Autoconf) 2.63
�jJXM~������������+%�*������:�hԽA8�����f�����7*�F���Ũ� �9XC�����
5������(��b�G��+�2.�:�WX
���Oew��U5��{+o����<1��\C�]��&�"'b5��8�������V�$��q/��;V@ܸ���i�,'���
��쀙IbphZ� {I� ������O�{��㹽
&!V:�}0���J$��Ge<���\$��,#�9
�0�����?W%���(x���a������H����I^���o�R˻
gSF�/�EY����46Ҫ��Y��fJX�����8a�g�1�k� +�ƴy�b��P$\°�{�<�fBrۡ
b����*��Ҫ!=+�D�H@�����m\ʫ%.��x����ԍU�a��n|>�������?'��$1��ڔ�
��kf���Ϡs2�ڔ��T��4�x����-1�q����o {A*@z3�v�Ev�F����C�p���(�O�
ׅza�N}w��^��@]�m��V�w�p?�(gOud�3\�<c��
�����F�?Nm��G���l���CN6\�d7��x���p��|����w"�V���̫�큜� *����v'�i��iK�-Ч��
�S�9�'�vc��kt�fN#�"u���ٺ��)I��|221+wc�`��,�v�\6G6�Y�9o1]o�B�Y�]��nQ˥����I*�c�������U���9ף�.����������k�E��=Z�$�L_at��l����
05+O<����.C�u����#�t�nC��t��aH�L�;��Oq�У��FƎmP���s��"�0�+���>�-j�v���rBDw�9�>ūI�K&�`P�IX�KH�������#�g�I�DO0���J1�퐭�؈-Z�����
��w=6lzt6/!sҢ�a����=d����J-��CR�y���Y�ܬ�d���c�-�n�s�1u�'��3��j�˽��O秀��
8���|�bܘ�A���+Q��f���O��@+�5���ՄV�����D���Y���
F��(��"0N��S����d7�!�iz��@�>6�'��J{?)ǧ@3Ԁ���[t�V������!ʎ�G�䇿}��Ǫ�ͷ�)�>[�Y���v��2M
�AC�O�����bK �ˢ��ik���-�����'-^�C�b�|\�â
x%�]I;��
�ђy����Dم���yA"0�)�-�>������Ya�����z�VY]�@[���X�D@�]>!�����a
kx�\�t�Ŏ���4ݱڧ�ed�x&L�(P��TxC+G������ZjQ�cq3ܺ�5�5ç���d{�k��F?��P������j�d]���.�Fw���7��L����J=�Vh�a���^�zس
�>`ڴ����[`c��������������.Z$��~��C��ᙶ/D��4ɆL�(��]����;��Y�W:��7ʜ��ma�-
p�[ɲw7>;cqC�u����'T�G�5^-
�j,�;c*��E,UwH�+k,CG-�"���H�3��f`�DR�(Cx��,�K���k���
�9����\_؞BP��&��e�сӌ�oъ-�l�
<�Z�Ek��~mk@�^���6���g��cG���w."B�$���qbG���ai=�i��������۴��n��j��Eњ�?�`|?���P�Re���&��:��������+v��@���`���$�60����R�2�����z�����+��H��*=r����B�:y�&vp��Fz�7lSt3�3��"���_�a35�}���q`���������E��6l�%���
�����lP����z8�6>
$��q��p�����~���������A7
# src level Makefile.am
#OBJEXT=o
INCLUDES = -I@HDF5ROOT@/include @MPIINC@
EXTRA_HEADERS = H5PartPrivate.h \
H5BlockPrivate.h \
H5MultiBlockPrivate.h \
H5PartAttrib.h
# Extra files that I wish to include in the dist tar ball.
EXTRA_DIST = TestUnderscoreC.c \
TestUnderscore.f \
generate-attr.py \
generate-h5bl-readwrite.py \
generate-h5multi-readwrite.py \
H5Part.f90 \
H5PartAttrib.f90 \
H5Block.f90 \
H5BlockReadWrite.f90 \
$(EXTRA_HEADERS)
# Files that I don't want to include in the dist tar ball
nodist_include_HEADERS = H5PartF.h @UNDERSCORE_H@
# What to build... Will be determined by configure script.
lib_LTLIBRARIES = libH5Part.la
# Listing of all possible targets that I may build.
#EXTRA_LTLIBRARIES = libH5Part.la libH5PartF.la
# Header files that I wish to install in $(prefix)/include
include_HEADERS = H5Part.h \
H5PartTypes.h \
H5PartErrors.h \
H5PartAttrib.h \
H5Block.h \
H5BlockTypes.h \
H5BlockErrors.h \
H5BlockReadWrite.h \
H5MultiBlock.h \
H5MultiBlockTypes.h \
H5MultiBlockErrors.h \
H5MultiBlockReadWrite.h \
H5PartF.h \
@UNDERSCORE_H@
# Listing of sources
libH5Part_la_SOURCES = H5Part.c \
H5PartAttrib.c \
H5Block.c \
H5BlockReadWrite.c \
H5MultiBlock.c \
H5MultiBlockReadWrite.c
libH5Part_la_LDFLAGS=-version-info 0:0:0
libH5PartF_la_SOURCES = $(libH5Part_la_SOURCES) \
H5PartF.c \
H5PartAttribF.c \
H5BlockF.c \
H5BlockReadWriteF.c
H5PartF.h: H5Part.f90 H5PartAttrib.f90 H5Block.f90 H5BlockReadWrite.f90
awk '/INTEGER\*8 FUNCTION/{print "\t" $$1 " " $$3}' $^ >$@
libpH5Part.a: libH5Part.a
$(RM) $@
ln -s $^ $@
libpH5PartF.a: libH5PartF.a
$(RM) $@
ln -s $^ $@
_______________________________________________
http://lists.gnu.org/mailman/listinfo/libtool