You are not logged in.

#1 2012-07-13 19:14:56

padremayi
Member
Registered: 2012-06-29
Posts: 49

[SOLVED] Samsung ML-2010R on print server: downgrade CUPS to 1.4.7

On Mac OSX I have version 1.4.7 and my USB laser printer connected to the router print server works fine.
On Arch I have version 1.5.3, same configuration, but the printer doesn't work.

I downgraded CUPS to 1.4.7-4 version but now there's a problem when cupsd starts:

:: Starting cupsd daemon                                                                                         [BUSY]
cupsd: error while loading shared libraries: libgnutls.so.26: cannot open shared object file: No such file or directory

Is there a way to solve it?

Last edited by padremayi (2012-07-15 08:47:08)

Offline

#2 2012-07-14 08:22:07

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: [SOLVED] Samsung ML-2010R on print server: downgrade CUPS to 1.4.7

I take it you simply downgraded to the 1.4.7-4 binary package? That package is built against an older version of lib32-gnutls than the one currently present on your system and hence it fails to start.

So you basically have 2 options here:

1) Try to solve the issues with 1.5.3.
2) Build the 1.4.7-4 package yourself.


Burninate!

Offline

#3 2012-07-14 10:23:46

padremayi
Member
Registered: 2012-06-29
Posts: 49

Re: [SOLVED] Samsung ML-2010R on print server: downgrade CUPS to 1.4.7

Gcool wrote:

I take it you simply downgraded to the 1.4.7-4 binary package? That package is built against an older version of lib32-gnutls than the one currently present on your system and hence it fails to start.

So you basically have 2 options here:

1) Try to solve the issues with 1.5.3.
2) Build the 1.4.7-4 package yourself.

Thanks for your reply.

I recompiled 1.4.7-4 version of cups, but I received this error during the operation:

