Mikeod has asked for the wisdom of the Perl Monks concerning the following question:

current system:

OpenBSD 3.1, Perl 5.6.1
Trying to upgrade to Perl 5.8.2
sh Configure -de - ran - errors reported but the script didn't indicate that these errors are significant and script reports success at end

run make

get this error:

cc -pthread -L/usr/local/lib -o miniperl miniperlmain.o opmini.o libpe +rl.a -lbind -lm -lutil -lc_r perl.o: Undefined symbol '_SOCKSinit' referenced from text segment collect2: ld returned 1 exit status *** Error code 1 Stop in /usr/local/perl-5.8.2 (line 231 of makefile).

Okay, where is the problem and how to I fix it?
Thanks
Mike O'Doherty

20031118 Edit by Corion: Added formatting

update (broquaint): title change (was Upgrade Help needed)

Replies are listed 'Best First'.
Re: Upgrade help needed moving from 5.6.1 to 5.8.2
by ptkdb (Monk) on Nov 18, 2003 at 15:04 UTC
    Those config errors just might be significant. Engaging as much telepathy as I can, I still can't get them into focus. Guessing, Guessing, Guesing... Still nothing.

    collect2 is kind of perplexing. I thought that this was a part of the 'ld' suite that collected static constructors for C++ modules. Does perl 5.8.2 have C++ elements in it?

    The config errors could be the source of the problem, but not knowing what they are, it's impossible to say if they might pertain to the linkage error you're displaying. Do what you can to correct them, do a "make distclean" reconfigure, and make again.

    Other things that might help:

  • Check the version of your C compiler. It wouldn't be the first time that someone had to upgrade a compiler before upgrading other packages.

  • I'm not familiar with OpenBSD, so I can't say what patches might be necessary. Check to make sure that your system is up to date.
  • <blink>Absolutely</blink> Do a 'make test' before you do a 'make install'. The linkage error hints that perl's networking support may not be 100% happy with your OS. If that's the case, you might get/coerce a successful build, but not have all the features working. You definately don't want to overwrite a fully working installation with a busted one.
  • Given the above, consider installing the new 5.8.2 installation to an alternate location so you can 'kick the tires' before deciding that you want this as your default installation.
Re: Upgrade help needed moving from 5.6.1 to 5.8.2
by PodMaster (Abbot) on Nov 18, 2003 at 15:29 UTC
Re: Upgrade help needed moving from 5.6.1 to 5.8.2
by ysth (Canon) on Nov 18, 2003 at 15:47 UTC
    Just a WAG, try -Dusesocks on the Configure line. (Please restart with a freshly unpacked perl-5.8.2.) Also, checking perl -V:config_args for your current perl may give a clue.
      FYI, I back reved to 5.8.0 and have had no problems. Since I need to test ivs-milter which requires at least 5.8.0, I'll worry about getting to 5.8.2 later. Thanks for all your help to everyone who posted suggestions. Mike
        I'd strongly encourage you to report your problems with perlbug. 5.8.3 will be coming out in January; it would be nice if whatever is going wrong gets fixed, especially since it seems to have been introduced in 5.8.1 or 5.8.2.