1824971 Members
3264 Online
109678 Solutions
New Discussion юеВ

gcc parse error

 

gcc parse error

Hello I have this message!
/var/plug/nagios-plugins-1.4.0alpha1/=> make
No suffix list.
make all-recursive
No suffix list.
Making all in intl
/var/plug/nagios-plugins-1.4.0alpha1/intl
Making all in lib
/var/plug/nagios-plugins-1.4.0alpha1/lib
rm -f libnagiosplug.a
ar cru libnagiosplug.a getopt.o getopt1.o snprintf.o fsusage.o mountlis
t.o xmalloc.o realloc.o error.o getloadavg.o
ranlib libnagiosplug.a
Making all in plugins
/var/plug/nagios-plugins-1.4.0alpha1/plugins
if gcc -DLOCALEDIR=\"/usr/local/nagios/share/locale\" -DHAVE_CONFIG_H -I
. -I. -I.. -I.. -I../lib -I../intl -I/usr/local/include/include -g -O2 -MT
check_disk.o -MD -MP -MF ".deps/check_disk.Tpo" \
-c -o check_disk.o `test -f 'check_disk.c' || echo './'`check_disk.c;
\
then mv -f ".deps/check_disk.Tpo" ".deps/check_disk.Po"; \
fi
In file included from common.h:74,
from check_disk.c:24:
/usr/include/sys/socket.h:439: parse error before "sendfile"
/usr/include/sys/socket.h:440: parse error before "bsize_t"
/usr/include/sys/socket.h:441: parse error before "sendpath"
/usr/include/sys/socket.h:442: parse error before "bsize_t"
*** Error exit code 1

Stop.
*** Error exit code 1

Any can help about this??? my server is D280 with gcc version 3.2 !!
8 REPLIES 8
H.Merijn Brand (procura
Honored Contributor

Re: gcc parse error

I bet you are working on a 11i (11.11) machine with a gcc installed that was built for 11.00. Am I right? If so, get a version that was created for 11i

I have several on my ITRC site. Installation instructions on the site

My HP ITRC site pages can be found at

Singapore https://www.beepz.com/personal/merijn/
Rotterdam http://www.cmve.net/~merijn/
Seattle http://ww.hpux.ws/merijn/

Enjoy, have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn

Re: gcc parse error

Hello procura,

i'm bzip2 your gcc but i need help in install! sorry my bad english but i'm brazilian man. :)
H.Merijn Brand (procura
Honored Contributor

Re: gcc parse error

As from the page:

For 64bit compiler (http://www.cmve.net/~mbrand/gcc-3.3.2-64-11.11-elf64.tbz):

# cd /usr/local
# bzip2 -d < /var/tmp/gcc-3.3.2-64-11.00-elf64.tbz | tar xf -

For 32bit compiler (http://www.cmve.net/~mbrand/gcc-3.3.2-32-11.11-hppa2.0.tbz):

# cd /usr/local
# bzip2 -d < /var/tmp/gcc-3.3.2-32-11.11-hppa2.0.tbz | tar xf -

If you don't have bzip, it's there too:
http://www.cmve.net/~mbrand/bzip2-1.0.2-pa2.0

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn

Re: gcc parse error

ok, but i have this
drwxrwxrwx 2 203 200 8192 Dec 9 14:32 bin
drwxrwxrwx 4 203 200 96 Dec 9 14:33 hppa64-hp-hpux11.11
drwxrwxrwx 5 203 200 8192 Dec 9 14:33 include
drwxrwxrwx 2 203 200 8192 Dec 9 14:33 info
drwxrwxrwx 4 203 200 8192 Dec 9 14:33 lib
drwxrwxrwx 6 203 200 96 Dec 9 14:33 man
drwxrwxrwx 2 203 200 96 Feb 27 2002 share

and this
/var/pa20_64/bin/=> ls
addr2line gld64
ar gprof
as hppa64-hp-hpux11.11-c++
c++ hppa64-hp-hpux11.11-g++
c++64 hppa64-hp-hpux11.11-gcc
c++filt hppa64-hp-hpux11.11-gcc-3.3.2
cpp ld
g++ libpng-config
g++64 libpng12-config
gas nm
gas64 objcopy
gcc objdump
gcc64 ranlib
gccbug readelf
gcov size
gdb strings
gld strip

how can i use the gcc? copy for /usr/local/bin? this folder?
H.Merijn Brand (procura
Honored Contributor

Re: gcc parse error

Noooo! :)

Again from the site:

64bit:
And add /usr/local/pa20_64/bin to your $PATH, preferably in /etc/PATH.

32bit:
And add /usr/local/pa20_32/bin to your $PATH, preferably in /etc/PATH.

And it *needs* to find /usr/local/pa20_64, so if you install it in /var/pa20_64, you will have to

# ln -s /var/pa20_64 /usr/local/pa20_64

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn

Re: gcc parse error

Hello!

i just type make in new compiler and i receive this message

In file included from common.h:171,
from check_disk.c:24:
../lib/gettext.h:26:22: libintl.h: No such file or directory
check_disk.c: In function `main':
check_disk.c:164: warning: passing arg 1 of `usage' makes pointer from integer w
ithout a cast
check_disk.c:216: warning: passing arg 2 of `asprintf' makes pointer from intege
r without a cast
check_disk.c:230: warning: passing arg 2 of `asprintf' makes pointer from intege
r without a cast
........

and my Makefile:
CATOBJEXT = .gmo
CC = /usr/local/pa20_64/bin/hppa64-hp-hpux11.11-gcc-3.3.2 <--i add your gcc here is ok?
CCDEPMODE = depmode=gcc3

sorry my bad english :)
H.Merijn Brand (procura
Honored Contributor

Re: gcc parse error

1. You should install gettext and intl from the porting center:

http://hpux.connect.org.uk/hppd/hpux/Gnu/gettext-0.12/
http://hpux.connect.org.uk/hppd/hpux/Development/Libraries/libiconv-1.9/

2. You probably should use the 32bit compiler. (Are you *sure* you want/need the 64bit compiler?)

3. You should use the short name

CC = /usr/local/pa20_64/bin/gcc

4. You should asign points to all of the above messages

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Wai Kiong Choy
Advisor

Re: gcc parse error

I had the some errors. If you are using GCC compiled for HPUX 11.00 then you are out-of-luck.

Use the HPUX 11i version of GCC. Download it from http://h21007.www2.hp.com/dspp/tech/tech_TechSoftwareDetailPage_IDX/1,1703,547,00.html