Jump to content
  • 0
mrlongshen

Segmentation fault

Question

my compiling is success.

im using centos 6.3 

but my map-server not run automatically.

i try run manual. its show segmentation fault.

someone please help me. 

i try to add the afk.c and skillerrormessages plugin.

please help me..

i have follow step on wiki.

here is mine

 

 

this is makefile

 

COMMON_H = ../common/HPMi.h ../common/cbasetypes.hPLUGINS = sample db2sql afk SkillErrorMessagesCC = gccexport CC#####################################################################.PHONY : all $(PLUGINS) sample db2sql afk SkillErrorMessages clean helpall: $(PLUGINS)sample: sample.sodb2sql: db2sql.soafk: afk.soSkillErrorMessages: SkillErrorMessages.soclean:	@echo "	CLEAN	plugins"	@rm -rf *.ohelp:	@echo "possible targets are $(PLUGINS:%='%') 'all' 'clean' 'help'"	@echo "'sample'   - sample plugin"	@echo "'help'     - outputs this message"#####################################################################%.so: %.c $(COMMON_H)	@echo "	CC	$<"	@$(CC) -DPACKAGE_NAME="" -DPACKAGE_TARNAME="" -DPACKAGE_VERSION="" -DPACKAGE_STRING="" -DPACKAGE_BUGREPORT="" -DPACKAGE_URL="" -DSTDC_HEADERS=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 -D__EXTENSIONS__=1 -D_ALL_SOURCE=1 -D_GNU_SOURCE=1 -D_POSIX_PTHREAD_SEMANTICS=1 -D_TANDEM_SOURCE=1 -DHAVE_USELOCALE=1 -DHAVE_NEWLOCALE=1 -DHAVE_FREELOCALE=1 -DHAVE_XLOCALE_H=1 -DHAVE_LIBZ=1 -DHAVE_LIBPTHREAD=1 -DHAVE_LIBPTHREAD=1 -DHAVE_LIBPTHREAD=1 -DHAVE_LIBPTHREAD=1 -DHAVE_LIBPTHREAD=1 -DHAVE_LIBPTHREAD=1 -DHAVE_LIBPTHREAD=1 -g -O2 -DMAXCONN=16384 -pipe -ffast-math -Wall -Wno-sign-compare -march=i686 -DHAS_TLS -Wno-unused-parameter -Wno-pointer-sign -Wno-switch -fno-strict-aliasing -DHAVE_SETRLIMIT -DHAVE_STRNLEN -Wno-unused -Wno-parentheses -DHAVE_MONOTONIC_CLOCK  -I../common -I/usr/include  -march=i686 -L/usr/lib -lpthread  -shared -o ../../plugins/$@ $<

 

this is makefile.in

 

COMMON_H = ../common/HPMi.h ../common/cbasetypes.hPLUGINS = sample db2sql afk SkillErrorMessages@SET_MAKE@CC = @CC@export CC#####################################################################.PHONY : all $(PLUGINS) sample db2sql afk SkillErrorMessages clean helpall: $(PLUGINS)sample: sample@DLLEXT@db2sql: db2sql@DLLEXT@afk: afk@DLLEXT@SkillErrorMessages: SkillErrorMessages@DLLEXT@clean:	@echo "	CLEAN	plugins"	@rm -rf *.ohelp:	@echo "possible targets are $(PLUGINS:%='%') 'all' 'clean' 'help'"	@echo "'sample'   - sample plugin"	@echo "'help'     - outputs this message"#####################################################################%@DLLEXT@: %.c $(COMMON_H)	@echo "	CC	$<"	@$(CC) @DEFS@ @CFLAGS@ @CPPFLAGS@ @LDFLAGS@ @SOFLAGS@ -o ../../plugins/$@ $<

 

Share this post


Link to post
Share on other sites

12 answers to this question

Recommended Posts

  • 0
COMPILER_PATH=/usr/libexec/gcc/i686-redhat-linux/4.4.7/:/usr/libexec/gcc/i686-redhat-linux/4.4.7/:/usr/libexec/gcc/i686-redhat-linux/:/usr/lib/gcc/i686-redhat-linux/4.4.7/:/usr/lib/gcc/i686-redhat-linux/:/usr/libexec/gcc/i686-redhat-linux/4.4.7/:/usr/libexec/gcc/i686-redhat-linux/:/usr/lib/gcc/i686-redhat-linux/4.4.7/:/usr/lib/gcc/i686-redhat-linux/
LIBRARY_PATH=/usr/lib/gcc/i686-redhat-linux/4.4.7/:/usr/lib/gcc/i686-redhat-linux/4.4.7/:/usr/lib/gcc/i686-redhat-linux/4.4.7/../../../:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='-E' '-v' '-mtune=generic' '-march=i686'

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.