Compiling phpcups.c...
phpcups.c:43:1: error: unknown type name ‘function_entry’
phpcups.c:45:3: warning: braces around scalar initializer [enabled by default]
phpcups.c:45:3: warning: (near initialization for ‘phpcups_functions[0]’) [enabled by default]
phpcups.c:45:3: warning: initialization makes integer from pointer without a cast [enabled by default]
phpcups.c:45:3: warning: (near initialization for ‘phpcups_functions[0]’) [enabled by default]
phpcups.c:45:3: warning: excess elements in scalar initializer [enabled by default]
phpcups.c:45:3: warning: (near initialization for ‘phpcups_functions[0]’) [enabled by default]
phpcups.c:45:3: warning: excess elements in scalar initializer [enabled by default]
phpcups.c:45:3: warning: (near initialization for ‘phpcups_functions[0]’) [enabled by default]
phpcups.c:45:3: warning: excess elements in scalar initializer [enabled by default]
phpcups.c:45:3: warning: (near initialization for ‘phpcups_functions[0]’) [enabled by default]
phpcups.c:45:3: warning: excess elements in scalar initializer [enabled by default]
phpcups.c:45:3: warning: (near initialization for ‘phpcups_functions[0]’) [enabled by default]
phpcups.c:46:3: warning: braces around scalar initializer [enabled by default]
phpcups.c:46:3: warning: (near initialization for ‘phpcups_functions[1]’) [enabled by default]
phpcups.c:46:3: warning: initialization makes integer from pointer without a cast [enabled by default]
phpcups.c:46:3: warning: (near initialization for ‘phpcups_functions[1]’) [enabled by default]
phpcups.c:46:3: warning: excess elements in scalar initializer [enabled by default]
phpcups.c:46:3: warning: (near initialization for ‘phpcups_functions[1]’) [enabled by default]
phpcups.c:46:3: warning: excess elements in scalar initializer [enabled by default]
phpcups.c:46:3: warning: (near initialization for ‘phpcups_functions[1]’) [enabled by default]
phpcups.c:46:3: warning: excess elements in scalar initializer [enabled by default]
phpcups.c:46:3: warning: (near initialization for ‘phpcups_functions[1]’) [enabled by default]
phpcups.c:46:3: warning: excess elements in scalar initializer [enabled by default]
phpcups.c:46:3: warning: (near initialization for ‘phpcups_functions[1]’) [enabled by default]
phpcups.c:47:3: warning: braces around scalar initializer [enabled by default]
phpcups.c:47:3: warning: (near initialization for ‘phpcups_functions[2]’) [enabled by default]
phpcups.c:47:3: warning: initialization makes integer from pointer without a cast [enabled by default]
phpcups.c:47:3: warning: (near initialization for ‘phpcups_functions[2]’) [enabled by default]
phpcups.c:47:3: warning: excess elements in scalar initializer [enabled by default]
phpcups.c:47:3: warning: (near initialization for ‘phpcups_functions[2]’) [enabled by default]
phpcups.c:47:3: warning: excess elements in scalar initializer [enabled by default]
phpcups.c:47:3: warning: (near initialization for ‘phpcups_functions[2]’) [enabled by default]
phpcups.c:47:3: warning: excess elements in scalar initializer [enabled by default]
phpcups.c:47:3: warning: (near initialization for ‘phpcups_functions[2]’) [enabled by default]
phpcups.c:47:3: warning: excess elements in scalar initializer [enabled by default]
phpcups.c:47:3: warning: (near initialization for ‘phpcups_functions[2]’) [enabled by default]
phpcups.c:48:3: warning: braces around scalar initializer [enabled by default]
phpcups.c:48:3: warning: (near initialization for ‘phpcups_functions[3]’) [enabled by default]
phpcups.c:48:3: warning: initialization makes integer from pointer without a cast [enabled by default]
phpcups.c:48:3: warning: (near initialization for ‘phpcups_functions[3]’) [enabled by default]
phpcups.c:48:3: warning: excess elements in scalar initializer [enabled by default]
phpcups.c:48:3: warning: (near initialization for ‘phpcups_functions[3]’) [enabled by default]
phpcups.c:48:3: warning: excess elements in scalar initializer [enabled by default]
phpcups.c:48:3: warning: (near initialization for ‘phpcups_functions[3]’) [enabled by default]
phpcups.c:48:3: warning: excess elements in scalar initializer [enabled by default]
phpcups.c:48:3: warning: (near initialization for ‘phpcups_functions[3]’) [enabled by default]
phpcups.c:48:3: warning: excess elements in scalar initializer [enabled by default]
phpcups.c:48:3: warning: (near initialization for ‘phpcups_functions[3]’) [enabled by default]
phpcups.c:49:3: warning: braces around scalar initializer [enabled by default]
phpcups.c:49:3: warning: (near initialization for ‘phpcups_functions[4]’) [enabled by default]
phpcups.c:49:3: warning: initialization makes integer from pointer without a cast [enabled by default]
phpcups.c:49:3: warning: (near initialization for ‘phpcups_functions[4]’) [enabled by default]
phpcups.c:49:3: warning: excess elements in scalar initializer [enabled by default]
phpcups.c:49:3: warning: (near initialization for ‘phpcups_functions[4]’) [enabled by default]
phpcups.c:49:3: warning: excess elements in scalar initializer [enabled by default]
phpcups.c:49:3: warning: (near initialization for ‘phpcups_functions[4]’) [enabled by default]
phpcups.c:49:3: warning: excess elements in scalar initializer [enabled by default]
phpcups.c:49:3: warning: (near initialization for ‘phpcups_functions[4]’) [enabled by default]
phpcups.c:49:3: warning: excess elements in scalar initializer [enabled by default]
phpcups.c:49:3: warning: (near initialization for ‘phpcups_functions[4]’) [enabled by default]
phpcups.c:50:3: warning: braces around scalar initializer [enabled by default]
phpcups.c:50:3: warning: (near initialization for ‘phpcups_functions[5]’) [enabled by default]
phpcups.c:50:3: warning: initialization makes integer from pointer without a cast [enabled by default]
phpcups.c:50:3: warning: (near initialization for ‘phpcups_functions[5]’) [enabled by default]
phpcups.c:50:3: warning: excess elements in scalar initializer [enabled by default]
phpcups.c:50:3: warning: (near initialization for ‘phpcups_functions[5]’) [enabled by default]
phpcups.c:50:3: warning: excess elements in scalar initializer [enabled by default]
phpcups.c:50:3: warning: (near initialization for ‘phpcups_functions[5]’) [enabled by default]
phpcups.c:50:3: warning: excess elements in scalar initializer [enabled by default]
phpcups.c:50:3: warning: (near initialization for ‘phpcups_functions[5]’) [enabled by default]
phpcups.c:50:3: warning: excess elements in scalar initializer [enabled by default]
phpcups.c:50:3: warning: (near initialization for ‘phpcups_functions[5]’) [enabled by default]
phpcups.c:51:3: warning: braces around scalar initializer [enabled by default]
phpcups.c:51:3: warning: (near initialization for ‘phpcups_functions[6]’) [enabled by default]
phpcups.c:51:3: warning: initialization makes integer from pointer without a cast [enabled by default]
phpcups.c:51:3: warning: (near initialization for ‘phpcups_functions[6]’) [enabled by default]
phpcups.c:51:3: warning: excess elements in scalar initializer [enabled by default]
phpcups.c:51:3: warning: (near initialization for ‘phpcups_functions[6]’) [enabled by default]
phpcups.c:51:3: warning: excess elements in scalar initializer [enabled by default]
phpcups.c:51:3: warning: (near initialization for ‘phpcups_functions[6]’) [enabled by default]
phpcups.c:51:3: warning: excess elements in scalar initializer [enabled by default]
phpcups.c:51:3: warning: (near initialization for ‘phpcups_functions[6]’) [enabled by default]
phpcups.c:51:3: warning: excess elements in scalar initializer [enabled by default]
phpcups.c:51:3: warning: (near initialization for ‘phpcups_functions[6]’) [enabled by default]
phpcups.c:52:3: warning: braces around scalar initializer [enabled by default]
phpcups.c:52:3: warning: (near initialization for ‘phpcups_functions[7]’) [enabled by default]
phpcups.c:52:3: warning: initialization makes integer from pointer without a cast [enabled by default]
phpcups.c:52:3: warning: (near initialization for ‘phpcups_functions[7]’) [enabled by default]
phpcups.c:52:3: warning: excess elements in scalar initializer [enabled by default]
phpcups.c:52:3: warning: (near initialization for ‘phpcups_functions[7]’) [enabled by default]
phpcups.c:52:3: warning: excess elements in scalar initializer [enabled by default]
phpcups.c:52:3: warning: (near initialization for ‘phpcups_functions[7]’) [enabled by default]
phpcups.c:64:3: warning: initialization from incompatible pointer type [enabled by default]
phpcups.c:64:3: warning: (near initialization for ‘phpcups_module_entry.functions’) [enabled by default]
make[1]: *** [phpcups.o] Errore 1
make: *** [all] Errore 1
==> ERRORE: Si è verificato un errore in build().
    L'operazione sta per essere interrotta...

