Galen Henderson | 2 Apr 15:39 2010

Cannon Backend

Hello Paul and all.  I am trying to build the backend for several 
low-end canon printers.  I have gotten the libs to build but get the 
following error when trying to build cngpij.exe.  Any ideas?

ash.exe ../libtool --tag=CC --mode=link gcc -O2 -Wall 
-I../include/cncl -I../inc
lude/misc -I../../libs/paramlist -I../../libs/bjexec -D__EMX__ -DOS2  
-D__ST_MT_
ERRNO__ -g  -Zexe -Zomf -Zmap -Zargs-wild -D__ST_MT_ERRNO__ -o 
cngpij.exe -L../.
../libs/paramlist bjcups.o getipc.o bjutil.o -lpopt -lcups -lparamlist
gcc -O2 -Wall -I../include/cncl -I../include/misc 
-I../../libs/paramlist -I../..
/libs/bjexec -D__EMX__ -DOS2 -D__ST_MT_ERRNO__ -g -Zexe -Zomf -Zmap 
-Zargs-wild
-D__ST_MT_ERRNO__ -o cngpij.exe bjcups.o getipc.o bjutil.o  
-LU:/PROJECTS/cnijfi
lter-common-2.60/libs/paramlist -lpopt -lcups 
U:/PROJECTS/cnijfilter-common-2.60
/libs/paramlist/.libs/paramlist.a
weakld: cannot open library file '/usr/local44/binutils/lib\cups_s.a'.
emxomfld: weak prelinker failed. (rc=8)
make: *** [cngpij.exe] Error 1

--

-- 
Regards,
Galen
------
There are only 10 kinds of people in the world.  Those who understand 
binary and those who don't. 
(Continue reading)

Paul Smedley | 3 Apr 00:20 2010
Picon

Re: Cannon Backend

Hi Galen,

On Fri, 2 Apr 2010 13:39:53 UTC, "Galen Henderson" 
<galen@...> wrote:

> Hello Paul and all.  I am trying to build the backend for several 
> low-end canon printers.  I have gotten the libs to build but get the 
> following error when trying to build cngpij.exe.  Any ideas?
<snip>

> weakld: cannot open library file '/usr/local44/binutils/lib\cups_s.a'.
> emxomfld: weak prelinker failed. (rc=8)
> make: *** [cngpij.exe] Error 1

Quite simple really - it's trying to link against cups.a - which 
apparently doesn't exist in your library path.

The relevant libs can be found in \cups\lib of your CUPS installation.

--

-- 
Cheers,

Paul.
Galen Henderson | 3 Apr 04:07 2010

Re: Cannon Backend

Hi, Paul.  

On Fri, 2 Apr 2010 22:20:04 UTC, "Paul Smedley" 
<pauldespam-PyfQFY4lk+gaax+vNVVPo7pzq4S04n8Q@...> wrote:

> Hi Galen,
> 
> On Fri, 2 Apr 2010 13:39:53 UTC, "Galen Henderson" 
> <galen-hDjLPGB6uWqmb/lYrxT6zmXnswh1EIUO@...> wrote:
> 
> > Hello Paul and all.  I am trying to build the backend for several 
> > low-end canon printers.  I have gotten the libs to build but get the 
> > following error when trying to build cngpij.exe.  Any ideas?
> <snip>
> 
> > weakld: cannot open library file '/usr/local44/binutils/lib\cups_s.a'.
> > emxomfld: weak prelinker failed. (rc=8)
> > make: *** [cngpij.exe] Error 1
> 
> Quite simple really - it's trying to link against cups.a - which 
> apparently doesn't exist in your library path.
> 
> The relevant libs can be found in \cups\lib of your CUPS installation.
> 

Thanks for the reply.
It threw me because it was looking for cups_s.a.  I searched my system
and the net for any reference to it and could not find any.  I thought
that the flag lcups would cause it to link against libcups.a not 
cups.a.  I do not have a cups.a anywhere on my system.
(Continue reading)

Galen Henderson | 3 Apr 05:52 2010

Re: Cannon Backend

Hello again.  I got the libcups problem sorted and I am further in the
compile.  I get the following fatal errors:

weakld: error: Unresolved symbol (UNDEF) '_deflateInit2_'.
weakld: info: The symbol is referenced by:
    U:\tmp\ldconv_libcups_a_22b4bb7019b13e418.lib(file.obj)
