You are not logged in.
Pages: 1
Hello guys
Not so long ago, I have successfully made my own repository. I was proud ! So that has lead me to more compiling. I had done a lot of it under mandrake (can't find any good up-to-date rpms) and had a lot of problems too. That is why I have install AL on my system.
But now I want to have the exact driver for my new printer and cups does not have it. I got that error while compiling (in fact, I often had this kind of error with mandrake but never knew where to look for help). If anyone can understand this and explain it to me, it will be very nice.
gcc -DGS_PATH="gs" -DLOCALEDIR="/usr/share/locale" "-DPRINTER_MODEL="Stylus CX4500_4600 Series"" -DSCX4500_4600S -DLIBPATH="/usr/lib/libscx4500_4600s.so" -DRSC_PATH="/etc/pipsrc" -DSPOOL_NAME="scx4500_4600s" -DLOCALE_PATH="/usr/share/locale" -DNAVI_PATH="/usr/bin/ekpnavi" -DDATA_PATH="/usr/local/EPKowa/SCX4500_4600S" -DRULED_PATH="/usr/local/EPKowa/SCX4500_4600S/BID.PRN" -DPATCH_PATH="/usr/local/EPKowa/SCX4500_4600S/PATCH.PRN" -DBAND_PATH="/usr/local/EPKowa/SCX4500_4600S/BAND.PRN" -DCUT_PATH="/usr/local/EPKowa/SCX4500_4600S/CUT.PRN" -D_LPR_DIRECT -fsigned-char -DCUPS_FILTER_PATH="/usr/lib/cups/filter" -g -O2 -Wall -o pipstoprinter pipstoprinter.o debug.o ekpcom.o getstat.o ../libltdl/.libs/libltdlc.al -lcups -lnsl ./.libs/libcutils.al -lpthread -ldl
sed "s,%model_name%,Stylus CX4500_4600 Series,;
s,%bin_name%,pips-scx4500_4600s," filter.tmp > filter-scx4500_4600s
make[2]: Leaving directory `/home/thomas/tmp/pips-scx4500_4600s-2.6.2/src'
Making all in dtrfilter
make[2]: Entering directory `/home/thomas/tmp/pips-scx4500_4600s-2.6.2/dtrfilter'
gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -Wall -c img.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -Wall -c pfpng.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -Wall -c main.c
/bin/sh ../libtool --mode=link gcc -g -O2 -Wall -o dtrfilter img.o pfpng.o main.o -ldl -lm ../lib/libdtr.a -lpthread -ldl
mkdir .libs
gcc -g -O2 -Wall -o dtrfilter img.o pfpng.o main.o -lm ../lib/libdtr.a -lpthread -ldl
../lib/libdtr.a(imgdetect_pips.o)(.text+0xc8): In function `OutputMemAtBmp':
: undefined reference to `__builtin_new'
../lib/libdtr.a(imgdetect_pips.o)(.text+0x3e4): In function `OutputMemAtBmp':
: undefined reference to `__builtin_delete'
../lib/libdtr.a(imgdetect_pips.o)(.text+0x3f4): In function `OutputMemAtBmp':
: undefined reference to `__rethrow'
../lib/libdtr.a(imgdetect.o)(.text+0x39e): In function `FUNC006::~FUNC006(void)':
: undefined reference to `__builtin_delete'
collect2: ld returned 1 exit status
make[2]: *** [dtrfilter] Error 1
make[2]: Leaving directory `/home/thomas/tmp/pips-scx4500_4600s-2.6.2/dtrfilter'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/thomas/tmp/pips-scx4500_4600s-2.6.2'
make: *** [all-recursive-am] Error 2
P.S. ArchLinux is actually more easy to use than Window$ and any "user friendly" ditros and will ever be for one simple reason : It does not take users for idiots and allow them to learn, recognize their mistakes and solve it. Also, a console is not the anti-user devil, my newbie scripts are more powerfull than some commercial softwares. That's the power of THE community!
Offline
C++ programs should be compiled with g++, not gcc. Maybe setting the CC or CXX var to g++ helps, if "gcc" isn't hardcoded in the Makefile.
Offline
How do we do that ?
setting the CC or CXX var to g++
And how can we know that ?
if "gcc" isn't hardcoded in the Makefile
Offline
export CC=g++
grep -i cc Makefile
But it may be better to contact the developer of that driver and tell him that it doesn't compile. Then it can be fixed for everyone.
Offline
I tried what you (i3839) said and it didn't work. gcc really seems to be hardcoded in Makefile and "export CC=g++" just made it worst. Do not waste time with this any more. I will simply contact the developper. It do not seems to be related to ArchLinux, Make or gcc. Thanx for your help !
Offline
Pages: 1