[SunHELP] problems with gnu on solaris-2.6

Javier O. Augusto javito at blumenau.sc.gov.br
Sat Apr 13 16:06:56 CDT 2002


Hi,
did you compile all those programs with gnu compiler (gcc) in your
station?
if so, its that..
its a common problem with compiling using gcc, because of some kernel
specific instructions set.
for more info check out the gnu.org -: gcc 
good luck!
javier.


On Sat, 2002-04-13 at 12:48, Nathaniel Grady wrote:
> Hi,
> I am trying to install a gnu toolchain / gnome on my SparcSTATION running sol 2.6 patched to the sun reccomended patchset as of ~ christmass. It has a SM51, RasterFLEX-HR, 80mb Ram. I'm using the foloowing sunfreeware packages to bootstrap:
> application FSFmake        make
> application FSFpatch       patch
> application GBxpm          xpm
> application GTKgtk         gtk
> application SMCautoc       autoconf
> application SMCautom       automake
> application SMCbash        bash
> application SMCbinut       binutils
> application SMCbzip2       bzip2
> application SMCgcc         gcc
> application SMCgzip        gzip
> application SMCperl        perl
> application SMCtar         tar
> application SMCvim         vim
> application SMCwget        wget
> my environment is set like:
> PATH=/export/nate/bin:/usr/local/bin:/export/nate/sbin:/usr/local/sbin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/sbin:/usr/platform/sun4m/sbin:/bin:/usr/bin:/opt/netscape:/usr/dt/bin:/usr/openwin/bin:usr/X/bin:/export/nate/gnome-1.4/bin:/export/nate/kde2/bin:/usr/ccs/bin:/usr/ucb/:/usr/xpg4/bin:/opt/VITrflex/bin
> LDFLAGS=$'-L/export/nate/lib -R/export/nate/lib -L/export/nate/gnome1/lib -R/export/nate/gnome1/lib -L/usr/local/lib -R/usr/local/lib'
> LD_LIBRARY_PATH=/export/nate/lib:/export/nate/gnome1/lib:/usr/local/lib:/usr/lib:/usr/dt/lib:/usr/openwin/lib:/usr/X/lib
> LD_RUN_PATH=/export/nate/lib:/export/nate/gnome1/lib:/usr/local/lib:/usr/lib:/usr/dt/lib:/usr/openwin/lib:/usr/X/lib
> CFLAGS=$' -O2 -msupersparc -mcpu=v8 -fpermissive '
> CXXFLAGS=$' -O2 -msupersparc -mcpu=v8 -fpermissive '
> 
> Anyway, following along the instructions at http://www.clanger9.org.uk/computer/gnome/, I compiled/installed make, patch, m4, bison and gettext. My last attempt to install gnome failed miserably partly because of gettext crashing (i just disabled NLS in all packages to get around it) and mainly because GTK crashed. I'm trying to very carfully do everything this time and hopefully get it working! My problem is that gettext doesn't work - running "xgettext" for example segfaults. I attacked it with gdb and truss and found the following:
> bash-2.05# gdb `which xgettext`
> (gdb) run
> Starting program: /export/nate/bin/xgettext 
> 
> Program received signal SIGSEGV, Segmentation fault.
> 0xef6641b4 in strcmp ()
> (gdb) 
> 
> Relevant truss output:
> open("/usr/platform/SUNW,SPARCstation-20/lib/libc_psr.so.1", O_RDONLY) Err#2 ENOENT
> close(3)                                        = 0
> brk(0x0006ADD0)                                 = 0
> brk(0x0006CDD0)                                 = 0
>     Incurred fault #6, FLTBOUNDS  %pc = 0xEF6641B4
>       siginfo: SIGSEGV SEGV_MAPERR addr=0x007259C0
>     Received signal #11, SIGSEGV [default]
>       siginfo: SIGSEGV SEGV_MAPERR addr=0x007259C0
>         *** process killed ***
> (complete at end)
> 
> Am I missing some essential patch here? Does the reccomended patchset contain someting I need to back out? gtk also was crashing in libc somewhere the last time i compiled it iirc (before I assumed that I b0rked it and descided to rm -rf  everything and redo from start).
> 
> Sorry for the verbosity - I figured too much info was probably better than too little. 
> Thanks for your help!
> -- 
> -- Nathaniel Grady
>    /*\              ASCII RIBBON CAMPAIGN
>    \ /              - AGAINST HTML EMAIL
>     X               - AGAINST MS ATTACHMENTS
>    / \
> 
> Complete Truss output:
> bash-2.05# which xgettext
> /export/nate/bin/xgettext
> bash-2.05# xgettext
> Segmentation Fault (core dumped)
> bash-2.05# truss xgettext
> execve("/export/nate/bin/xgettext", 0xEFFFF970, 0xEFFFF978)  argc = 1
> open("/dev/zero", O_RDONLY)                     = 3
> mmap(0x00000000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xEF7C0000
> open("/export/nate/lib/libgettextsrc-0.11.1.so", O_RDONLY) = 4
> fstat(4, 0xEFFFF50C)                            = 0
> mmap(0x00000000, 4096, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0xEF7B0000
> mmap(0x00000000, 192512, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0xEF770000
> munmap(0xEF78E000, 61440)                       = 0
> mmap(0xEF79D000, 4672, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4, 118784) = 0xEF79D000
> close(4)                                        = 0
> open("/export/nate/lib/libgettextlib-0.11.1.so", O_RDONLY) = 4
> fstat(4, 0xEFFFF50C)                            = 0
> mmap(0xEF7B0000, 4096, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4, 0) = 0xEF7B0000
> mmap(0x00000000, 143360, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0xEF740000
> munmap(0xEF752000, 61440)                       = 0
> mmap(0xEF761000, 5028, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4, 69632) = 0xEF761000
> close(4)                                        = 0
> open("/export/nate/lib/libintl.so.2", O_RDONLY) = 4
> fstat(4, 0xEFFFF50C)                            = 0
> mmap(0xEF7B0000, 4096, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4, 0) = 0xEF7B0000
> mmap(0x00000000, 94208, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0xEF720000
> munmap(0xEF726000, 61440)                       = 0
> mmap(0xEF735000, 4828, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4, 20480) = 0xEF735000
> close(4)                                        = 0
> open("/export/nate/lib/libc.so.1", O_RDONLY)    Err#2 ENOENT
> open("/export/nate/gnome-1.4/lib/libc.so.1", O_RDONLY) Err#2 ENOENT
> open("/export/nate/kde2/lib/libc.so.1", O_RDONLY) Err#2 ENOENT
> open("/usr/local/lib/libc.so.1", O_RDONLY)      Err#2 ENOENT
> open("/usr/lib/libc.so.1", O_RDONLY)            = 4
> fstat(4, 0xEFFFF50C)                            = 0
> mmap(0xEF7B0000, 4096, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4, 0) = 0xEF7B0000
> mmap(0x00000000, 696320, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0xEF640000
> munmap(0xEF6D3000, 61440)                       = 0
> mmap(0xEF6E2000, 24744, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4, 598016) = 0xEF6E2000
> mmap(0xEF6E9000, 3000, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xEF6E9000
> mmap(0x00000000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xEF710000
> close(4)                                        = 0
> open("/export/nate/lib/libdl.so.1", O_RDONLY)   Err#2 ENOENT
> open("/export/nate/gnome-1.4/lib/libdl.so.1", O_RDONLY) Err#2 ENOENT
> open("/export/nate/kde2/lib/libdl.so.1", O_RDONLY) Err#2 ENOENT
> open("/usr/local/lib/libdl.so.1", O_RDONLY)     Err#2 ENOENT
> open("/usr/lib/libdl.so.1", O_RDONLY)           = 4
> fstat(4, 0xEFFFF50C)                            = 0
> mmap(0xEF7B0000, 4096, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4, 0) = 0xEF7B0000
> close(4)                                        = 0
> open("/usr/platform/SUNW,SPARCstation-20/lib/libc_psr.so.1", O_RDONLY) Err#2 ENOENT
> close(3)                                        = 0
> brk(0x0006ADD0)                                 = 0
> brk(0x0006CDD0)                                 = 0
>     Incurred fault #6, FLTBOUNDS  %pc = 0xEF6641B4
>       siginfo: SIGSEGV SEGV_MAPERR addr=0x007259C0
>     Received signal #11, SIGSEGV [default]
>       siginfo: SIGSEGV SEGV_MAPERR addr=0x007259C0
>         *** process killed ***
> _______________________________________________
> SunHELP maillist  -  SunHELP at sunhelp.org
> http://www.sunhelp.org/mailman/listinfo/sunhelp



More information about the SunHELP mailing list