The same sort of thing happened to me, luckily its really easy to fix. You just unscrew the gp2x, and solder the headphone socket back on to the matching terminals which are below the hole for the headphones, simple as that.
If youre still worried about doing it a detailed guide is here...