weakld: error: Unresolved symbol (UNDEF) '_pthread_key_create'.
weakld: info: The symbol is referenced by:
    U:\tmp\ldconv_libcups_a_22b4bb7019b13e418.lib(globals.obj)
weakld: error: Unresolved symbol (UNDEF) '_pthread_once'.
weakld: info: The symbol is referenced by:
    U:\tmp\ldconv_libcups_a_22b4bb7019b13e418.lib(globals.obj)
weakld: error: Unresolved symbol (UNDEF) '_pthread_mutex_unlock'.
weakld: info: The symbol is referenced by:
    U:\tmp\ldconv_libcups_a_22b4bb7019b13e418.lib(string.obj)
    U:\tmp\ldconv_libcups_a_22b4bb7019b13e418.lib(transcode.obj)
    U:\tmp\ldconv_libcups_a_22b4bb7019b13e418.lib(language.obj)
weakld: error: Unresolved symbol (UNDEF) '_deflateEnd'.
weakld: info: The symbol is referenced by:
    U:\tmp\ldconv_libcups_a_22b4bb7019b13e418.lib(file.obj)
weakld: error: Unresolved symbol (UNDEF) '_inflateInit2_'.
weakld: info: The symbol is referenced by:
    U:\tmp\ldconv_libcups_a_22b4bb7019b13e418.lib(file.obj)
weakld: error: Unresolved symbol (UNDEF) '_crc32'.
weakld: info: The symbol is referenced by:
    U:\tmp\ldconv_libcups_a_22b4bb7019b13e418.lib(file.obj)
weakld: error: Unresolved symbol (UNDEF) '_pthread_setspecific'.
weakld: info: The symbol is referenced by:
    U:\tmp\ldconv_libcups_a_22b4bb7019b13e418.lib(globals.obj)
weakld: error: Unresolved symbol (UNDEF) '_deflate'.
(Continue reading)

Paul Smedley | 3 Apr 10:58 2010
Picon

Re: Cannon Backend

Hi Galen,

On Sat, 3 Apr 2010 03:52:53 UTC, "Galen Henderson" 
<galen@...> wrote:

> Hello again.  I got the libcups problem sorted and I am further in the
> compile.  I get the following fatal errors:

Change the makefile where it says -lcups and make it -lcups -lpthread 
-lz

--

-- 
Cheers,

Paul.
Galen Henderson | 3 Apr 07:52 2010

Re: Cannon Backend

Hi, Paul.  I am making progress but now have another missing 
reference.  It seems that the symbols should be part of pthread (it's 
dec is in the header) but the linker is not seeing it for some reason.
 Here is what I get:

dim iCtr as integer
	
	if len(me.txtItem.text) = 0 then
		call msgbox("Please enter an item to add")
		exit sub
	end if
	
	for iCtr = 0 to me.lstItems.listcount -1
		if ubound(me.lstitems.list(iCtr)) = ubound(me.txtItem.text) then
			call msgbox("The item is already in the list")
			exit sub
		end if
	end if

--

-- 
Regards,
Galen
------
There are only 10 kinds of people in the world.  Those who understand 
binary and those who don't.
Galen Henderson | 3 Apr 07:54 2010

Re: Cannon Backend

OOPS.  Had the wrong code in my clipboard.  I hate that pronews sends 
the message when you accidently hit CTRL-S.  Anyway, here is the 
revelant error:  As always, thanks for any assistance.  :)

make  all-recursive
make[1]: Entering directory 
`U:/Projects/cnijfilter-common-2.60/cngpij'
Making all in cngpij
make[2]: Entering directory 
`U:/Projects/cnijfilter-common-2.60/cngpij/cngpij'
ash.exe ../libtool --tag=CC --mode=link gcc -O2 -Wall 
-I../include/cncl -I../include/misc -I../../libs/paramlist 
-I../../libs/bjexec -D__EMX__ -DOS2  -D__ST_MT_ERRNO__ -g  -Zexe -Zomf
-Zmap -Zargs-wild -D__ST_MT_ERRNO__ -o cngpij.exe 
-L../../libs/paramlist -lpthread bjcups.o getipc.o bjutil.o -lpopt 
-lcups -lparamlist -lpthread -lz 
gcc -O2 -Wall -I../include/cncl -I../include/misc 
-I../../libs/paramlist -I../../libs/bjexec -D__EMX__ -DOS2 
-D__ST_MT_ERRNO__ -g -Zexe -Zomf -Zmap -Zargs-wild -D__ST_MT_ERRNO__ 
-o cngpij.exe bjcups.o getipc.o bjutil.o  
-LU:/PROJECTS/cnijfilter-common-2.60/libs/paramlist -lpopt -lcups 
U:/PROJECTS/cnijfilter-common-2.60/libs/paramlist/.libs/paramlist.a 
-lpthread -lz
weakld: error: Unresolved symbol (UNDEF) '_pthread_key_create'.
weakld: info: The symbol is referenced by:
    U:\tmp\ldconv_libcups_a_57d4bb71c1c1660d0.lib(globals.obj)
