NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

static linking broke Re: cross building NetBSD 4.0 problems



> > My klunky build script:
> 
> Problems with this script:
> 1.) You set MACHINE_ARCH manually. "build.sh" does a much better job  
> at this in
>      most case. Please do not do this.
> 2.) You disable creation of shared libraries and enforce creationg of  
> static
>      binaries. While this shouldn't cause build problems it is a bad  
> idea IMHO.
> 3.) Please don't set all these environment variable. Use the  
> appropriate options
>      of "build.sh" e.g. "-O" or "-T".

Not setting MACHINE_ARCH and changing as many environment variables
to command line options as possible didn't help.

Then I commented out the lines:

#export LDSTATIC=-static
#export MKPIC=no
#export MKSHARE=no

and got: "Successful make build" for both i386 and alpha.

Uncommented just the export LDSTATIC=-static line, and got:

    compile  gdb/values.o
    compile  gdb/varobj.o
    compile  gdb/version.o
    compile  gdb/wrapper.o
       link  gdb/gdb
/rw/build_netbsd/4.0/alpha/A_obj/gnu/usr.bin/gdb53/opcodes/libopcodes.a(dis-buf.o):
 In function `perror_memory':
: undefined reference to `dgettext'
/rw/build_netbsd/4.0/alpha/A_obj/gnu/usr.bin/gdb53/opcodes/libopcodes.a(dis-buf.o):
 In function `perror_memory':
: undefined reference to `dgettext'
/rw/build_netbsd/4.0/alpha/A_obj/gnu/usr.bin/gdb53/opcodes/libopcodes.a(dis-buf.o):
 In function `perror_memory':
: undefined reference to `dgettext'
/rw/build_netbsd/4.0/alpha/A_obj/gnu/usr.bin/gdb53/opcodes/libopcodes.a(dis-buf.o):
 In function `perror_memory':
: undefined reference to `dgettext'
/rw/build_netbsd/4.0/alpha/A_obj/gnu/usr.bin/gdb53/opcodes/libopcodes.a(alpha-opc.o):(.text+0x234):
 undefined reference to `dgettext'
/rw/build_netbsd/4.0/alpha/A_obj/gnu/usr.bin/gdb53/opcodes/libopcodes.a(alpha-opc.o):(.text+0x244):
 more undefined references to `dgettext' follow
collect2: ld returned 1 exit status

*** Failed target:  gdb


Static linking worked for alpha in 3.x.


Home | Main Index | Thread Index | Old Index