Re: FVWM: compiling fvwm 2.1.7 for xpm support

From: <aaron_at_pcez.com>
Date: Tue, 19 Jan 1999 22:29:51 -0800

Here are the experiments - I hope you can give me a reccomendation based
on them because I don't know what else to do.

Ok here is the first try and output - I don't know what I'm looking at
(I'm a newbie)

$ gcc -v -o foo -g -02 foo.c -lXpm -L/usr/X11R6/lib -lSM -lICE -lX11
Reading specs from /usr/lib/gcc-lib/i486-linux/2.7.2.3/specs
gcc: unrecognized option `-02'
gcc version 2.7.2.3
 /usr/lib/gcc-lib/i486-linux/2.7.2.3/cpp -lang-c -v -undef -D__GNUC__=2
-D__GNUC_MINOR__=7 -D__ELF__ -Dunix -Di386 -Dlinux -D__ELF__ -D__unix__
-D__i386__ -D__linux__ -D__unix -D__i386 -D__linux -Asystem(unix)
-Asystem(posix) -Acpu(i386) -Amachine(i386) -g foo.c /tmp/cca20638
GNU CPP version 2.7.2.3 (i386 Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /usr/i486-linux/include
 /usr/lib/gcc-lib/i486-linux/2.7.2.3/include
 /usr/include
End of search list.
 /usr/lib/gcc-lib/i486-linux/2.7.2.3/cc1 /tmp/cca20638 -quiet -dumpbase
foo.c -g -version -o /tmp/ccb20638
GNU C version 2.7.2.3 (i386 Linux/ELF) compiled by GNU C version
2.7.2.3.
 as -V -Qy /tmp/ccb20638 -o /tmp/ccc20638
GNU assembler version 2.9.1 (i486-linux), using BFD version 2.9.1
 ld -m elf_i386 -dynamic-linker /lib/ld-linux.so.2 -o foo
/usr/lib/crt1.o /usr/lib/crti.o
/usr/lib/gcc-lib/i486-linux/2.7.2.3/crtbegin.o -L/usr/X11R6/lib
-L/usr/lib/gcc-lib/i486-linux/2.7.2.3 /tmp/ccc20638 -lXpm -lSM -lICE
-lX11 -lgcc -lc -lgcc /usr/lib/gcc-lib/i486-linux/2.7.2.3/crtend.o
/usr/lib/crtn.o


and here is the second try :

$ gcc -v -o foo -g -02 foo.c -L/usr/X11R6/lib -lXpm -lSM -lICE -lX11
Reading specs from /usr/lib/gcc-lib/i486-linux/2.7.2.3/specs
gcc: unrecognized option `-02'
gcc version 2.7.2.3
 /usr/lib/gcc-lib/i486-linux/2.7.2.3/cpp -lang-c -v -undef -D__GNUC__=2
-D__GNUC_MINOR__=7 -D__ELF__ -Dunix -Di386 -Dlinux -D__ELF__ -D__unix__
-D__i386__ -D__linux__ -D__unix -D__i386 -D__linux -Asystem(unix)
-Asystem(posix) -Acpu(i386) -Amachine(i386) -g foo.c /tmp/cca20658
GNU CPP version 2.7.2.3 (i386 Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /usr/i486-linux/include
 /usr/lib/gcc-lib/i486-linux/2.7.2.3/include
 /usr/include
End of search list.
 /usr/lib/gcc-lib/i486-linux/2.7.2.3/cc1 /tmp/cca20658 -quiet -dumpbase
foo.c -g -version -o /tmp/ccb20658
GNU C version 2.7.2.3 (i386 Linux/ELF) compiled by GNU C version
2.7.2.3.
 as -V -Qy /tmp/ccb20658 -o /tmp/ccc20658
GNU assembler version 2.9.1 (i486-linux), using BFD version 2.9.1
 ld -m elf_i386 -dynamic-linker /lib/ld-linux.so.2 -o foo
/usr/lib/crt1.o /usr/lib/crti.o
/usr/lib/gcc-lib/i486-linux/2.7.2.3/crtbegin.o -L/usr/X11R6/lib
-L/usr/lib/gcc-lib/i486-linux/2.7.2.3 /tmp/ccc20658 -lXpm -lSM -lICE
-lX11 -lgcc -lc -lgcc /usr/lib/gcc-lib/i486-linux/2.7.2.3/crtend.o
/usr/lib/crtn.o

> Try this; create a foo.c:
>
> char XpmReadFileToXpmImage();
> int main() { XpmReadFileToXpmImage(); return 0; }
>
> Now run the compile with the -v option:
>
> $ gcc -v -o foo -g -O2 foo.c -lXpm -lXpm
> -L/usr/X11R6/lib -lSM -lICE -lX11
>
> and tell us what it prints. Check where it is looking
> for things for
> any oddities. Although this absolutely shouldn't make
> any difference,
> try rearranging things to look a little more "normal":
>
> $ gcc -v -o foo -g -O2 foo.c -L/usr/X11R6/lib -lXpm
> -lSM -lICE -lX11
>
--
Visit the official FVWM web page at <URL: http://fvwm.math.uh.edu/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Tue Jan 19 1999 - 23:39:17 GMT

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:38:02 BST