weakld: error: Unresolved symbol (UNDEF) '_pthread_setspecific'.
weakld: info: The symbol is referenced by:
    U:\tmp\ldconv_libcups_a_57d4bb71c1c1660d0.lib(globals.obj)
weakld: error: Unresolved symbol (UNDEF) '_pthread_getspecific'.
(Continue reading)

Paul Smedley | 4 Apr 03:20 2010
Picon

Re: Cannon Backend

Hi Galen,

On Sat, 3 Apr 2010 05:54:06 UTC, "Galen Henderson" 
<galen@...> wrote:

> OOPS.  Had the wrong code in my clipboard.  I hate that pronews sends 
> the message when you accidently hit CTRL-S.  Anyway, here is the 
> revelant error:  As always, thanks for any assistance.  :)
> weakld: error: Unresolved symbol (UNDEF) '_pthread_key_create'.
> weakld: error: Unresolved symbol (UNDEF) '_pthread_setspecific'.
> weakld: error: Unresolved symbol (UNDEF) '_pthread_getspecific'.

These exist in my copy of pthreadlib - make sure you have a recent 
version, ie the one at http://web.os2power.com/yuri/PthreadTls

--

-- 
Cheers,

Paul.
Galen Henderson | 4 Apr 01:37 2010

Re: Cannon Backend

Hi Paul.

On Sun, 4 Apr 2010 01:20:19 UTC, "Paul Smedley" 
<pauldespam-PyfQFY4lk+gaax+vNVVPo7pzq4S04n8Q@...> wrote:

> Hi Galen,
> 
> On Sat, 3 Apr 2010 05:54:06 UTC, "Galen Henderson" 
> <galen-hDjLPGB6uWqmb/lYrxT6zmXnswh1EIUO@...> wrote:
> 
> > OOPS.  Had the wrong code in my clipboard.  I hate that pronews sends 
> > the message when you accidently hit CTRL-S.  Anyway, here is the 
> > revelant error:  As always, thanks for any assistance.  :)
> > weakld: error: Unresolved symbol (UNDEF) '_pthread_key_create'.
> > weakld: error: Unresolved symbol (UNDEF) '_pthread_setspecific'.
> > weakld: error: Unresolved symbol (UNDEF) '_pthread_getspecific'.
> 
> These exist in my copy of pthreadlib - make sure you have a recent 
> version, ie the one at http://web.os2power.com/yuri/PthreadTls
> 

Awesome!  That did the trick.  Got a couple of more support progs to 
build and then I can test it on my Mom's cheap canon printer.  Thanks 
again!

--

-- 
Regards,
Galen
------
There are only 10 kinds of people in the world.  Those who understand 
(Continue reading)

Jim O'Connor | 4 Apr 17:06 2010
Picon

Re: Samsung SCX-4200

Paul Smedley <pauldespam <at> ...> writes:

> 
> Hi Jim,
> 
> On Tue, 30 Mar 2010 18:48:48 UTC, Jim O'Connor 
> <joconnor <at> ...> wrote:
> 
> > I have attempted to utilize a Samsung SCX-4200 laser printer in eCS via
> > USB hookup.
> > 
> > So far when I attempt installation with the eCups HowTo instructions and
> > browser
> > I get hung when I attempt to print a testpage.
> > 
> > The following screen presents:
> > 
> > "Filter "rastertoqpdl" for printer "Samsung" not available: No such file
> > or directory."
> 
> Does \cups\lib\cups\filter\rastertoqdpl.exe exist?
> 
> If not, I would try unzipping 
> http://download.smedley.info/splix-1.1.1-os2.zip over the top of your 
> existing installation.
> 

Hi, again, Paul

I found the rastertoqpdl file not in the above splix zip file , but rather
(Continue reading)


Gmane