'프로그램 사용'에 해당되는 글 2190건

  1. 2016.06.23 svn list 에러 generic failure
  2. 2016.06.22 gcc -fPIC
  3. 2016.06.21 svn 콘솔 에디터(주석)
  4. 2016.06.21 svn relocate / ubuntu
  5. 2016.06.16 make order
  6. 2016.06.16 cups.. 드라이버 경로 print$
  7. 2016.06.08 make /bin/sh: 1: pushd: not found 에러
  8. 2016.06.08 make 기본셸
  9. 2016.06.04 makefile := = 차이점
  10. 2016.06.03 virtual box 하드 디스크 용량 늘리기

이번에 호스트 네임을 변경했더니 별별 이상한 일이 발생..

아무튼.. /etc/hostname 만 바꿀게 아니라 /etc/hosts에서도 바꿔줘야 하는구나...


$ svn list svn://192.168.10.12/repos -v

svn: generic failure



$ sudo vi /etc/hosts

127.0.0.1 hostname


[링크 : http://stackoverflow.com/questions/8634466/svn-generic-failure]

'프로그램 사용 > Version Control' 카테고리의 다른 글

tortoiseSVN에서 svn+ssh 사용하기  (0) 2016.07.31
svn+ssh 실패 -_-  (0) 2016.07.29
svn 콘솔 에디터(주석)  (0) 2016.06.21
svn relocate / ubuntu  (0) 2016.06.21
svn merge... 두근두근  (6) 2016.02.17
Posted by 구차니
프로그램 사용/gcc2016. 6. 22. 12:25

-f 니까 플래그고

PIC(Position Independent Code)

[링크 : http://devanix.tistory.com/198]


-shared 하면 자동으로 -fpic나 -fPIC가 설정되는건 아닌듯?

아무튼. .x86에는 연관이 없지만, 다른 아키텍쳐에서는 GOT 크기 문제로 -fpic와 -fPIC가 다르게 적용된다고 한다.

-shared

Produce a shared object which can then be linked with other objects to form an executable. Not all systems support this option. For predictable results, you must also specify the same set of options that were used to generate code (-fpic, -fPIC, or model suboptions) when you specify this option.[1]


-fpic

Generate position-independent code ( PIC ) suitable for use in a shared library, if supported for the target machine. Such code accesses all constant addresses through a global offset table ( GOT ). The dynamic loader resolves the GOT entries when the program starts (the dynamic loader is not part of GCC ; it is part of the operating system). If the GOT size for the linked executable exceeds a machine-specific maximum size, you get an error message from the linker indicating that -fpic does not work; in that case, recompile with -fPIC instead. (These maximums are 8k on the SPARC and 32k on the m68k and RS/6000 . The 386 has no such limit.)

Position-independent code requires special support, and therefore works only on certain machines. For the 386, GCC supports PIC for System V but not for the Sun 386i. Code generated for the IBM RS/6000 is always position-independent.


When this flag is set, the macros "__pic__" and "__PIC__" are defined to 1.


-fPIC

If supported for the target machine, emit position-independent code, suitable for dynamic linking and avoiding any limit on the size of the global offset table. This option makes a difference on the m68k, PowerPC and SPARC .

Position-independent code requires special support, and therefore works only on certain machines.


When this flag is set, the macros "__pic__" and "__PIC__" are defined to 2.


-fpie

-fPIE

These options are similar to -fpic and -fPIC, but generated position independent code can be only linked into executables. Usually these options are used when -pie GCC option will be used during linking.

-fpie and -fPIE both define the macros "__pie__" and "__PIE__". The macros have the value 1 for -fpie and 2 for -fPIE. 

[링크 : http://linux.die.net/man/1/gcc]




Pseudo-assembly:


PIC: This would work whether the code was at address 100 or 1000

100: COMPARE REG1, REG2

101: JUMP_IF_EQUAL CURRENT+10

...

111: NOP


Non-PIC: This will only work if the code is at address 100

100: COMPARE REG1, REG2

101: JUMP_IF_EQUAL 111

...

111: NOP


If your code is compiled with -fPIC, it's suitable for inclusion in a library - the library must be able to be relocated from its preferred location in memory to another address, there could be another already loaded library at the address your library prefers. 

[링크 : http://stackoverflow.com/questions/5311515/gcc-fpic-option?rq=1]

'프로그램 사용 > gcc' 카테고리의 다른 글

gcc 매크로 확장 define stringfication  (0) 2017.01.02
gcc make CFLAGS=-D 관련  (0) 2016.11.17
gcc dependency .d 파일?  (0) 2016.03.28
gcc -M -MM  (0) 2015.12.17
gcc 초기화 관련  (0) 2015.10.21
Posted by 구차니

ubuntu 12.04 LTS의 경우

기본 값이 비어 있어서 편집기가 제대로 실행하질 못해서 바보 되는 듯..

기본 값은 editor로 되어 있는데.. ubuntu 특성인진 모르겠으나.

svn에서 무언가 엉겨서 nano나 editor로 연결되면서 부터 바보가 됨

vi로 설정해주어도 화면 출력이 이상하게 엉겨서 먹통이 되어버리니 주의..


$ cat ~/.bashrc

export SVN_EDITOR=/usr/bin/vim


$ cat $HOME/.subversion/config

### This file configures various client-side behaviors.

###

### The commented-out examples below are intended to demonstrate

### how to use this file.


### Section for authentication and authorization customizations.

[auth]

### Set password stores used by Subversion. They should be

### delimited by spaces or commas. The order of values determines

### the order in which password stores are used.

### Valid password stores:

###   gnome-keyring        (Unix-like systems)

###   kwallet              (Unix-like systems)

###   keychain             (Mac OS X)

###   windows-cryptoapi    (Windows)

# password-stores = gnome-keyring,kwallet

###

### Set KWallet wallet used by Subversion. If empty or unset,

### then the default network wallet will be used.

# kwallet-wallet =

###

### Include PID (Process ID) in Subversion application name when

### using KWallet. It defaults to 'no'.

# kwallet-svn-application-name-with-pid = yes

###

### The rest of this section in this file has been deprecated.

### Both 'store-passwords' and 'store-auth-creds' can now be

### specified in the 'servers' file in your config directory.

### Anything specified in this section is overridden by settings

### specified in the 'servers' file.

###

### Set store-passwords to 'no' to avoid storing passwords in the

### auth/ area of your config directory.  It defaults to 'yes',

### but Subversion will never save your password to disk in

### plaintext unless you tell it to (see the 'servers' file).

### Note that this option only prevents saving of *new* passwords;

### it doesn't invalidate existing passwords.  (To do that, remove

### the cache files by hand as described in the Subversion book.)

# store-passwords = no

### Set store-auth-creds to 'no' to avoid storing any subversion

### credentials in the auth/ area of your config directory.

### It defaults to 'yes'.  Note that this option only prevents

### saving of *new* credentials;  it doesn't invalidate existing

### caches.  (To do that, remove the cache files by hand.)

# store-auth-creds = no


### Section for configuring external helper applications.

[helpers]

### Set editor-cmd to the command used to invoke your text editor.

###   This will override the environment variables that Subversion

###   examines by default to find this information ($EDITOR,

###   et al).

# editor-cmd = editor (vi, emacs, notepad, etc.)

### Set diff-cmd to the absolute path of your 'diff' program.

###   This will override the compile-time default, which is to use

###   Subversion's internal diff implementation.

# diff-cmd = diff_program (diff, gdiff, etc.)

### Set diff3-cmd to the absolute path of your 'diff3' program.

###   This will override the compile-time default, which is to use

###   Subversion's internal diff3 implementation.

# diff3-cmd = diff3_program (diff3, gdiff3, etc.)

### Set diff3-has-program-arg to 'yes' if your 'diff3' program

###   accepts the '--diff-program' option.

# diff3-has-program-arg = [yes | no]

### Set merge-tool-cmd to the command used to invoke your external

### merging tool of choice. Subversion will pass 4 arguments to

### the specified command: base theirs mine merged

# merge-tool-cmd = merge_command


### Section for configuring tunnel agents.

[tunnels]

### Configure svn protocol tunnel schemes here.  By default, only

### the 'ssh' scheme is defined.  You can define other schemes to

### be used with 'svn+scheme://hostname/path' URLs.  A scheme

### definition is simply a command, optionally prefixed by an

### environment variable name which can override the command if it

### is defined.  The command (or environment variable) may contain

### arguments, using standard shell quoting for arguments with

### spaces.  The command will be invoked as:

###   <command> <hostname> svnserve -t

### (If the URL includes a username, then the hostname will be

### passed to the tunnel agent as <user>@<hostname>.)  If the

### built-in ssh scheme were not predefined, it could be defined

### as:

# ssh = $SVN_SSH ssh -q -o ControlMaster=no

### If you wanted to define a new 'rsh' scheme, to be used with

### 'svn+rsh:' URLs, you could do so as follows:

# rsh = rsh

### Or, if you wanted to specify a full path and arguments:

# rsh = /path/to/rsh -l myusername

### On Windows, if you are specifying a full path to a command,

### use a forward slash (/) or a paired backslash (\\) as the

### path separator.  A single backslash will be treated as an

### escape for the following character.


### Section for configuring miscelleneous Subversion options.

[miscellany]

### Set global-ignores to a set of whitespace-delimited globs

### which Subversion will ignore in its 'status' output, and

### while importing or adding files and directories.

### '*' matches leading dots, e.g. '*.rej' matches '.foo.rej'.

# global-ignores = *.o *.lo *.la *.al .libs *.so *.so.[0-9]* *.a *.pyc *.pyo

#   *.rej *~ #*# .#* .*.swp .DS_Store

### Set log-encoding to the default encoding for log messages

# log-encoding = latin1

### Set use-commit-times to make checkout/update/switch/revert

### put last-committed timestamps on every file touched.

# use-commit-times = yes

### Set no-unlock to prevent 'svn commit' from automatically

### releasing locks on files.

# no-unlock = yes

### Set mime-types-file to a MIME type registry file, used to

### provide hints to Subversion's MIME type auto-detection

### algorithm.

# mime-types-file = /path/to/mime.types

### Set preserved-conflict-file-exts to a whitespace-delimited

### list of patterns matching file extensions which should be

### preserved in generated conflict file names.  By default,

### conflict files use custom extensions.

# preserved-conflict-file-exts = doc ppt xls od?

### Set enable-auto-props to 'yes' to enable automatic properties

### for 'svn add' and 'svn import', it defaults to 'no'.

### Automatic properties are defined in the section 'auto-props'.

# enable-auto-props = yes

### Set interactive-conflicts to 'no' to disable interactive

### conflict resolution prompting.  It defaults to 'yes'.

# interactive-conflicts = no


### Section for configuring automatic properties.

[auto-props]

### The format of the entries is:

###   file-name-pattern = propname[=value][;propname[=value]...]

### The file-name-pattern can contain wildcards (such as '*' and

### '?').  All entries which match (case-insensitively) will be

### applied to the file.  Note that auto-props functionality

### must be enabled, which is typically done by setting the

### 'enable-auto-props' option.

# *.c = svn:eol-style=native

# *.cpp = svn:eol-style=native

# *.h = svn:keywords=Author Date Id Rev URL;svn:eol-style=native

# *.dsp = svn:eol-style=CRLF

# *.dsw = svn:eol-style=CRLF

# *.sh = svn:eol-style=native;svn:executable

# *.txt = svn:eol-style=native;svn:keywords=Author Date Id Rev URL;

# *.png = svn:mime-type=image/png

# *.jpg = svn:mime-type=image/jpeg

# Makefile = svn:eol-style=native 


[링크 : http://stackoverflow.com/questions/6506653/change-svn-message-editor]



+

SVN_EDITOR=gedit 하거나 하면 우회는 가능하지만..

아무튼 STDOUT tty 문제로 보이긴 한데.. 해결책은 없는건가..

svn과 검색을 해도 도통안나옴..


Vim: Warning: Output is not to a terminal

[링크 : http://stackoverflow.com/questions/19290604/how-to-set-svnignore-without-opening-an-editor]

[링크 : http://stackoverflow.com/questions/1690274/how-do-i-launch-an-editor-from-a-shell-script]


[링크 : http://stackoverflow.com/../getting-error-trying-to-commit-using-subversion-on-mac-os-x]

'프로그램 사용 > Version Control' 카테고리의 다른 글

svn+ssh 실패 -_-  (0) 2016.07.29
svn list 에러 generic failure  (0) 2016.06.23
svn relocate / ubuntu  (0) 2016.06.21
svn merge... 두근두근  (6) 2016.02.17
tortoiseSVN merge 페이지 번역  (0) 2015.12.02
Posted by 구차니

ubuntu 10.04 LTS 사용중이라 그런지 버전이 낮아서 svn relocate가 안보인다!

$ svn help

사용법: svn <subcommand> [options] [args]

Subversion 명령행 클라이언트 버전 1.6.17.

'svn help <subcommand>'를 사용하여 특정 명령에 대하여 도움말을 얻으십시오.

'svn --version'를 사용하여 버전과 원격접속 모듈에 대한 정보를 얻으십시오.

 또는 'svn --version --quiet'를 사용하여 버전 정보만 얻으십시오.


대부분의 부속 명령어들은 재귀적으로 수행하면서 파일이나 디렉토리를 인자로 취합니다.

명령들에 인자가 주어지지 않으면 현재 디렉토리를 포함하여 재귀적으로 수행하게

됩니다.


가능한 명령:

   add

   blame (praise, annotate, ann)

   cat

   changelist (cl)

   checkout (co)

   cleanup

   commit (ci)

   copy (cp)

   delete (del, remove, rm)

   diff (di)

   export

   help (?, h)

   import

   info

   list (ls)

   lock

   log

   merge

   mergeinfo

   mkdir

   move (mv, rename, ren)

   propdel (pdel, pd)

   propedit (pedit, pe)

   propget (pget, pg)

   proplist (plist, pl)

   propset (pset, ps)

   resolve

   resolved

   revert

   status (stat, st)

   switch (sw)

   unlock

   update (up)


Subversion은 형상관리를 위한 도구입니다.

더 상세한 정보를 위해서는 http://subversion.tigris.org/ 를 방문하세요. 


$ svn --version

svn, 버젼 1.6.17 (r1128011)

    Aug 20 2015, 15:17:45에 컴파일 됨



svn switch --relocate http://old-url https://new-url

[링크 : http://stackoverflow.com/questions/1396368/how-can-i-switch-a-subversion-repository-using-only-command-line-tools]

'프로그램 사용 > Version Control' 카테고리의 다른 글

svn list 에러 generic failure  (0) 2016.06.23
svn 콘솔 에디터(주석)  (0) 2016.06.21
svn merge... 두근두근  (6) 2016.02.17
tortoiseSVN merge 페이지 번역  (0) 2015.12.02
svnadmin dump로 덤프/합치기  (0) 2015.11.26
Posted by 구차니

pipeline 다음 룰은 순서대로

이걸 이용하면 병렬처리 룰도 간단해질지도?



release:

    $(MAKE) clean

    $(MAKE) test1


release: | clean test1

[링크 : http://stackoverflow.com/questions/8496135/parallel-makefile-require-depency-ordering]


Occasionally, however, you have a situation where you want to impose a specific ordering on the rules to be invoked without forcing the target to be updated if one of those rules is executed. In that case, you want to define order-only prerequisites. Order-only prerequisites can be specified by placing a pipe symbol (|) in the prerequisites list: any prerequisites to the left of the pipe symbol are normal; any prerequisites to the right are order-only:


targets : normal-prerequisites | order-only-prerequisites

[링크 : https://www.gnu.org/software/make/manual/html_node/Prerequisite-Types.html]


'프로그램 사용 > make, configure' 카테고리의 다른 글

cmake 옵션 확인  (0) 2021.01.20
cmake 빌드 에러시  (0) 2021.01.19
make /bin/sh: 1: pushd: not found 에러  (0) 2016.06.08
make 기본셸  (0) 2016.06.08
makefile := = 차이점  (0) 2016.06.04
Posted by 구차니
프로그램 사용/CUPS2016. 6. 16. 14:43

프린트 설치할때 경로 따로 잡고드라이버 설치하기 귀찮은데

그거 해결법...

근데 해결이 안되네 ㅠㅠ

시간 가지고 천천히 읽어 봐야지... 후...


아무튼..

cups로 해두고 print$ 에 W32X86 이나 W40에 넣으면 된다는데

영 안되네..


[링크 : https://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/CUPS-printing.html]

Posted by 구차니

가장 간편(?)한 건...

$ sudo ln -s /bin/bash /bin/sh 


그런데 이렇게 건드리는게 옳은건가...


[링크 : https://forums.xilinx.com/.../Trouble-configuring-petalinux-2013-10-bin-sh-1-pushd-not-found/td-p/399843]

'프로그램 사용 > make, configure' 카테고리의 다른 글

cmake 빌드 에러시  (0) 2021.01.19
make order  (0) 2016.06.16
make 기본셸  (0) 2016.06.08
makefile := = 차이점  (0) 2016.06.04
make 의존성 파일?  (0) 2015.12.18
Posted by 구차니

SHELL 변수로 설정되지 않으면 /bin/sh가 되므로

bash에서 지원하는 popd pushd 등이 봉인..

환경 변수 등을 끌어 가지 않으므로.. 결론은 Makefile 별로 설정을 해주어야 한다.



5.3.2 Choosing the Shell

The program used as the shell is taken from the variable SHELL. If this variable is not set in your makefile, the program /bin/sh is used as the shell. The argument(s) passed to the shell are taken from the variable .SHELLFLAGS. The default value of .SHELLFLAGS is -c normally, or -ec in POSIX-conforming mode.

Unlike most variables, the variable SHELL is never set from the environment. This is because the SHELL environment variable is used to specify your personal choice of shell program for interactive use. It would be very bad for personal choices like this to affect the functioning of makefiles. See Variables from the Environment.

Furthermore, when you do set SHELL in your makefile that value is not exported in the environment to recipe lines that make invokes. Instead, the value inherited from the user’s environment, if any, is exported. You can override this behavior by explicitly exporting SHELL (see Communicating Variables to a Sub-make), forcing it to be passed in the environment to recipe lines.

[링크 : https://www.gnu.org/software/make/manual/html_node/Choosing-the-Shell.html]

    [링크 : https://www.gnu.org/software/make/manual/html_node/Variables_002fRecursion.html]

'프로그램 사용 > make, configure' 카테고리의 다른 글

make order  (0) 2016.06.16
make /bin/sh: 1: pushd: not found 에러  (0) 2016.06.08
makefile := = 차이점  (0) 2016.06.04
make 의존성 파일?  (0) 2015.12.18
make 암시적 룰  (0) 2015.12.18
Posted by 구차니


 In short, variables defined with := are expanded once, but variables defined with = are expanded whenever they are used.

[링크 : http://stackoverflow.com/.../whats-the-difference-between-and-in-makefile]


Simply expanded variables are defined by lines using ‘:=’ or ‘::=’ (see Setting Variables). Both forms are equivalent in GNU make; however only the ‘::=’ form is described by the POSIX standard (support for ‘::=’ was added to the POSIX standard in 2012, so older versions of make won’t accept this form either).

[링크 : http://www.gnu.org/software/make/manual/html_node/Flavors.html#Flavors]


https://www.gnu.org/software/make/manual/html_node/Setting.html#Setting


'프로그램 사용 > make, configure' 카테고리의 다른 글

make /bin/sh: 1: pushd: not found 에러  (0) 2016.06.08
make 기본셸  (0) 2016.06.08
make 의존성 파일?  (0) 2015.12.18
make 암시적 룰  (0) 2015.12.18
make jobserver unavailable  (0) 2015.12.16
Posted by 구차니

80기가로 늘리기


C:\Program Files\Oracle\VirtualBox\VBoxManage.exe modifyhd image.vdi --resize 81920


[링크 : http://www.howtogeek.com/.../how-to-enlarge-a-virtual-machines-disk-in-virtualbox-or-vmware/]


+ 2020.09.11

고정일경우 에러가 나서 되지 않으니

clonehd를 이용해서 동적으로 복사한후 늘리면 된다.


[링크 : https://m.blog.naver.com/r2adne/220239005520]

[링크 : https://stackoverflow.com/questions/50772789/]

Posted by 구차니