You could always associate with causes/groups such that you knew that in your absence the cause would go on, and have a life dangerous enough (taking chances on interesting experiences, etc.) such that your half-life was short enough that this didn't become a problem. Though that might not be 'living as long as you want' for some people.
I don't know if this is a new problem. People lose their purposes in life all the time. They tend to find new ones, especially when groups of people are involved. These things are remarkably fluid, and do not necessarily correspond one to one with external physical reality.
Today's post, Higher Purpose was originally published on 23 January 2009. A summary (taken from the LW wiki):
Discuss the post here (rather than in the comments to the original post).
This post is part of the Rerunning the Sequences series, where we'll be going through Eliezer Yudkowsky's old posts in order so that people who are interested can (re-)read and discuss them. The previous post was Investing for the Long Slump, and you can use the sequence_reruns tag or rss feed to follow the rest of the series.
Sequence reruns are a community-driven effort. You can participate by re-reading the sequence post, discussing it here, posting the next day's sequence reruns post, or summarizing forthcoming articles on the wiki. Go here for more details, or to have meta discussions about the Rerunning the Sequences series.