This is the mail archive of the
xconq7@sourceware.org
mailing list for the Xconq project.
Re: help compiling xconq 7.5 on Fedora Core 5
hi,
thx mark.. same error.
rm -f xconq xconq.exe tkconq tkconq.exe
gcc -o xconq -g -O2 -DUNIX -I. -I./.. -I./../kernel -I./../missing
-I/usr/include/tk8.4 -L tkunix.o ./libtkui.a ./libtkimf.a
../kernel/libconq.a ../kernel/libconqlow.a ../missing/libmissing.a
-lXext -lXmu -lX11 -L/usr/lib -ltcl8.4 -L/usr/lib -ltk8.4 -L/usr/lib
-lX11 -ldl -lieee -lm -ldl
/usr/lib/gcc/i386-redhat-linux/4.1.0/../../../crt1.o: In function
`_start': undefined reference to `main'
collect2: ld returned 1 exit status
make[1]: *** [xconq] Error 1
make[1]: Leaving directory `/usr/src/redhat/SOURCES/xconq-7.5.0/tcltk'
make: *** [all-tkconq] Error 2
[root@sun xconq-7.5.0]#
however if i manually run the command
[root@sun tcltk]# gcc -o xconq -g -O2 -DUNIX -I. -I./.. -I./../kernel
-I./../missing -I/usr/include/tk8.4 tkunix.o ./libtkui.a ./libtkimf.a
../kernel/libconq.a ../kernel/libconqlow.a ../missing/libmissing.a
-lXext -lXmu -lX11 -L/usr/lib -ltcl8.4 -L/usr/lib -ltk8.4 -L/usr/lib
-lX11 -ldl -lieee -lm -ldl
[root@sun tcltk]# ls -l xconq
-rwxr-xr-x 1 root root 3563562 Oct 12 17:04 xconq
[root@sun tcltk]#
I do get the executable.. so the faulty thing is the -L (flag) before
the tkunix.o .. looks like a makefile bug ?
any pointers on how to fix this ?
thx.
yashesh bhatia.
On 10/12/06, Mark Flacy <mflacy1@comcast.net> wrote:
On 2006.10.12 05:50, Yashesh Bhatia wrote:
> Hi,
>
> I'm trying to compile xconq 7.5 on Fedore Core 5 and am getting
> some error messages. I'd appreciate any help, tip, pointers, feedback
> on it.
How about performing a "make clean" followed by a "make"?
>
> Thanks.
>
> Yashesh
>
>
> Details
> -----------
> OS - FC5
> [root@sun xconq]# uname -a
> Linux foobar 2.6.15-1.2054_FC5 #1 Tue Mar 14 15:48:33 EST 2006 i686
> i686 i386 GNU/Linux
>
> Other s/w installed on FC5 box
> tcl-devel-8.4.12-4.i386.rpm
> tk-devel-8.4.12-1.2.i386.rpm
>
> Xconq RPM - xconq-7.5.0-0pre.0.20040523.src.rpm
>
> on doing rpm -i we get tarball
> /usr/src/redhat/SOURCES/xconq-7.5.0.tar.gz
>
> untarred it and did
> $./configure
> (successful)
>
> when try to build it using make i get an error
> $ make
> make[1]: Entering directory `/usr/src/redhat/SOURCES/xconq-7.5.0/tcltk'
> make[1]: Nothing to be done for `all-libs'.
> make[1]: Leaving directory `/usr/src/redhat/SOURCES/xconq-7.5.0/tcltk'
> make[1]: Entering directory `/usr/src/redhat/SOURCES/xconq-7.5.0/tcltk'
> (cd ../kernel && make libconq.a)
> make[2]: Entering directory `/usr/src/redhat/SOURCES/xconq-7.5.0/kernel'
> make[2]: `libconq.a' is up to date.
> make[2]: Leaving directory `/usr/src/redhat/SOURCES/xconq-7.5.0/kernel'
> (cd ../kernel && make libconqlow.a)
> make[2]: Entering directory `/usr/src/redhat/SOURCES/xconq-7.5.0/kernel'
> (cd ../missing && make libmissing.a)
> make[3]: Entering directory `/usr/src/redhat/SOURCES/xconq-7.5.0/missing'
> (cd snprintf && make snprintf-objs)
> make[4]: Entering directory
> `/usr/src/redhat/SOURCES/xconq-7.5.0/missing/snprintf'
> make[4]: Nothing to be done for `snprintf-objs'.
> make[4]: Leaving directory
> `/usr/src/redhat/SOURCES/xconq-7.5.0/missing/snprintf'
> (cd util && make ALL_CFLAGS="-g -O2 -DUNIX -I. " util-objs)
> make[4]: Entering directory `/usr/src/redhat/SOURCES/xconq-7.5.0/missing/util'
> make[4]: Nothing to be done for `util-objs'.
> make[4]: Leaving directory `/usr/src/redhat/SOURCES/xconq-7.5.0/missing/util'
> rm -f libmissing.a
> ar rcu libmissing.a snprintf/snprintf.o util/timestuff.o
> ranlib libmissing.a
> make[3]: Leaving directory `/usr/src/redhat/SOURCES/xconq-7.5.0/missing'
> rm -f libconqlow.a
> ar rcu libconqlow.a imf.o gif.o lisp.o util.o unix.o socket.o
> ranlib libconqlow.a
> make[2]: Leaving directory `/usr/src/redhat/SOURCES/xconq-7.5.0/kernel'
> rm -f xconq xconq.exe tkconq tkconq.exe
> gcc -o xconq -g -O2 -DUNIX -I. -I./.. -I./../kernel -I./../missing
> -I/usr/include/tk8.4 -L tkunix.o ./libtkui.a ./libtkimf.a
> ../kernel/libconq.a ../kernel/libconqlow.a ../missing/libmissing.a
> -lXext -lXmu -lX11 -L/usr/lib -ltcl8.4 -L/usr/lib -ltk8.4 -L/usr/lib
> -lX11 -ldl -lieee -lm -ldl
> /usr/lib/gcc/i386-redhat-linux/4.1.0/../../../crt1.o: In function
> `_start': undefined reference to `main'
> collect2: ld returned 1 exit status
> make[1]: *** [xconq] Error 1
> make[1]: Leaving directory `/usr/src/redhat/SOURCES/xconq-7.5.0/tcltk'
> make: *** [all-tkconq] Error 2
> [root@sun xconq-7.5.0]#
>