nmh-workers
[Top] [All Lists]

[Nmh-workers] 1.4 build failures on RHEL/CentOS 5

2012-02-05 06:26:13

On CentOS 5, I get the following compile time errors:

        gcc -s -o mhlist mhlist.o mhparse.o mhcachesbr.o mhlistsbr.o mhmisc.o 
mhfree.o ftpsbr.o termsbr.o md5.o ../config/version.o ../config/config.o 
../mts/libmts.a ../sbr/libmh.a  
        termsbr.o: In function `read_termcap':
        termsbr.c:(.text+0x43): undefined reference to `tgetent'
        termsbr.c:(.text+0x64): undefined reference to `tgetflag'
        termsbr.c:(.text+0x9a): undefined reference to `tgetstr'
        termsbr.c:(.text+0xaf): undefined reference to `tgetstr'
        termsbr.c:(.text+0xc7): undefined reference to `tgetnum'
        termsbr.c:(.text+0xdf): undefined reference to `tgetstr'
        termsbr.c:(.text+0xf4): undefined reference to `tgetstr'
        termsbr.c:(.text+0x10a): undefined reference to `tgetnum'
        termsbr.c:(.text+0x132): undefined reference to `tgetnum'
        termsbr.o: In function `SOprintf':
        termsbr.c:(.text+0x1be): undefined reference to `tputs'
        termsbr.c:(.text+0x1f9): undefined reference to `tputs'        
        termsbr.o: In function `clear_screen':
        termsbr.c:(.text+0x2a5): undefined reference to `tputs'
        collect2: ld returned 1 exit status
        make: *** [mhlist] Error 1

That was fixed by installing ncurses-devel, but we should really be
checking for that at configure time. Also:

        gcc -s -o forw forw.o whatnowproc.o whatnowsbr.o sendsbr.o annosbr.o 
distsbr.o ../config/version.o ../config/config.o ../mts/libmts.a ../sbr/libmh.a 
        ../sbr/libmh.a(fmt_scan.o): In function `fmt_scan':
        fmt_scan.c:(.text+0xb64): undefined reference to `dparsetime'
        collect2: ld returned 1 exit status
        make[1]: *** [forw] Error 1
        make[1]: Leaving directory `/local/home/install/nmh-1.4/uip'
        make: *** [all-recursive] Error 1

I haven't got to the bottom of that one yet. There's a prototype for it
in tws.h and the definition claims to be in dtimep.lex, but it's been
nearly 20 years since I last did anything with lex, and I'm rusty enough
that I can't immediately see what's wrong (or even what's meant to be
happening!)

Tet

_______________________________________________
Nmh-workers mailing list
Nmh-workers@nongnu.org
https://lists.nongnu.org/mailman/listinfo/nmh-workers

<Prev in Thread] Current Thread [Next in Thread>