# 만약 인증서 파일의  bundle(중간 인증서 혹은 보조 파일)이 있을 경우, 
# 두 파일을 병합해서 사용한다.
# cat example.com.crt ca_bundle.crt > cert.pem

때늦은 ONVIF Media2 와 전쟁 중 ㅠㅠ

_tr2__GetProfiles reqGetProfiles;
_tr2__GetProfilesResponse resGetProfiles;

int nErr = soap_call___tr2__GetProfiles(psoap, endPoint, NULL, &reqGetProfiles, resGetProfiles);

tr2__GetProfiles()로 얻은

resGetProfiles.Profiles[i]->Configurations는 NULL !!!! 이네 ㅠㅠ

 

돌겠네..눈 빠지겠다 ㅠㅠ

req: subject name is expected to be in the format /type0=value0/type1=value1/type2=... where characters may be escaped by \. This name is not in that for
mat: 'C=KR/ST=SEOUL/L=GEUMCHEON-GU/O=Company/OU=CompanyUnit/CN=localhost'

문제점이 보이나요?
C=KR앞에 / 가 없어서 에러를 토해냅니다

subject를 요로코롬 변경.
=> /C=KR/ST=SEOUL/L=GEUMCHEON-GU/O=Company/OU=CompanyUnit/CN=localhost

 

한참을 찾았네요..식곤증 때문에 찾기 더 힘든듯.
booting할 때, system(strCmd)로 실행했더니, 더더더더더 찾기 힘듬...ㅠㅠ

 

 

 

비주얼스튜디오 엠에프씨 클래스 마법사 띄우는데 계속

exception from hresult:0x80070057 (E_INVALIDARG))

같은 에러가 나면서 비정상인 모습을 보여서 구글님의 힘들 빌려 아래 링크에서 처럼 해봤다.

깔끔하게 띄워진다. 해결에 참고했던 댓글을 퍼왔다 -_-; 쏴리~

 

https://developercommunity.visualstudio.com/content/problem/627637/mfcs-class-wizard-is-broken.html

Delete the .vs folder in Solution Project.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1) c 로 작성되어  library.so 가 있다.

2) c++로 된 소스가 있다.

2)를 만드는데, 1)을 링크한다. 링크할 펑션이 자꾸만 없다고 한다. 종일 힘들다...ㅠㅠ

1)의 헤더파일도 검사해봤는데, 이상없다...

분명히 

#ifdef __cpluscplus

extern "C" {

#endif

....//중략

 

#ifdef __cpluscplus

}

#endif

로 감쌌는데, 말이죠..ㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈ....

으아아아아아....미춰버리겠네...

틀린게 없다고 보이시면 당신도 시간을 킬링할 것임...

vi로 해서 그런가...다른 개발툴은 이런거 잡아주려나...ㅠㅠ...

 

 

 

 

 

 

 

 

 

1. get files httpd, apr, apr-util

wget http://apache.mirror.cdnetworks.com//httpd/httpd-2.4.39.tar.gz

tar xzvf httpd-2.4.39.tar.gz

cd httpd-2.4.39/srclib

wget http://apache.tt.co.kr//apr/apr-1.7.0.tar.gz

tar xzvf apr-1.7.0.tar.gz

ln -s apr-1.7.0 apr

wget http://apache.tt.co.kr//apr/apr-util-1.6.1.tar.gz

tar xzvf apr-util-1.6.1.tar.gz

ln -s apr-util-1.6.1 apr-util

 

2. Perl-Compatible Regular Expressions Library (PCRE) This library is required but not longer bundled with httpd. Download the source code from http://www.pcre.org, or install a Port or Package. If your build system can't find the pcre-config script installed by the PCRE build, point to it using the --with-pcre parameter. On some platforms, you may have to install the corresponding -dev package to allow httpd to build against your installed copy of PCRE.

wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.43.tar.gz

tar xzvf pcre-8.43.tar.gz

cd pcre-8.43

./configure && make

 

