LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1291|回复: 1

make invalid option,帮忙看下我的问题

[复制链接]
发表于 2009-3-9 20:44:11 | 显示全部楼层 |阅读模式
平台:redhat 5, Oracle 10g


redhat 5是装在虚拟机里面,不知道有没有影响

[ediusr@rhes edinimd]$ gcc -v
Using built-in specs.
Target: i386-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=i386-redhat-linux
Thread model: posix
gcc version 4.1.2 20080704 (Red Hat 4.1.2-44)

编译时出问题了, 我是从别的机器上拷过来的makefile,在那台机器上能用,那个机器是HP UNIX, ORACLE 9i

[ediusr@rhes edinimd]$ make -f edinimd.mk edinimd
make -f /home/ediusr/edi/src/edinimd/edinimd.mk OBJS="edinimd.o /home/ediusr/edi/src/shared/edinutil.o /home/ediusr/edi/src/shared/edutdaem.o /home/ediusr/edi/src/shared/edutipcq.o /home/ediusr/edi/src/shared/edutlog.o /home/ediusr/edi/src/shared/edinauth.o /home/ediusr/edi/src/shared/edineutl.o /home/ediusr/edi/src/shared/edinelog.o /home/ediusr/edi/src/shared/edinsplt.o /home/ediusr/edi/src/shared/edutrr.o" EXE=/home/ediusr/edi/bin/edinimd build LIBHOME="/opt/app/oracle/product/10.2.0/db_1/lib/" PRODLIBHOME="/opt/app/oracle/product/10.2.0/db_1/precomp/lib" CFLAGS= -O2   -fPIC -DPRECOMP -I. -I/opt/app/oracle/product/10.2.0/db_1/precomp/public -I/opt/app/oracle/product/10.2.0/db_1/rdbms/public -I/opt/app/oracle/product/10.2.0/db_1/rdbms/demo -I/opt/app/oracle/product/10.2.0/db_1/plsql/public -I/opt/app/oracle/product/10.2.0/db_1/network/public  -DLINUX -D_GNU_SOURCE -D_LARGEFILE64_SOURCE=1 -D_LARGEFILE_SOURCE=1 -DSLTS_ENABLE -DSLMXMX_ENABLE -D_REENTRANT -DNS_THREADS
make: invalid option -- O
make: invalid option -- 2
make: invalid option -- D
make: invalid option -- P
make: invalid option -- E
make: invalid option -- D
make: invalid option -- D
make: invalid option -- _
make: invalid option -- G
make: invalid option -- N
make: invalid option -- U
make: invalid option -- _
make: invalid option -- O
make: invalid option -- U
make: invalid option -- D
make: invalid option -- _
make: invalid option -- A
make: invalid option -- G
make: invalid option -- E
make: invalid option -- F
make: invalid option -- D
make: invalid option -- _
make: invalid option -- A
make: invalid option -- G
make: invalid option -- E
make: invalid option -- F
make: invalid option -- D
make: invalid option -- T
make: invalid option -- _
make: invalid option -- E
make: invalid option -- N
make: invalid option -- A
make: invalid option -- E
make: invalid option -- D
make: invalid option -- M
make: invalid option -- X
make: invalid option -- M
make: invalid option -- X
make: invalid option -- _
make: invalid option -- E
make: invalid option -- N
make: invalid option -- A
make: invalid option -- E
make: invalid option -- D
make: invalid option -- _
make: invalid option -- E
make: invalid option -- E
make: invalid option -- N
make: invalid option -- T
make: invalid option -- A
make: invalid option -- N
make: invalid option -- T
make: invalid option -- D
make: invalid option -- N
make: invalid option -- _
make: invalid option -- T
make: invalid option -- H
make: invalid option -- E
make: invalid option -- A
make: invalid option -- D
Usage: make [options] [target] ...
Options:
  -b, -m                      Ignored for compatibility.
  -B, --always-make           Unconditionally make all targets.
  -C DIRECTORY, --directory=DIRECTORY
                              Change to DIRECTORY before doing anything.
  -d                          Print lots of debugging information.
  --debug[=FLAGS]             Print various types of debugging information.
  -e, --environment-overrides
                              Environment variables override makefiles.
  -f FILE, --file=FILE, --makefile=FILE
                              Read FILE as a makefile.
  -h, --help                  Print this message and exit.
  -i, --ignore-errors         Ignore errors from commands.
  -I DIRECTORY, --include-dir=DIRECTORY
                              Search DIRECTORY for included makefiles.
  -j [N], --jobs[=N]          Allow N jobs at once; infinite jobs with no arg.
  -k, --keep-going            Keep going when some targets can't be made.
  -l [N], --load-average[=N], --max-load[=N]
                              Don't start multiple jobs unless load is below N.
  -L, --check-symlink-times   Use the latest mtime between symlinks and target.
  -n, --just-print, --dry-run, --recon
                              Don't actually run any commands; just print them.
  -o FILE, --old-file=FILE, --assume-old=FILE
                              Consider FILE to be very old and don't remake it.
  -p, --print-data-base       Print make's internal database.
  -q, --question              Run no commands; exit status says if up to date.
  -r, --no-builtin-rules      Disable the built-in implicit rules.
  -R, --no-builtin-variables  Disable the built-in variable settings.
  -s, --silent, --quiet       Don't echo commands.
  -S, --no-keep-going, --stop
                              Turns off -k.
  -t, --touch                 Touch targets instead of remaking them.
  -v, --version               Print the version number of make and exit.
  -w, --print-directory       Print the current directory.
  --no-print-directory        Turn off -w, even if it was turned on implicitly.
  -W FILE, --what-if=FILE, --new-file=FILE, --assume-new=FILE
                              Consider FILE to be infinitely new.
  --warn-undefined-variables  Warn when an undefined variable is referenced.

This program built for i686-redhat-linux-gnu
Report bugs to <bug-make@gnu.org>
make: *** [edinimd] Error 2
 楼主| 发表于 2009-3-10 09:39:41 | 显示全部楼层
问题已经找到,CFLAG引起的问题
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表