attempting to compile mh on solaris x86 2.4

attempting to compile mh on solaris x86 2.4

Post by lu » Wed, 04 Oct 1995 04:00:00



Hello,

I have the following error when attempting to compile mh-6.8.3:

LD_LIBRARY_PATH=../sbr cc -s -R/usr/local/lib -o xali ali.o aliasbr.o
../config/config.o -Bdynamic  -lmh ../mts/libmts.a  ../zotnet/libzot.a
../config/version.o -lnsl -lsocket
cc -s -R/usr/local/lib  ali.o xali  
../config/config.o -Bdynamic  -lmh
../mts/libmts.a  ../zotnet/libzot.a ../config/version.o -lnsl -lsocket -o ali
ld: fatal: file xali: unknown type, unable to process using elf(3E) libraries
ld: fatal: library -lmh: not found
ld: fatal: File processing errors.  No output written to ali
make[1]: *** [ali] Error 1

after

cc -DSYS5 -DSVR4 -DFCNTL -DRENAME -DVSPRINTF -DATTVIBUG -DDBMPWD -DDUMB
-DMORE='"/usr/bin/more"' -DMSGPROT='"0600"' -DMSGID -DRPATHS -DSOCKETS
-DFOLDPROT='"0711"' -DSHADOW -DSYS5DIR -DMHRC -DMHE -DMIME -DSENDMTS
-DSMTP -DSPRINTFTYPE=int -DTYPESIG=void -O -g   -c ali.c
cc: Warning: -O conflicts with -g. -O turned off.

and