3. apache build

cd ../..

./configure --with-included-apr --with-pcre=./srclib/pcre-8.43/pcre-config

configure: summary of build options:

    Server Version: 2.4.39
    Install prefix: /usr/local/apache2
    C compiler:     gcc -std=gnu99
    CFLAGS:          -g -O2 -pthread  
    CPPFLAGS:        -DLINUX -D_REENTRANT -D_GNU_SOURCE  
    LDFLAGS:           
    LIBS:             
    C preprocessor: gcc -E

make

Making all in srclib
make[1]: Entering directory `/work/httpd-2.4.39/srclib'
Making all in apr
make[2]: Entering directory `/work/httpd-2.4.39/srclib/apr-1.7.0'
make[3]: Entering directory `/work/httpd-2.4.39/srclib/apr-1.7.0'
sed 's,^\(location=\).*$,\1installed,' < apr-1-config > apr-config.out
sed -e 's,^\(apr_build.*=\).*$,\1/usr/local/apache2/build,' -e 's,^\(top_build.*=\).*$,\1/usr/local/apache2/build,' < build/apr_rules.mk > build/apr_rules.out
make[3]: Leaving directory `/work/httpd-2.4.39/srclib/apr-1.7.0'
make[2]: Leaving directory `/work/httpd-2.4.39/srclib/apr-1.7.0'
Making all in apr-util
make[2]: Entering directory `/work/httpd-2.4.39/srclib/apr-util-1.6.1'
make[3]: Entering directory `/work/httpd-2.4.39/srclib/apr-util-1.6.1'
/bin/bash /work/httpd-2.4.39/srclib/apr/libtool --silent --mode=compile gcc -g -O2 -pthread   -DHAVE_CONFIG_H  -DLINUX -D_REENTRANT -D_GNU_SOURCE   -I/work/httpd-2.4.39/srclib/apr-util/include -I/work/httpd-2.4.39/srclib/apr-util/include/private  -I/work/httpd-2.4.39/srclib/apr/include    -o xml/apr_xml.lo -c xml/apr_xml.c && touch xml/apr_xml.lo
xml/apr_xml.c:35:19: fatal error: expat.h: No such file or directory
 #include 
                   ^
compilation terminated.
make[3]: *** [xml/apr_xml.lo] Error 1
make[3]: Leaving directory `/work/httpd-2.4.39/srclib/apr-util-1.6.1'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/work/httpd-2.4.39/srclib/apr-util-1.6.1'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/work/httpd-2.4.39/srclib'
make: *** [all-recursive] Error 1

sudo apt-get install libexpat1-dev

make

/work/httpd-2.4.39/srclib/apr/libtool --silent --mode=compile gcc -std=gnu99  -g -O2 -pthread      -DLINUX -D_REENTRANT -D_GNU_SOURCE     -I. -I/work/httpd-2.4.39/os/unix -I/work/httpd-2.4.39/include -I/work/httpd-2.4.39/srclib/apr/include -I/work/httpd-2.4.39/srclib/apr-util/include -I/usr/local/include -I/work/httpd-2.4.39/modules/aaa -I/work/httpd-2.4.39/modules/cache -I/work/httpd-2.4.39/modules/core -I/work/httpd-2.4.39/modules/database -I/work/httpd-2.4.39/modules/filters -I/work/httpd-2.4.39/modules/ldap -I/work/httpd-2.4.39/modules/loggers -I/work/httpd-2.4.39/modules/lua -I/work/httpd-2.4.39/modules/proxy -I/work/httpd-2.4.39/modules/http2 -I/work/httpd-2.4.39/modules/session -I/work/httpd-2.4.39/modules/ssl -I/work/httpd-2.4.39/modules/test -I/work/httpd-2.4.39/server -I/work/httpd-2.4.39/modules/md -I/work/httpd-2.4.39/modules/arch/unix -I/work/httpd-2.4.39/modules/dav/main -I/work/httpd-2.4.39/modules/generators -I/work/httpd-2.4.39/modules/mappers  -prefer-non-pic -static -c util_pcre.c && touch util_pcre.lo
util_pcre.c:58:18: fatal error: pcre.h: No such file or directory
 #include "pcre.h"
                  ^
