Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perlcc bug - can't find perl library on QNX port #473

p5pRT opened this issue Sep 3, 1999 · 1 comment

perlcc bug - can't find perl library on QNX port #473

p5pRT opened this issue Sep 3, 1999 · 1 comment


Copy link

p5pRT commented Sep 3, 1999

Migrated from (status was 'resolved')

Searchable as RT1314$

Copy link

p5pRT commented Sep 3, 1999


Link fails when running 'perlcc' on any small piece of code. The following
message appears in the log file​:

cc warning​: cc​: cannot find library 'perl'

It fails because the link command generated by 'perlcc' doesn't refere to
the right library name.

On 'QNX', the perl library name is 'libperl3r.lib' *NOT* 'perl.lib'.

I was able to modify 'perlcc' to solve the problem by changing the
following lines of code which should be ok on all platform (i think)​:

*** perlcc.old Fri Aug 20 18​:21​:54 1999
--- Fri Sep 3 16​:07​:12 1999
*** 271,277 ****
  if (!grep(/^-[cS]$/, @​args))
! my $lperl = $^O eq 'os2' ? '-llibperl' : '-lperl';
  my $flags = $type eq 'dynamic' ? $Config{lddlflags} : $Config{ldflags};
  $linkargs = "$flags $libdir $lperl @​Config{libs}";
--- 271,277 ----
  if (!grep(/^-[cS]$/, @​args))
! my $lperl = $^O eq 'os2' ? '-llibperl' : '-l' . $Config{'libperl'};
  my $flags = $type eq 'dynamic' ? $Config{lddlflags} : $Config{ldflags};
  $linkargs = "$flags $libdir $lperl @​Config{libs}";

Perl Info

Site configuration information for perl 5.00503:

Configured by marc at Fri Aug 20 18:01:25 edt 1999.

Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration:
    osname=qnx, osvers=425, archname=x86-qnx
    uname='qnx 1 i 425 pci 32 '
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef useperlio=undef d_sfio=undef
    cc='cc', optimize='-O', gccversion=
    ccflags ='-DHIDEMYMALLOC -mf -w4 -Wc,-wcd=202 -Wc,-wcd=203 -Wc,-wcd=302 -Wc,-fi=unix.h'
    stdchar='unsigned char', d_stdstdio=define, usevfork=false
    intsize=4, longsize=4, ptrsize=4, doublesize=8
    d_longlong=undef, longlongsize=, d_longdbl=define, longdblsize=8
    alignbytes=1, usemymalloc=y, prototype=define
  Linker and Libraries:
    ld='ld', ldflags ='-g -N1M'
    libs=-lsocket -lunix
    libc=/usr/lib/clib3r.lib, so=none, useshrplib=false, libperl=libperl3r.lib
  Dynamic Linking:
    dlsrc=dl_none.xs, dlext=none, d_dlsymun=undef, ccdlflags=''
    cccdlflags='', lddlflags=''

Locally applied patches:

@INC for perl 5.00503:

Environment for perl 5.00503:
    LANG (unset)
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PERL_BADLANG (unset)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet

No branches or pull requests

1 participant