make[1]: Entering directory `/usr/local/src/mh-6.8.3/config'
cc -DSYS5 -DSVR4 -DFCNTL -DRENAME -DVSPRINTF -DATTVIBUG -DDBMPWD -DDUMB
-DMORE='"/usr/bin/more"' -DMSGPROT='"0600"' -DMSGID -DRPATHS -DSOCKETS
-DFOLDPROT='"0711"' -DSHADOW -DSYS5DIR -DMHRC -DMHE -DMIME -DSENDMTS
-DSMTP -DSPRINTFTYPE=int -DTYPESIG=void -O -g   -c config.c
cc: Warning: -O conflicts with -g. -O turned off.
MH 6.8.3 #4[UCI]
cc -DSYS5 -DSVR4 -DFCNTL -DRENAME -DVSPRINTF -DATTVIBUG -DDBMPWD -DDUMB
-DMORE='"/usr/bin/more"' -DMSGPROT='"0600"' -DMSGID -DRPATHS -DSOCKETS
-DFOLDPROT='"0711"' -DSHADOW -DSYS5DIR -DMHRC -DMHE -DMIME -DSENDMTS
-DSMTP -DSPRINTFTYPE=int -DTYPESIG=void -O -g   -c version.c
cc: Warning: -O conflicts with -g. -O turned off.

and

ar r libmh.a `lorder add.o adios.o admonish.o addrsbr.o advertise.o
advise.o ambigsw.o atooi.o brkstring.o closefds.o concat.o copy.o
copyip.o cpydata.o cpydgst.o discard.o done.o fdcompare.o gans.o getans.o
getanswer.o getcpy.o help.o fmtcompile.o formataddr.o formatsbr.o
m_atoi.o m_backup.o m_convert.o m_delete.o m_draft.o m_find.o m_fmsg.o
m_foil.o m_getdefs.o m_getfld.o m_getfolder.o m_gmprot.o m_gmsg.o
m_maildir.o m_name.o m_readefs.o m_remsg.o m_replace.o m_scratch.o
m_seq.o m_seqbits.o m_seqflag.o m_seqnew.o m_setcur.o m_setseq.o
m_setvis.o m_sync.o m_tmpfil.o m_update.o makedir.o path.o peekc.o
pidwait.o pidstatus.o printsw.o push.o putenv.o pwd.o refile.o remdir.o
r1bindex.o showfile.o smatch.o sprintb.o ssequal.o strindex.o trimcpy.o
uleq.o uprf.o vfgets.o formatdef.o m_msgdef.o | tsort`
UX tsort: INFORM: cycle in data
        makedir.o
        m_find.o
        m_getdefs.o
        m_readefs.o
        add.o
UX tsort: INFORM: cycle in data
        m_maildir.o
        path.o
        getcpy.o
        adios.o
ar: creating libmh.a
-rw-r--r--   1 root     other     833472 Oct  3 11:39 libmh.a
MH library built normally
mv -f libmh.so zlibmh.so
mv: cannot access libmh.so
make[1]: [libmh.so] Error 2 (ignored)
(cd shared; ld -G -o ../libmh.so -h libmh.so.3.2 add.o adios.o admonish.o
addrsbr.o advertise.o advise.o ambigsw.o atooi.o brkstring.o closefds.o
concat.o copy.o copyip.o cpydata.o cpydgst.o discard.o done.o fdcompare.o
gans.o getans.o getanswer.o getcpy.o help.o fmtcompile.o formataddr.o
formatsbr.o m_atoi.o m_backup.o m_convert.o m_delete.o m_draft.o m_find.o
m_fmsg.o m_foil.o m_getdefs.o m_getfld.o m_getfolder.o m_gmprot.o
m_gmsg.o m_maildir.o m_name.o m_readefs.o m_remsg.o m_replace.o
m_scratch.o m_seq.o m_seqbits.o m_seqflag.o m_seqnew.o m_setcur.o
m_setseq.o m_setvis.o m_sync.o m_tmpfil.o m_update.o makedir.o path.o
peekc.o pidwait.o pidstatus.o printsw.o push.o putenv.o pwd.o refile.o
remdir.o r1bindex.o showfile.o smatch.o sprintb.o ssequal.o strindex.o
trimcpy.o uleq.o uprf.o vfgets.o formatdef.o m_msgdef.o)
ln libmh.so libmh.so.3.2
-rwxr-xr-x   2 root     other     134204 Oct  3 11:39 libmh.so
-rwxr-xr-x   2 root     other     134204 Oct  3 11:39 libmh.so.3.2
MH shared library built normally

and

ar r sendmts.a `lorder hosts.o smail.o | tsort`
ar: creating sendmts.a
rm -f ../libmts.a
cd ..; ln sendmail/sendmts.a libmts.a
rm -f ../llib-lmts
cd .. ; ln sendmail/llib-lsendmail llib-lmts
-rw-r--r--   2 root     other      51164 Oct  3 11:39 sendmts.a
SendMail/SMTP-MTS library built normally

and

ar r libzot.a `lorder mts/mts.o mts/lock.o mts/client.o mf/mf.o
bboards/getbbent.o tws/dtime.o tws/dtimep.o tws/lexstring.o | tsort`
UX tsort: INFORM: cycle in data
        tws/lexstring.o
        tws/dtimep.o
        tws/dtime.o
ar: creating libzot.a
-rw-r--r--   1 root     other     301106 Oct  3 11:39 libzot.a
ZOTnet library built normally

Any help would be appreciated.

kendall shaw


 
 
 

attempting to compile mh on solaris x86 2.4

Post by Casper H.S. Dik - Network Security Engine » Thu, 05 Oct 1995 04:00:00



>Hello,
>I have the following error when attempting to compile mh-6.8.3:
>LD_LIBRARY_PATH=../sbr cc -s -R/usr/local/lib -o xali ali.o aliasbr.o
>../config/config.o -Bdynamic  -lmh ../mts/libmts.a  ../zotnet/libzot.a
>../config/version.o -lnsl -lsocket
>cc -s -R/usr/local/lib  ali.o xali  
>../config/config.o -Bdynamic  -lmh
>../mts/libmts.a  ../zotnet/libzot.a ../config/version.o -lnsl -lsocket -o ali
>ld: fatal: file xali: unknown type, unable to process using elf(3E) libraries
>ld: fatal: library -lmh: not found
>ld: fatal: File processing errors.  No output written to ali

Try /usr/ccs/bin/make, I think there are some problems with GNU make
parsing the MH makefiles.

The command line passed to cc isn't correct: it should pass "-o xali",
instead it passes just "xali".

Casper
--
Expressed in this posting are my opinions.  They are in no way related
to opinions held by my employer, Sun Microsystems.

 
 
 

1. Compiling mh-6.8.3 on Solaris 2.4

Hi,

Does someone know how to compile mh-6.8.3 under Solaris 2.4.
I use the SUNWspro cc but it's always saying me :

ld: fatal: file xali: unknown type, unable to process using elf(3E) libraries
ld: fatal: File processing errors.  No output written to ali

With /usr/ucb/cc and gcc it's the same.

--
% VASSELLERIE Pierre                                                          *
* DASGAL,Observatoire de Paris-Meudon,5,Place J. Janssen,F-92195 Meudon Cedex %
% Tel: (33 1) 45 07 78 49  - Fax: (33 1) 45 07 78 78                          *

2. HD Partitioning - 1GIG DOS, 4+GIG LINUX?

3. Compiling fvwm on Solaris 2.4 x86

4. Howto get the local machine IP in C?

5. Solaris 2.4 (ea1) x86 + gcc 2.4.5 + fixinclude == NO COMPILE !!

6. Tekram DC390

7. gcc-2.6.3 - Solaris 2.4 x86 compile errors

8. Reading is much more interesting than TV (1118/1708)

9. Pre-Compiled GCC for Solaris 2.4 X86

10. Compiling olvwm4 on Solaris x86 2.4

11. Help compiling Apache 1.0.2 with GCC and Solaris 2.4 x86

12. INN - news compile on Solaris 2.4 x86

13. Solaris 2.4 x86: compiling tcl/tk