Summary: | ASTERISK-11482: Compile fails with "`u_int32_t' undeclared" | ||
Reporter: | Bruce McAlister (asgaroth) | Labels: | |
Date Opened: | 2008-02-20 08:35:16.000-0600 | Date Closed: | 2008-02-20 08:39:52.000-0600 |
Priority: | Major | Regression? | No |
Status: | Closed/Complete | Components: | Codecs/codec_dahdi |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ||
Description: | I have been unable to build asterisk 1.4.18 on Solaris x86. The specific error message is as follows: /usr/sfw/bin/gcc -c -D_REENTRANT -pthreads -I../..//include -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3 -include ../..//include/asterisk/autoconfig.h -march=i386 -Wcast-align -DSOLARIS -I../include/solaris-compat -I/opt/ssl/include -I/usr/local/ssl/include -O6 -DSOLARIS -I../../include/solaris-compat '-D__RCSID(x)=' '-D__COPYRIGHT(x)=' '-D__RENAME(x)=' '-D_DIAGASSERT(x)=' -I. np/vis.c -o np/vis.o_a np/vis.c: In function `svis': np/vis.c:206: error: `u_int32_t' undeclared (first use in this function) np/vis.c:206: error: (Each undeclared identifier is reported only once np/vis.c:206: error: for each function it appears in.) np/vis.c:206: error: syntax error before "u_char" np/vis.c:206: error: syntax error before ')' token np/vis.c:206: error: syntax error before "u_char" np/vis.c:206: error: syntax error before ')' token np/vis.c:208: error: syntax error before "u_char" np/vis.c:208: error: syntax error before ')' token np/vis.c:208: error: syntax error before "u_char" np/vis.c:208: error: syntax error before ')' token np/vis.c: In function `strsvis': np/vis.c:246: error: `u_int32_t' undeclared (first use in this function) np/vis.c:246: error: syntax error before "u_char" np/vis.c:246: error: syntax error before ')' token np/vis.c:246: error: syntax error before "u_char" np/vis.c:246: error: syntax error before ')' token np/vis.c:249: error: syntax error before "u_char" np/vis.c:249: error: syntax error before ')' token np/vis.c:249: error: syntax error before "u_char" np/vis.c:249: error: syntax error before ')' token np/vis.c: In function `strsvisx': np/vis.c:276: error: `u_int32_t' undeclared (first use in this function) np/vis.c:276: error: syntax error before "u_char" np/vis.c:276: error: syntax error before ')' token np/vis.c:276: error: syntax error before "u_char" np/vis.c:276: error: syntax error before ')' token np/vis.c:281: error: syntax error before "u_char" np/vis.c:281: error: syntax error before ')' token np/vis.c:281: error: syntax error before "u_char" np/vis.c:281: error: syntax error before ')' token np/vis.c: In function `vis': np/vis.c:304: error: `u_int32_t' undeclared (first use in this function) np/vis.c:304: error: syntax error before "u_char" np/vis.c:304: error: syntax error before ')' token np/vis.c:304: error: syntax error before "u_char" np/vis.c:304: error: syntax error before ')' token np/vis.c:306: error: syntax error before "u_char" np/vis.c:306: error: syntax error before ')' token np/vis.c:306: error: syntax error before "u_char" np/vis.c:306: error: syntax error before ')' token gmake[2]: *** [np/vis.o_a] Error 1 gmake[1]: *** [editline/libedit.a] Error 2 gmake: *** [main] Error 2 ****** STEPS TO REPRODUCE ****** [1] Extract 1.4.18 (or 1.4.17) sources [2] Apply patch to fig bug 0012022. [3] Setup the following environment variables: PATH=/usr/bin:/usr/sbin:/usr/sfw/bin:/usr/ccs/bin:/opt/sfw/bin export PATH PKG_CONFIG='/usr/bin/pkg-config' CC='/usr/sfw/bin/gcc' CXX='/usr/sfw/bin/g++' export CC CXX PKG_CONFIG [4] Run "./configure" [5] Run "gmake" | ||
Comments: | By: Jason Parker (jparker) 2008-02-20 08:39:51.000-0600 Closing, as this is a duplicate. See ASTERISK-11340. |