Any idea?

Offline

#4 2012-07-14 11:12:08

progandy
Member
Registered: 2012-05-17
Posts: 2,143

Re: [SOLVED] Samsung ML-2010R on print server: downgrade CUPS to 1.4.7

This is due to the new PHP5.4. There were some name changes, read this bug for more details and a way to fix it (probably)
https://bugs.php.net/bug.php?id=61479

Offline

#5 2012-07-14 11:50:15

padremayi
Member
Registered: 2012-06-29
Posts: 49

Re: [SOLVED] Samsung ML-2010R on print server: downgrade CUPS to 1.4.7

progandy wrote:

This is due to the new PHP5.4. There were some name changes, read this bug for more details and a way to fix it (probably)
https://bugs.php.net/bug.php?id=61479

According to this post on another linux forum:

This is because the phpcups.c module uses the obsolete "function_entry" attribute for the list of phpcups functions, instead of the currently-used attribute "zend_function_entry". Until recently, the php3_compat.h file defined "function_entry" as "zend_function_entry". Then, the header file went away and the phpcups.c compile became broken.

The fix is to edit the phpcups.c source file and change line 43 to read:

zend_function_entry phpcups_functions[] = 

I changed that line but when I run makepkg -s it recreates original phpcups.c (new source extraction) :-(

Is there a way to continue with compiling operation?

Last edited by padremayi (2012-07-14 15:16:11)

Offline

#6 2012-07-14 12:06:41

progandy
Member
Registered: 2012-05-17
Posts: 2,143

Re: [SOLVED] Samsung ML-2010R on print server: downgrade CUPS to 1.4.7

padremayi wrote:

I changed that line but when I run makepkg -s it recreates original phpcups.o (new source extraction) :-(

Is there a way to continue with compiling operation?

makepkg has the option -e to disable extraction of the source files. Everything must be ready in {PkgDir}/src
Sometimes I don't have the extracted source yet and there is only a slight modification. Then I add the following lines just before make, start the build process and when the message appears I modify the files and continue.

echo "Modify files now and press enter"
read

Last edited by progandy (2012-07-14 12:10:02)

Offline

#7 2012-07-14 12:50:44

padremayi
Member
Registered: 2012-06-29
Posts: 49

Re: [SOLVED] Samsung ML-2010R on print server: downgrade CUPS to 1.4.7

progandy wrote:

Sometimes I don't have the extracted source yet and there is only a slight modification. Then I add the following lines just before make, start the build process and when the message appears I modify the files and continue.

echo "Modify files now and press enter"
read

Wow, many thanks, this method works fine :-)

I installed recompiled version of cups and libcups and now my printer works again!!! ;-)
ATTENTION: cups-filters is required

Last edited by padremayi (2012-07-15 20:34:43)

Offline

Board footer

Powered by FluxBB