compilation error on CURRENT-20100118

Katsuhiro Kondou kondou at isc.org
Wed Feb 3 06:52:58 UTC 2010


In article <17EB8A440D7E48D1A23042A4E51BB21A at Iulius>,
	<julien at trigofacile.com> wrote,
	on "Sat, 30 Jan 2010 20:35:37 +0100";

} > gcc -multiply_defined suppress -o tradindexed/tdx-util
} > tradindexed/tdx-util.o \
} >    /tmp/inn-CURRENT-20100118/storage/libstorage.a
} >    /tmp/inn-CURRENT-20100118/history/libinnhist.a
} >    /tmp/inn-CURRENT-20100118/lib/libinn.a
} > /usr/bin/ld: Undefined symbols:
} > _OVstatall
} > _OVrealnow
} > collect2: ld returned 1 exit status
} > make: *** [tradindexed/tdx-util] Error 1
} 
} Just to be sure, are the symbols defined in these archives?

Yes.

} I have:
} 
} % nm /home/news/work/inn/trunk/storage/libstorage.a | grep OVstatall
} 00000001 C OVstatall
}         U OVstatall
}         U OVstatall
} 
} % nm /home/news/work/inn/trunk/storage/libstorage.a | grep OVrealnow
}         U OVrealnow
} 00000004 C OVrealnow
}         U OVrealnow

% cd /tmp/inn-CURRENT-20100118/storage
% nm libstorage.a |grep OVstatall
00000010 C _OVstatall
         U _OVstatall
         U _OVstatall
% nm libstorage.a | grep OVrealnow
         U _OVrealnow
00000010 C _OVrealnow
         U _OVrealnow

} And does it change something if you put tradindexed/tdx-util.o after
} the archives?  or if you use -L/tmp/inn-CURRENT-20100118/history
} -L/tmp/inn-CURRENT-20100118/storage -lstorage -linn ?

Unfortunately, no change.

% ls -l libstorage.a 
-rw-r--r--   1 kondou  wheel  503220 Feb  3 15:38 libstorage.a
% gcc -multiply_defined suppress -o tradindexed/tdx-util tradindexed/tdx-util.o /tmp/inn-CURRENT-20100118/storage/libstorage.a /tmp/inn-CURRENT-20100118/history/libinnhist.a /tmp/inn-CURRENT-20100118/lib/libinn.a         /usr/bin/ld: Undefined symbols:
_OVstatall
_OVrealnow
collect2: ld returned 1 exit status

% gcc -multiply_defined suppress -o tradindexed/tdx-util tradindexed/tdx-util.o /tmp/inn-CURRENT-20100118/storage/libstorage.a /tmp/inn-CURRENT-20100118/history/libinnhist.a /tmp/inn-CURRENT-20100118/lib/libinn.a -L/tmp/inn-CURRENT-20100118/history -L/tmp/inn-CURRENT-20100118/storage -lstorage -linn
/usr/bin/ld: can't locate file for: -linn
collect2: ld returned 1 exit status

% gcc -multiply_defined suppress -o tradindexed/tdx-util tradindexed/tdx-util.o /tmp/inn-CURRENT-20100118/storage/libstorage.a /tmp/inn-CURRENT-20100118/history/libinnhist.a /tmp/inn-CURRENT-20100118/lib/libinn.a -L/tmp/inn-CURRENT-20100118/history -L/tmp/inn-CURRENT-20100118/storage -lstorage
/usr/bin/ld: Undefined symbols:
_OVstatall
_OVrealnow
collect2: ld returned 1 exit status
-- 
Katsuhiro Kondou



More information about the inn-workers mailing list