static perlTk make 
Author Message
 static perlTk make

Hi all,

I'm trying to make a staticly linked version of perl/Tk (400.202) using:
perl Makefile.PL LINKTYPE=static
The final link phase failes with the following unresolved symbols:

Undefined                       first referenced
 symbol                             in file
tkPhotoImageType                  
~/Tk400.202/blib/arch/auto/Tk/Photo/Photo.a(Photo.o)
Tix_NoteBookFrameCmd              
~/Tk400.202/blib/arch/auto/Tk/NBFrame/NBFrame.a(NBFrame.o)
Tix_MwmCmd                        
~/Tk400.202/blib/arch/auto/Tk/Mwm/Mwm.a(Mwm.o)
Tk_ListboxCmd                      
~/Tk400.202/blib/arch/auto/Tk/Listbox/Listbox.a(Listbox.o)
tix_TextItemType                  
~/Tk400.202/blib/arch/auto/Tk/HList/HList.a(HList.o)
Tix_AddDItemType                  
~/Tk400.202/blib/arch/auto/Tk/HList/HList.a(HList.o)
TkimgphotoVGet                    
~/Tk400.202/blib/arch/auto/Tk/Photo/Photo.a(Photo.o)
tkBitmapImageType                  
~/Tk400.202/blib/arch/auto/Tk/Bitmap/Bitmap.a(Bitmap.o)
Tk_TextCmd                        
~/Tk400.202/blib/arch/auto/Tk/Text/Text.a(Text.o)
Tk_ScaleCmd                        
~/Tk400.202/blib/arch/auto/Tk/Scale/Scale.a(Scale.o)
tix_ImageTextType                  
~/Tk400.202/blib/arch/auto/Tk/HList/HList.a(HList.o)
Tk_EntryCmd                        
~/Tk400.202/blib/arch/auto/Tk/Entry/Entry.a(Entry.o)
Tk_MenubuttonCmd                  
~/Tk400.202/blib/arch/auto/Tk/Menubutton/Menubutton.a(Menubutton.o)
tix_WindowItemType                
~/Tk400.202/blib/arch/auto/Tk/HList/HList.a(HList.o)
Tix_InputOnlyCmd                  
~/Tk400.202/blib/arch/auto/Tk/InputO/InputO.a(InputO.o)
TkimgphotoVptr                    
~/Tk400.202/blib/arch/auto/Tk/Photo/Photo.a(Photo.o)
Tk_CanvasCmd                      
~/Tk400.202/blib/arch/auto/Tk/Canvas/Canvas.a(Canvas.o)
Tix_HListCmd                      
~/Tk400.202/blib/arch/auto/Tk/HList/HList.a(HList.o)
Tk_MenuCmd                        
~/Tk400.202/blib/arch/auto/Tk/Menu/Menu.a(Menu.o)
Tk_ScrollbarCmd                    
~/Tk400.202/blib/arch/auto/Tk/Scrollbar/Scrollbar.a(Scrollbar.o)
ld: fatal: Symbol referencing errors. No output written to tkperl

I can find these symbols' definition in the source files, so the linker
should be able to find them.
There was no problem when building a dynamically linked version.
I'm building with gcc version 2.7.2.1.
Can anyone help me with this?

Summary of my perl5 (5.0 patchlevel 5 subversion 2) configuration:
  Platform:
    osname=solaris, osvers=2.5.1, archname=sun4-solaris
    uname='sunos aladin 5.5.1 generic sun4u sparc sunw,ultra-1 '
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef useperlio=undef d_sfio=undef
  Compiler:
    cc='gcc', optimize='-O', gccversion=2.7.2.1
    cppflags='-I/usr/local/include'
    ccflags ='-I/usr/local/include'
    stdchar='unsigned char', d_stdstdio=define, usevfork=false
    intsize=4, longsize=4, ptrsize=4, doublesize=8
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    alignbytes=8, usemymalloc=n, prototype=define
  Linker and Libraries:
    ld='gcc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib
    libs=-lsocket -lnsl -ldl -lm -lc -lcrypt
    libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
    cccdlflags='-fPIC', lddlflags='-G -L/usr/local/lib'

Characteristics of this binary (from libperl):
  Built under solaris
  Compiled at Jan 20 1999 16:12:15

/net/danby/disk1/users/tomer/tools/perl/perl5/solaris-2.5.1/lib/5.00502/sun4-solaris

/net/danby/disk1/users/tomer/tools/perl/perl5/solaris-2.5.1/lib/5.00502

/net/danby/disk1/users/tomer/tools/perl/perl5/solaris-2.5.1/lib/site_perl/5.005/sun4-solaris

/net/danby/disk1/users/tomer/tools/perl/perl5/solaris-2.5.1/lib/site_perl/5.005
    .

Best Regards,
Tomer
==========================================================================
This message was posted through the Stanford campus mailing list
server.  If you wish to unsubscribe from this mailing list, send the



Mon, 09 Jul 2001 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. embedding perlTk scripts w/in other perlTk scripts

2. Building Perl on Windows as Static Library (as opposed to a DLL)

3. perl & static modules

4. building static perl5

5. static Perl

6. Static method bug in Perl5?

7. Static Scoping of Variables

8. Help with Static Linking of Modules

9. Is it possible to build a static Perl?

10. Embedding perl5 (static, 4.0 style)

11. Pre-parsing static html pages - HOW?

12. SCO Perl5.003 w/static DBD-Oracle

 

 
Powered by phpBB® Forum Software