- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Error while compling using gcc
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-05-2006 04:51 PM
тАО02-05-2006 04:51 PM
Error while compling using gcc
I am working on hpux 11.11 using gcc 64 bit compiler. I am getting following error.
gcc: +O2: No such file or directory
gcc: +z: No such file or directory
How to resolve this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-05-2006 04:54 PM
тАО02-05-2006 04:54 PM
Re: Error while compling using gcc
Can you post a detailed information rather than this? its very hard to figure why it complains about No such or Direcroty. Just copy & paste full make output where it stopped.
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-05-2006 04:59 PM
тАО02-05-2006 04:59 PM
Re: Error while compling using gcc
I am trying to build libmilter in Sendmail utility.
I replaced cc with /opt/hp-gcc64/bin/gcc as it is a 64 bit compiler
This is the detail of the results?
# sh Build -c install
Configuration: pfx=, os=HP-UX, rel=11.11, rbase=11, rroot=11.11, arch=9000-898, sfx=, variant=optimized
Clearing out existing /sendmail-8.13.5/obj.HP-UX.11.11.9000-898/libmilter tree
Using M4=/usr/bin/m4
Creating /sendmail-8.13.5/obj.HP-UX.11.11.9000-898/libmilter using /sendmail-8.13.5/devtools/OS/HP-UX.11.x
Making dependencies in /sendmail-8.13.5/obj.HP-UX.11.11.9000-898/libmilter
Making in /sendmail-8.13.5/obj.HP-UX.11.11.9000-898/libmilter
if [ ! -d /usr/include/libmilter ]; then mkdir -p /usr/include/libmilter; else :; fi
../../devtools/bin/install.sh -c -o root -g bin -m 0444 ../../include/libmilter/mfapi.h /usr/include/libmilter/mfapi.h
../../devtools/bin/install.sh -c -o root -g bin -m 0444 ../../include/libmilter/mfdef.h /usr/include/libmilter/mfdef.h
ln -f -s ../../libsm/errstring.c .
ln -f -s ../../libsm/strl.c .
rm -f sm_os.h
ln -f -s ../../include/sm/os/sm_os_hp.h sm_os.h
/opt/hp-gcc64/bin/gcc -Ae +O2 -I. -I../../sendmail -I../../include -DV4FS -DHPUX11 -DNOT_SENDMAIL -Dsm_snprintf=snprintf -D_POSIX_C_SOURCE=199506L +z -DXP_MT -c main.c
gcc: +O2: No such file or directory
gcc: +z: No such file or directory
*** Error exit code 1
Stop.
#
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-05-2006 06:16 PM
тАО02-05-2006 06:16 PM
Re: Error while compling using gcc
Which version of GCC 64 bit you have installed ? Are you using sendmail 64bit version ? Just make everything is in sync.
# file /usr/sbin/sendmail
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-05-2006 06:20 PM
тАО02-05-2006 06:20 PM
Re: Error while compling using gcc
file /usr/sbin/sendmail
/usr/sbin/sendmail: PA-RISC1.1 shared executable dynamically linked
Thereis is no clear information about bits.
Whereis can i get 64 bit sendmail.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-05-2006 06:21 PM
тАО02-05-2006 06:21 PM
Re: Error while compling using gcc
What you see is HP C-ANSI-C options passed to GNU gcc, and they are not recognozed.
What you need to do is reconfigure
# env CC=gcc configure ...
or edit Makefile by hand, and change
+z -> -fpic
+Z -> -fPIC
+O2 -> -O2
-Ae ->
Enjoy, Have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-05-2006 06:25 PM
тАО02-05-2006 06:25 PM
Re: Error while compling using gcc
http://www.freeos.com/articles/3185/
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-05-2006 07:35 PM
тАО02-05-2006 07:35 PM
Re: Error while compling using gcc
By execting following command:
./configure --prefix=/opt/iexpress/clamav --enable-milter --with-tcpwrapper --without-libcurl --disable-gethostbyname_r
Checking for mi_stop in -lmilter... no
configure: error: Cannot find libmilter
So how to solve this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-05-2006 07:40 PM
тАО02-05-2006 07:40 PM
Re: Error while compling using gcc
Checking for mi_stop in -lmilter... no
configure: error: Cannot find libmilter
Configure script is looking for libmilter in SHLIB_PATH. Do you have that installed ? Or, you can export # export SHLIB_PATH=/usr/local/lib:$SHLIB_PATH
-Arun