Ticket #2072 (new bug)

Opened 15 months ago

Last modified 15 months ago

[Perl] Socket.pm not found

Reported by: andreasf Owned by: axeld
Priority: normal Milestone: R1
Component: Applications/Command Line Tools Version: R1 development
Cc: Blocked By:
Platform: x86 Blocking:

Description

CPAN has problems locating Socket.pm:

Can't locate Socket.pm in @INC (@INC contains: /boot/home/config/lib/perl5/5.10.0/BePC-haiku /boot/home/config/lib/perl5/5.10.0 /boot/home/config/lib/perl5/site_perl/5.10.0/BePC-haiku /boot/home/config/lib/perl5/site_perl/5.10.0 .) at /boot/home/config/lib/perl5/5.10.0/BePC-haiku/IO/Socket.pm line 12.

To reproduce, run cpan followed by install LWP.

Change History

  Changed 15 months ago by andreasf

  • cc bonefish added

  Changed 15 months ago by bonefish

  • cc bonefish removed

One of perl's tests produces the same error. I haven't looked into that, since our current perl version is built without sockets support (as were the perl builds for BeOS), so I figured that would be the reason. I'll probably come back to that, after I'm through with the tool chain. There shouldn't be any reason for perl socket support not to work under Haiku.

follow-up: ↓ 4   Changed 15 months ago by andreasf

Can you tell where it is being built without socket support? You seemed to have that commented out already in hints/haiku.sh.

in reply to: ↑ 3   Changed 15 months ago by bonefish

Replying to andreasf:

Can you tell where it is being built without socket support? You seemed to have that commented out already in hints/haiku.sh.

Sorry, I copied the hints script for BeOS and uncommented/changed the stuff that didn't apply. Still, there was no socket support, so I assumed something has to be done to enable it, and I didn't look into it, since it wasn't really important at that point. My guess would be that one has to add -lnetwork somewhere, so that the Configure tests will find the socket functions, but to be sure just run Configure and check the log.

Note: See TracTickets for help on using tickets.