[SOLVED] Having problem building/installing Sendmail 8.14.2 by using Solaris 8 x86
Solaris / OpenSolarisThis forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Having problem building/installing Sendmail 8.14.2 by using Solaris 8 x86
hello professional,
I am having difficulties in building or installing sendmail 8.14.2:
when I execute the command:
$sh Build
it gave the output:
Code:
# sh Build
Build: ^M: not found
Build: ^M: not found
Making all in:
/var/tmp/sendmail-8.14.2/libsm
./Build: ^M: not found
./Build: ^M: not found
../devtools/bin/Build: ^M: not found
../devtools/bin/Build: ^M: not found
../devtools/bin/Build: ^M: not found
../devtools/bin/Build: ^M: not found
../devtools/bin/Build: ^M: not found
../devtools/bin/Build: ^M: not found
../devtools/bin/Build: syntz error at line 65: 'in^M' unexpected
Making all in:
/var/tmp/sendmail-8.14.2/libsmutil
./Build: ^M: not found
./Build: ^M: not found
../devtools/bin/Build: ^M: not found
../devtools/bin/Build: ^M: not found
../devtools/bin/Build: ^M: not found
../devtools/bin/Build: ^M: not found
../devtools/bin/Build: ^M: not found
../devtools/bin/Build: ^M: not found
../devtools/bin/Build: syntz error at line 65: 'in^M' unexpected
Making all in:
/var/tmp/sendmail-8.14.2/libsmdb
./Build: ^M: not found
./Build: ^M: not found
../devtools/bin/Build: ^M: not found
../devtools/bin/Build: ^M: not found
../devtools/bin/Build: ^M: not found
../devtools/bin/Build: ^M: not found
../devtools/bin/Build: ^M: not found
../devtools/bin/Build: ^M: not found
../devtools/bin/Build: syntz error at line 65: 'in^M' unexpected
Making all in:
/var/tmp/sendmail-8.14.2/sendmail
./Build: ^M: not found
./Build: ^M: not found
../devtools/bin/Build: ^M: not found
../devtools/bin/Build: ^M: not found
../devtools/bin/Build: ^M: not found
../devtools/bin/Build: ^M: not found
../devtools/bin/Build: ^M: not found
../devtools/bin/Build: ^M: not found
../devtools/bin/Build: syntz error at line 65: 'in^M' unexpected
Making all in:
/var/tmp/sendmail-8.14.2/editmap
./Build: ^M: not found
./Build: ^M: not found
./Build: ../devtools/bin/Build: cannot execute
Making all in:
/var/tmp/sendmail-8.14.2/mail.local
./Build: ^M: not found
./Build: ^M: not found
./Build: ../devtools/bin/Build: cannot execute
Making all in:
/var/tmp/sendmail-8.14.2/mailstats
./Build: ^M: not found
./Build: ^M: not found
./Build: ../devtools/bin/Build: cannot execute
Making all in:
/var/tmp/sendmail-8.14.2/makemap
./Build: ^M: not found
./Build: ^M: not found
./Build: ../devtools/bin/Build: cannot execute
Making all in:
/var/tmp/sendmail-8.14.2/praliases
./Build: ^M: not found
./Build: ^M: not found
./Build: ../devtools/bin/Build: cannot execute
Making all in:
/var/tmp/sendmail-8.14.2/rmail
./Build: ^M: not found
./Build: ^M: not found
./Build: ../devtools/bin/Build: cannot execute
Making all in:
/var/tmp/sendmail-8.14.2/smrsh
./Build: ^M: not found
./Build: ^M: not found
./Build: ../devtools/bin/Build: cannot execute
Making all in:
/var/tmp/sendmail-8.14.2/vacation
./Build: ^M: not found
./Build: ^M: not found
./Build: ../devtools/bin/Build: cannot execute
make: *** [all] Error 1
btw, for your information I have remove the sendmail package that came with the Solaris 8.
I hope someone able to provide guidance or help me.
That ^M makes me think that you have edited the Build script using a DOS editor, that introduced those control characters at the end of each line. You can run
and now I have encounter another problem, whereby when I have executed the '$ sh Build' command. It will generated a set of errors enclosed as below:
Code:
/usr/local/lib/gcc/i386-pc-solaris2.8/3.4.6/include/sys/type.h :387 : error: syntax error before "uint8_t"
...
...
...
/usr/local/lib/gcc/i386-pc-solaris2.8/3.4.6/include/sys/type.h :569: 24: sys/select.h: No such file or directory
assert.c : 19 : 20: signal.h: No such file or directory
....
....
....
....
....
make: *** [all] Error 2
the errors above, which are generated during the build was very long.......
But I have already installed gcc 3.4.6 package from sun freeware before running the mentioned build command. Therefore I would like to ask is there anything else, which I might have missed anything out?
/usr/local/lib/gcc/i386-pc-solaris2.8/3.4.6/include/sys/type.h :569: 24: sys/select.h: No such file or directory
assert.c : 19 : 20: signal.h: No such file or directory
This is strange. Do these header files exist?
Code:
ls -l /usr/include/signal.h
ls -l /usr/include/sys/select.h
I guess you've edited something in the various Build scripts, so it looks in the wrong place for the system include files.
You can delete the directory created after extracted the sendmail sources and start from the beginning. BTW since you're going to build sendmail from source do it with the latest version 8.14.3. I've just tested on a Solaris 9 Sparc box (with gcc 3.4.6) and it compiles without a hitch.
Just follow the instructions in the INSTALL file, i.e:
ls -l /usr/include/signal.h
ls -l /usr/include/sys/select.h
I guess you've edited something in the various Build scripts, so it looks in the wrong place for the system include files.
You can delete the directory created after extracted the sendmail sources and start from the beginning. BTW since you're going to build sendmail from source do it with the latest version 8.14.3. I've just tested on a Solaris 9 Sparc box (with gcc 3.4.6) and it compiles without a hitch.
Just follow the instructions in the INSTALL file, i.e:
Code:
cd sendmail-8.14.3/sendmail
sh ./Build
I think I have missed out some of the packages that required by the gcc to compile/build sendmail 8.14.2.....
and I am not sure what and where to get this packages....
According to Sun freeware, gcc depends on libiconv and libint. I guess you couldn't install gcc if you missed those 2 packages.
Anyway if you cannot install sendmail from source, you can use the blastwave package.
Your build was successful since ./Build finished without errors. The output you got means that you haven't uninstall the sendmail that came with solaris. Use pkgrm to remove it and then you should build a sendmail.cf and install the whole thing. Read the INSTALL file to see what you need to do.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.