compilation terminated.
make[2]: *** [util_pcre.lo] Error 1
make[2]: Leaving directory `/work/httpd-2.4.39/server'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/work/httpd-2.4.39/server'
make: *** [all-recursive] Error 1

make CFLAGS=-I`pwd`/srclib/pcre-8.43/

/work/httpd-2.4.39/srclib/apr/libtool --silent --mode=link gcc -std=gnu99  -g -O2 -pthread  -I/work/httpd-2.4.39/srclib/pcre-8.43/       -o htpasswd  htpasswd.lo passwd_common.lo       /work/httpd-2.4.39/srclib/apr-util/libaprutil-1.la /work/httpd-2.4.39/srclib/apr/libapr-1.la -lrt -lcrypt -lpthread -ldl -lcrypt
/work/httpd-2.4.39/srclib/apr-util/.libs/libaprutil-1.so: undefined reference to `XML_GetErrorCode'
/work/httpd-2.4.39/srclib/apr-util/.libs/libaprutil-1.so: undefined reference to `XML_SetEntityDeclHandler'
/work/httpd-2.4.39/srclib/apr-util/.libs/libaprutil-1.so: undefined reference to `XML_ParserCreate'
/work/httpd-2.4.39/srclib/apr-util/.libs/libaprutil-1.so: undefined reference to `XML_SetCharacterDataHandler'
/work/httpd-2.4.39/srclib/apr-util/.libs/libaprutil-1.so: undefined reference to `XML_ParserFree'
/work/httpd-2.4.39/srclib/apr-util/.libs/libaprutil-1.so: undefined reference to `XML_SetUserData'
/work/httpd-2.4.39/srclib/apr-util/.libs/libaprutil-1.so: undefined reference to `XML_StopParser'
/work/httpd-2.4.39/srclib/apr-util/.libs/libaprutil-1.so: undefined reference to `XML_Parse'
/work/httpd-2.4.39/srclib/apr-util/.libs/libaprutil-1.so: undefined reference to `XML_ErrorString'
/work/httpd-2.4.39/srclib/apr-util/.libs/libaprutil-1.so: undefined reference to `XML_SetElementHandler'
collect2: error: ld returned 1 exit status
make[2]: *** [htpasswd] Error 1
make[2]: Leaving directory `/work/httpd-2.4.39/support'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/work/httpd-2.4.39/support'
make: *** [all-recursive] Error 1

cd srclib

wget expat-2.2.7.tar.lz

tar  -xzf expat-2.2.7.tar.lz 

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
tar --lzip -xf expat-2.2.7.tar.lz 

tar (child): lzip: Cannot exec: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
sudo apt install lzip
tar --lzip -xf expat-2.2.7.tar.lz 

cd expat-2.2.7 && ./configure && make

cd ../..

./configure --with-included-apr --with-pcre=./srclib/pcre-8.43/pcre-config --with-expat=./srclib/expat-2.2.7

make

