You got a bit confused. An architecture is a certain implementation of an entity. When you simulate or implement this only one of the architectures will be used.
solution:
ARCHITECTURE beh OF mux4 IS
signal ftemp: std_logic;
BEGIN
WITH s SELECT
ftemp <= D(0) WHEN "00",
D(1)...