A judge in Pakistan has ordered the arrest of President Asif Ali Zardari’s preferred candidate for prime minister, just a day after he was nominated.

Makhdoom Shahabuddin’s arrest warrant is linked to imports of an illegal drug while he was health minister.

Parliament is due to vote on a new PM on Friday to replace Yousuf Raza Gilani, who the Supreme Court disqualified because of a contempt conviction. At the time, a senior aide to Gilani said only parliament could dismiss the prime minister, raising the possibility of a confrontation between court and government, but by nominating a new man the president has accepted the ruling and backed away from a fight.

It is not clear if the arrest warrant will derail Mr Shahabuddin’s nomination.

Pakistan’s president had nominated the ruling party veteran and former textiles minister Makhdoom Shahabuddin to replace the ousted prime minister, in an apparent bid for continuity ahead of elections due early next year.

Shahabuddin is expected to file his nomination papers on Thursday. The ruling coalition has a comfortable majority in parliament, which meets on Friday in an extraordinary session to elect a new prime minister.

Shahabuddin will face mounting public frustrations over a staggering range of problems, and a Supreme Court chief justice who prides himself on standing up to Pakistan’s most powerful players.

Gilani’s removal is likely to heat up the Pakistani political arena, where the civilian leadership, the powerful military and the Supreme Court square off against each other at the expense of a public longing for stability and a stronger economy.

Pakistan’s relations with the United States, which provides it with billions of dollars in aid, are at their lowest point in years.

Taliban militants still pose a major security threat, despite numerous army crackdowns. The economy is struggling and analysts predict Pakistan will again have to turn to the International Monetary Fund to keep it afloat.

Chronic power cuts, which triggered violent protests this week, show no signs of easing.

Shahabuddin, who enjoys smooth ties with coalition partners, was seen as a safe bet for the ruling Pakistan People’s Party, which is gearing up for a general election due early next year.

But the former deputy finance minister will likely face the same pressures as did Gilani from Supreme Court Chief Justice Iftikhar Chaudhry to reopen old corruption cases against Zardari.

Thousands of corruption cases were thrown out in 2007 by an amnesty law passed under former military president Pervez Musharraf, paving the way for a return to civilian rule.

Two years later, the Supreme Court ruled that agreement illegal, and ordered the re-opening of money laundering cases against Zardari that involved Swiss bank accounts.

Gilani and his government refused to obey the court’s order to write to Swiss authorities asking them to look again at those cases, arguing that Zardari had immunity as the head of state.

The United States is hoping for stability in Pakistan so that Islamabad can engage Washington and work to improve ties damaged by a series of events, most recently a NATO cross-border raid in November which killed 24 Pakistani soldiers.

Pakistan closed supply routes to NATO forces in Afghanistan to protest against the attack, and negotiations on re-opening the lines are deadlocked.