/work/httpd-2.4.39/srclib/apr/libtool --silent --mode=link gcc -std=gnu99  -g -O2 -pthread      -L./srclib/expat-2.2.7/lib   -o libmain.la -static  config.lo log.lo main.lo vhost.lo util.lo util_fcgi.lo util_script.lo util_md5.lo util_cfgtree.lo util_ebcdic.lo util_time.lo connection.lo listen.lo util_mutex.lo mpm_common.lo mpm_unix.lo mpm_fdqueue.lo util_charset.lo util_cookies.lo util_debug.lo util_xml.lo util_filter.lo util_pcre.lo util_regex.lo exports.lo scoreboard.lo error_bucket.lo protocol.lo core.lo request.lo provider.lo eoc_bucket.lo eor_bucket.lo core_filters.lo util_expr_parse.lo util_expr_scan.lo util_expr_eval.lo  
/work/httpd-2.4.39/srclib/apr/libtool: line 7475: cd: ./srclib/expat-2.2.7/lib: No such file or directory
libtool:   error: cannot determine absolute directory name of './srclib/expat-2.2.7/lib'
make[2]: *** [libmain.la] Error 1
make[2]: Leaving directory `/work/httpd-2.4.39/server'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/work/httpd-2.4.39/server'
make: *** [all-recursive] Error 1

./configure --with-included-apr --with-pcre=./srclib/pcre-8.43/pcre-config --with-expat=`pwd`/srclib/expat-2.2.7

make

/work/httpd-2.4.39/srclib/apr/libtool --silent --mode=link gcc -std=gnu99  -g -O2 -pthread      -L/work/httpd-2.4.39/srclib/expat-2.2.7/lib   -o httpd  modules.lo buildmark.o -export-dynamic server/libmain.la modules/core/libmod_so.la modules/http/libmod_http.la server/mpm/event/libevent.la os/unix/libos.la -L/usr/local/lib -lpcre     /work/httpd-2.4.39/srclib/apr-util/libaprutil-1.la -lexpat /work/httpd-2.4.39/srclib/apr/libapr-1.la -lrt -lcrypt -lpthread -ldl 
/usr/bin/ld: cannot find -lpcre
collect2: error: ld returned 1 exit status
make[1]: *** [httpd] Error 1
make[1]: Leaving directory `/work/httpd-2.4.39'
make: *** [all-recursive] Error 1

 

make CFLAGS=-I`pwd`/srclib/pcre-8.43/ LDFLAGS=-L`pwd`/srclib/pcre-8.43

./httpd

lt-httpd: Could not open configuration file /usr/local/apache2/conf/httpd.conf: No such file or directory



-end-

 

 

 

StackOverflow

https://stackoverflow.com/questions/10673306/disable-track-and-trace-in-apache


$ curl -v -X TRACE http://[id]:[password]@webserveraddress

* Rebuilt URL to: http://[id]:[password]@webserveraddress

* Hostname was NOT found in DNS cache

*   Trying webserveraddress...

* Connected to webserveraddress (webserveraddress) port 80 (#0)

* Server auth using Basic with user 'id'

> TRACE / HTTP/1.1

> Authorization: Basic YWRtaW46YWRtaW4=

> User-Agent: curl/7.35.0

> Host: webserveraddress

> Accept: */*

< HTTP/1.1 405 Method Not Allowed

< Date: Thu, 20 Sep 2018 02:40:25 GMT

* Server Apache/2.4.34 (Unix) mod_fcgid/2.3.9 is not blacklisted

< Server: Apache/2.4.34 (Unix) mod_fcgid/2.3.9

< Allow: 

< Content-Length: 316

< Content-Type: text/html; charset=iso-8859-1

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">

<html><head>

<title>405 Method Not Allowed</title>

</head><body>

<h1>Method Not Allowed</h1>

<p>The requested method TRACE is not allowed for the URL /.</p>

<hr>

<address>Apache/2.4.34 (Unix) mod_fcgid/2.3.9 Server at webserveraddress Port 80</address>

</body></html>

* Connection #0 to host webserveraddress left intact

visual studio 제품별 지원 기능 비교

https://www.visualstudio.com/ko/vs/compare/


구성 속성에 보면..

C/C++ => 코드 생성 => 런타임 라이브러리에서..

_AFXDLL 일때는 , MD로 아닐 때는 MT로 ...

는 집어 치우고,

그냥 MT로 하자 ㅅㅂ...

ㅈㄴ 고생스럽네...

딸리는 실력은 하드웨어로 카바하기+_+;;


UWP(Universal Windows Platform)

https://www.linkedin.com/learning/learning-universal-windows-app-development/welcome?autoplay=true


+ Recent posts