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

I have freetds(0.51) installed and working fine with PHP to connect to an mssql 2000 server from a Solaris 2.6 box. Yet DBD::Sybase (0.91)built with the same freetds returns 'cannot assign requested address'. What would cause this? Thanks.

Originally posted as a Categorized Question.

  • Comment on Why does DBD::Sybase return 'cannot assign requested adress'?

Replies are listed 'Best First'.
Re: Why does DBD::Sybase return 'cannot assign requested adress'?
by mpeppler (Vicar) on Jun 20, 2002 at 14:10 UTC
    "Cannot assign requested address" usually comes from a bind() call that is done with a port that is already in use.

    However - DBD::Sybase (and freetds) shouldn't call that function at all, so I don't know what could be causing this.

    Have you tried asking on the FreeTDS mailing list?

    Michael

Re: Why does DBD::Sybase return 'cannot assign requested adress'?
by Anonymous Monk on Mar 25, 2003 at 05:03 UTC
    Seems a lot of old Perl code has weird arguments to socket() and bind() calls which request a particular local port and/or interface. This used to work but no longer does.
Re: Why does DBD::Sybase return 'cannot assign requested adress'?
by Anonymous Monk on Jun 21, 2002 at 14:01 UTC
    Yes, I posted this several months ago. The recent Apache security bug has me rebuilding and reviewing. Jim H.