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

Closed
p5pRT opened this issue Sep 3, 1999 · 1 comment
Closed

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

p5pRT opened this issue Sep 3, 1999 · 1 comment

Comments

@p5pRT
Copy link

p5pRT commented Sep 3, 1999

Migrated from rt.perl.org#1314 (status was 'resolved')

Searchable as RT1314$

@p5pRT
Copy link
Author

p5pRT commented Sep 3, 1999

From malupien@microtec.net

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
--- perlcc.new 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:
  Platform:
    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
  Compiler:
    cc='cc', optimize='-O', gccversion=
    cppflags=''
    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'
    libpth=/usr/lib
    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:
    /usr/local/lib/perl5_005_03/lib/5.00503/x86-qnx
    /usr/local/lib/perl5_005_03/lib/5.00503
    /usr/local/lib/perl5_005_03/lib/site_perl/5.005/x86-qnx
    /usr/local/lib/perl5_005_03/lib/site_perl/5.005
    .


Environment for perl 5.00503:
    HOME=/home/marc
    LANG (unset)
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=:/bin:/usr/bin:/etc:/usr/ucb:/usr/local/bin:/usr/import/bin:/usr/apps/bin:/usr/photon/bin:/usr/bin/photon:/qnx4/phtk/appbuilder:/home/marc/bin
    PERL_BADLANG (unset)
    SHELL=/bin/sh


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

No branches or pull requests

1 participant