I'm a newbie on using make files and other GNU make tools. I'm working on this project called axis2/c which uses the automake toolchain. I'm running into this compile error.
Making all in description
/bin/sh ../../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../.. -I../../../include -I../../../src/core/engine -I../../../util/include -I../../../axiom/include -I../../../neethi/include -D_LARGEFILE64_SOURCE -DAXIS2_GUTHTHILA_ENABLED -DAXIS2_JSON_ENABLED -DAXIS2_SVR_MULTI_THREADED -g -O2 -D_LARGEFILE64_SOURCE -ansi -Wall -Wno-implicit-function-declaration -g -D_GNU_SOURCE -DAXIS2_GUTHTHILA_ENABLED -DAXIS2_JSON_ENABLED -DAXIS2_SVR_MULTI_THREADED -MT op.lo -MD -MP -MF .deps/op.Tpo -c -o op.lo op.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../.. -I../../../include -I../../../src/core/engine -I../../../util/include -I../../../axiom/include -I../../../neethi/include -D_LARGEFILE64_SOURCE -DAXIS2_GUTHTHILA_ENABLED -DAXIS2_JSON_ENABLED -DAXIS2_SVR_MULTI_THREADED -g -O2 -D_LARGEFILE64_SOURCE -ansi -Wall -Wno-implicit-function-declaration -g -D_GNU_SOURCE -DAXIS2_GUTHTHILA_ENABLED -DAXIS2_JSON_ENABLED -DAXIS2_SVR_MULTI_THREADED -MT op.lo -MD -MP -MF .deps/op.Tpo -c op.c -fno-common -DPIC -o .libs/op.o
op.c: In function 'axis2_op_get_axis_specific_mep_const':
op.c:783: error: 'AXIS2_MEP_URI_IN_OUT_WSDL2' undeclared (first use in this function)
op.c:783: error: (Each undeclared identifier is reported only once
op.c:783: error: for each function it appears in.)
op.c:788: error: 'AXIS2_MEP_URI_IN_ONLY_WSDL2' undeclared (first use in this function)
op.c:793: error: 'AXIS2_MEP_URI_IN_OPTIONAL_OUT_WSDL2' undeclared (first use in this function)
op.c:798: error: 'AXIS2_MEP_URI_OUT_IN_WSDL2' undeclared (first use in this function)
op.c:803: error: 'AXIS2_MEP_URI_OUT_ONLY_WSDL2' undeclared (first use in this function)
op.c:808: error: 'AXIS2_MEP_URI_OUT_OPTIONAL_IN_WSDL2' undeclared (first use in this function)
op.c:813: error: 'AXIS2_MEP_URI_ROBUST_IN_ONLY_WSDL2' undeclared (first use in this function)
op.c:818: error: 'AXIS2_MEP_URI_ROBUST_OUT_ONLY_WSDL2' undeclared (first use in this function)
make[4]: *** [op.lo] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
These constants are in a file called axis2_const.h, so I went into op.c and specifically included that (This is a redundant steps). But, I'm still getting this compilation error.
Any idea how I would solve this?
Note: Let me know if I need to include more information.
Related
I need to use the erfi function in my C program, so I tried to install the libcerf library, where it is supposed to be contained. I downloaded it, went to the directory and entered ./configure. So far so good. Now when I enter 'make' it gives me the following error:
`localhost:libcerf-1.3 NAME$ make
/Applications/Xcode.app/Contents/Developer/usr/bin/make all-recursive
Making all in lib
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -pedantic -Wall -Werror -g -O2 -MT w_of_z.lo -MD -MP -MF .deps/w_of_z.Tpo -c -o w_of_z.lo w_of_z.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -pedantic -Wall -Werror-g -O2 -MT w_of_z.lo -MD -MP -MF .deps/w_of_z.Tpo -c w_of_z.c -fno-common -DPIC -o .libs/w_of_z.o
w_of_z.c:79:21: error: unused function 'cpolar' [-Werror,-Wunused-function]
static inline cmplx cpolar(double r, double t)
^
1 error generated.
make[2]: *** [w_of_z.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
There seems to be some problem with an unused function. This confuses me since this is the only way known to me to install libraries and I did not really do anything but the ./configure command. Yet it doesnt work. Additionally, I can't help myself with the output I get. I have tried googling it but could not get any further. I am using a Mac. Any help is appreciated.
Thanks a lot!
I'm just trying to build gcc cross-compiler for AIX7.1. Have successfully built binutils-2.25.1, but have problems with building gcc-6.3.0. It successfully compile target all-gcc but fails on compiling all-target-libgcc. I get this error:
In file included from /home/zakkurasov/aix-sysroot/usr/include/sys/inttypes.h:51:0,
from /home/zakkurasov/cross-aix/build-gcc/gcc/include-fixed/sys/types.h:70,
from /home/zakkurasov/cross-aix/build-gcc/gcc/include-fixed/stdio.h:489,
from ../../../../gcc-6.3.0/libgcc/../gcc/tsystem.h:87,
from ../../../../gcc-6.3.0/libgcc/libgcc2.c:27:
/home/zakkurasov/cross-aix/build-gcc/gcc/include/stdint.h:9:26: fatal error: stdint.h: No such file or directory
# include_next <stdint.h>
^
compilation terminated.
Makefile:467: recipe for target '_lshrdi3.o' failed
make[4]: *** [_lshrdi3.o] Error 1
make[4]: Leaving directory '/home/zakkurasov/cross-aix/build-gcc/powerpc-ibm-aix7.1.0.0/pthread/libgcc'
Makefile:1161: recipe for target 'multi-do' failed
make[3]: *** [multi-do] Error 1
make[3]: Leaving directory '/home/zakkurasov/cross-aix/build-gcc/powerpc-ibm-aix7.1.0.0/libgcc'
Makefile:118: recipe for target 'all-multi' failed
make[2]: *** [all-multi] Error 2
make[2]: Leaving directory '/home/zakkurasov/cross-aix/build-gcc/powerpc-ibm-aix7.1.0.0/libgcc'
Makefile:12321: recipe for target 'all-target-libgcc' failed
make[1]: *** [all-target-libgcc] Error 2
make[1]: Leaving directory '/home/zakkurasov/cross-aix/build-gcc'
Makefile:882: recipe for target 'all' failed
make: *** [all] Error 2
Configure with command:
../gcc-6.3.0/configure --prefix=$PREFIX --host=$MACHTYPE --build=$MACHTYPE --target=$TARGET --with-sysroot=$SYSROOT --with-gnu-as --with-gnu-ld --enable-multilib --enable-languages=c,c++ -v
where
$PREFIX=/opt/aix
$TARGET=powerpc-ibm-aix7.1.0.0
$MACHTYPE=x86_64-pc-linux-gnu
$SYSROOT contain includes and libs from AIX 7.1
Sorry, have checked and saw that files in $SYSROOT/usr just broken symbolic links. Replaced it with files, and get new error:
/home/zakkurasov/cross-aix/build-gcc/./gcc/xgcc -B/home/zakkurasov/cross-aix/build-gcc/./gcc/ -B/opt/aix/powerpc-ibm-aix7.1.0.0/bin/ -B/opt/aix/powerpc-ibm-aix7.1.0.0/lib/ -isystem /opt/aix/powerpc-ibm-aix7.1.0.0/include -isystem /opt/aix/powerpc-ibm-aix7.1.0.0/sys-include -g -O2 -maix64 -O2 -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -mlong-double-128 -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -mlong-double-128 -I. -I. -I../../.././gcc -I../../../../gcc-6.3.0/libgcc -I../../../../gcc-6.3.0/libgcc/. -I../../../../gcc-6.3.0/libgcc/../gcc -I../../../../gcc-6.3.0/libgcc/../include -DHAVE_CC_TLS -DUSE_EMUTLS -o _mulsc3.o -MT _mulsc3.o -MD -MP -MF _mulsc3.dep -DL_mulsc3 -c ../../../../gcc-6.3.0/libgcc/libgcc2.c
/tmp/ccuoaSIc.s: Assembler messages:
/tmp/ccuoaSIc.s:545: Error: junk at end of line: `4'
/tmp/ccuoaSIc.s:548: Error: junk at end of line: `1'
Makefile:467: recipe for target '_mulsc3.o' failed
When I tried build my C project using MQTT (MOSQUITTO) I received this error: "
make all
Building file: ../mosquitto/test/msgsps_pub.c
Invoking: GCC C Compiler
gcc -I"/home/procifalus/workspace/C-Cplusplus/protheus/mosquitto" -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"mosquitto/test/msgsps_pub.d" -MT"mosquitto/test/msgsps_pub.d" -o "mosquitto/test/msgsps_pub.o" "../mosquitto/test/msgsps_pub.c"
../mosquitto/test/msgsps_pub.c:9:27: fatal error: msgsps_common.h: No such file or directory
#include <msgsps_common.h>
^
compilation terminated.
mosquitto/test/subdir.mk:45: recipe for target 'mosquitto/test/msgsps_pub.o' failed
make: *** [mosquitto/test/msgsps_pub.o] Error 1".
Could someone help me ?
Installing on CentOS 6.7
Make install getting this error:
make[2]: Entering directory `/root/mlt/src/modules/avformat'
cc -I../.. -DARCH_X86_64 -Wall -DPIC -O2 -pipe -fno-tree-dominator-opts -fno-tree-pre -ffast-math -DUSE_MMX -DUSE_SSE -DUSE_SSE2 -g -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fPIC -pthread -DAVDATADIR=\"/usr/share/ffmpeg/\" -I/usr/include/ffmpeg -I/usr/include/ffmpeg -I/usr/include/ffmpeg -I/usr/include/ffmpeg -I/usr/include/ffmpeg -DFILTERS -DCODECS -DAVDEVICE -c -o filter_avcolour_space.o filter_avcolour_space.c
filter_avcolour_space.c: In function ‘convert_mlt_to_av_cs’:
filter_avcolour_space.c:50: error: ‘AV_PIX_FMT_RGB24’ undeclared (first use in this function)
filter_avcolour_space.c:50: error: (Each undeclared identifier is reported only once
...
filter_avcolour_space.c:323: error: ‘AV_PIX_FMT_RGB32’ undeclared (first use in this function)
make[2]: *** [filter_avcolour_space.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [filter_avdeinterlace.o] Error 1
filter_swscale.c: In function ‘filter_swscale_init’:
filter_swscale.c:179: error: ‘AV_PIX_FMT_RGB32’ undeclared (first use in this function)
make[2]: *** [filter_swscale.o] Error 1
make[1]: *** [install] Error 1
make[1]: Leaving directory `/root/mlt/src/modules'
make: *** [install] Error 1
Please help.
Used repo:
Download the latest nux-dextop-release rpm from
http://li.nux.ro/download/nux/dextop/el6/x86_64/
Install nux-dextop-release rpm:
rpm -Uvh nux-dextop-release*rpm
Install mlt rpm package:
yum install mlt
I'm not very familiar with compiling C code, especially on Windows using MinGW/Msys. Here is my problem. I am attempting to compile an open-source M3u8-segmenter C code for Windows. The open-source examples all deal with linux, but I have successfully compiled the code on my Mac OSX machine without a problem.
In Msys on Windows, the ./configure is successful, but once I do the Make, I get the following error. It appears to related to the signal.h include, but I'm not sure. Any insight would be appreciated.
make[1]: Entering directory `/home/install/m3u8-segmenter-master/tests'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/install/m3u8-segmenter-master/tests'
make[1]: Entering directory `/home/install/m3u8-segmenter-master'
gcc -DPACKAGE_NAME=\"m3u8-segmenter\" -DPACKAGE_TARNAME=\"m3u8-segmenter\" -DPAC
KAGE_VERSION=\"0.3\" -DPACKAGE_STRING=\"m3u8-segmenter\ 0.3\" -DPACKAGE_BUGREPOR
T=\"http://github.com/johnf/m3u8-segmenter/issues\" -DPACKAGE_URL=\"http://m3u8-
segmenter.inodes.org\" -DPACKAGE=\"m3u8-segmenter\" -DVERSION=\"0.3\" -DSTDC_HEA
DERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_
H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -
DHAVE_UNISTD_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SIGNAL_H=1 -DHAVE_GETOPT_H=1 -DHAVE
_STDLIB_H=1 -DHAVE_MALLOC=1 -DHAVE_MEMMOVE=1 -DHAVE_MEMSET=1 -DHAVE_STRRCHR=1 -D
HAVE_STRTOL=1 -I. -Ic:/msys/1.0/local/include -g -O2 -Wall -Wextra -Wdeclar
ation-after-statement -Wpointer-arith -funsigned-char -Werror -Wall -Wstrict-pro
totypes -Wmissing-prototypes -Waggregate-return -Wcast-align -Wcast-qual -Wneste
d-externs -Wshadow -Wbad-function-cast -Wwrite-strings -MT m3u8_segmenter-m3u8-
segmenter.o -MD -MP -MF .deps/m3u8_segmenter-m3u8-segmenter.Tpo -c -o m3u8_segme
nter-m3u8-segmenter.o `test -f 'm3u8-segmenter.c' || echo './'`m3u8-segmenter.c
m3u8-segmenter.c: In function 'main':
m3u8-segmenter.c:212:22: error: storage size of 'act' isn't known
m3u8-segmenter.c:413:5: error: implicit declaration of function 'sigaction' [-We
rror=implicit-function-declaration]
m3u8-segmenter.c:413:5: error: nested extern declaration of 'sigaction' [-Werror
=nested-externs]
m3u8-segmenter.c:212:22: error: unused variable 'act' [-Werror=unused-variable]
cc1.exe: all warnings being treated as errors
make[1]: *** [m3u8_segmenter-m3u8-segmenter.o] Error 1
make[1]: Leaving directory `/home/install/m3u8-segmenter-master'
make: *** [all-recursive] Error 1
To emulate UNIX on Windows, Cygwin is more appropriate than MSys/MinGW as pointed by this post