2011/2/2 Gyurmo <[email protected]>:
> What can I do with this problem? I have php, or haven't?
> I wait for your fast answer.

Read the output of the problem and fix the problem. Looks obvious to me.

> Linking phpcups.so...
> gcc -L../cups -shared -Wl,--out-implib,phpcups.so -o phpcups.so phpcups.o 
> -L../../cups -lcups -lssl -lcrypto -lpthread -lcrypt -lssp

You cannot use the importlibrary and shared library with the same name.
In cygwin we have a naming convention. shared lib: cygphpcups.dll,
importlib: libphpcups.dll.a

> Creating library file: phpcups.sophpcups.o: In function 
> `zif_cups_last_error_string':
> /usr/src/cups/cups-1.4.6-1/build/scripting/php/phpcups.c:396: undefined 
> reference to `__estrndup'

More libs are missing. php for example.

> phpcups.o: In function `zif_cups_get_jobs':
> /usr/src/cups/cups-1.4.6-1/build/scripting/php/phpcups.c:325: undefined 
> reference to `_zend_wrong_param_count'
> /usr/src/cups/cups-1.4.6-1/build/scripting/php/phpcups.c:323: undefined 
> reference to `_zend_parse_parameters'
> /usr/src/cups/cups-1.4.6-1/build/scripting/php/phpcups.c:336: undefined 
> reference to `__array_init'
> /usr/src/cups/cups-1.4.6-1/build/scripting/php/phpcups.c:340: undefined 
> reference to `__emalloc'
> /usr/src/cups/cups-1.4.6-1/build/scripting/php/phpcups.c:342: undefined 
> reference to `__object_init'
> /usr/src/cups/cups-1.4.6-1/build/scripting/php/phpcups.c:349: undefined 
> reference to `_add_property_long_ex'
> /usr/src/cups/cups-1.4.6-1/build/scripting/php/phpcups.c:350: undefined 
> reference to `_add_property_string_ex'
> /usr/src/cups/cups-1.4.6-1/build/scripting/php/phpcups.c:351: undefined 
> reference to `_add_property_string_ex'
> /usr/src/cups/cups-1.4.6-1/build/scripting/php/phpcups.c:352: undefined 
> reference to `_add_property_string_ex'
> /usr/src/cups/cups-1.4.6-1/build/scripting/php/phpcups.c:353: undefined 
> reference to `_add_property_string_ex'
> /usr/src/cups/cups-1.4.6-1/build/scripting/php/phpcups.c:354: undefined 
> reference to `_add_property_long_ex'
> /usr/src/cups/cups-1.4.6-1/build/scripting/php/phpcups.c:355: undefined 
> reference to `_add_property_long_ex'
> /usr/src/cups/cups-1.4.6-1/build/scripting/php/phpcups.c:356: undefined 
> reference to `_add_property_long_ex'
> /usr/src/cups/cups-1.4.6-1/build/scripting/php/phpcups.c:357: undefined 
> reference to `_add_property_long_ex'
> /usr/src/cups/cups-1.4.6-1/build/scripting/php/phpcups.c:358: undefined 
> reference to `_add_property_long_ex'
> phpcups.o:/usr/src/cups/cups-1.4.6-1/build/scripting/php/phpcups.c:359: more 
> undefined references to `_add_property_long_ex' follow
> phpcups.o: In function `zif_cups_get_jobs':
> /usr/src/cups/cups-1.4.6-1/build/scripting/php/phpcups.c:361: undefined 
> reference to `_add_index_zval'
> phpcups.o: In function `zif_cups_get_dests':
> /usr/src/cups/cups-1.4.6-1/build/scripting/php/phpcups.c:260: undefined 
> reference to `__array_init'
> /usr/src/cups/cups-1.4.6-1/build/scripting/php/phpcups.c:264: undefined 
> reference to `__emalloc'
> /usr/src/cups/cups-1.4.6-1/build/scripting/php/phpcups.c:266: undefined 
> reference to `__object_init'
> /usr/src/cups/cups-1.4.6-1/build/scripting/php/phpcups.c:273: undefined 
> reference to `_add_property_string_ex'
> /usr/src/cups/cups-1.4.6-1/build/scripting/php/phpcups.c:274: undefined 
> reference to `_add_property_string_ex'
> /usr/src/cups/cups-1.4.6-1/build/scripting/php/phpcups.c:276: undefined 
> reference to `_add_property_long_ex'
> /usr/src/cups/cups-1.4.6-1/build/scripting/php/phpcups.c:282: undefined 
> reference to `__emalloc'
> /usr/src/cups/cups-1.4.6-1/build/scripting/php/phpcups.c:284: undefined 
> reference to `__array_init'
> /usr/src/cups/cups-1.4.6-1/build/scripting/php/phpcups.c:289: undefined 
> reference to `_add_assoc_string_ex'
> /usr/src/cups/cups-1.4.6-1/build/scripting/php/phpcups.c:291: undefined 
> reference to `_add_property_zval_ex'
> /usr/src/cups/cups-1.4.6-1/build/scripting/php/phpcups.c:294: undefined 
> reference to `_add_index_zval'
> /usr/src/cups/cups-1.4.6-1/build/scripting/php/phpcups.c:252: undefined 
> reference to `_zend_wrong_param_count'
> phpcups.o: In function `zif_cups_cancel_job':
> /usr/src/cups/cups-1.4.6-1/build/scripting/php/phpcups.c:228: undefined 
> reference to `_zend_wrong_param_count'
> /usr/src/cups/cups-1.4.6-1/build/scripting/php/phpcups.c:226: undefined 
> reference to `_zend_parse_parameters'
> phpcups.o: In function `zm_startup_phpcups':
> /usr/src/cups/cups-1.4.6-1/build/scripting/php/phpcups.c:138: undefined 
> reference to `_zend_register_long_constant'
> /usr/src/cups/cups-1.4.6-1/build/scripting/php/phpcups.c:139: undefined 
> reference to `_zend_register_long_constant'
> /usr/src/cups/cups-1.4.6-1/build/scripting/php/phpcups.c:140: undefined 
> reference to `_zend_register_long_constant'
> /usr/src/cups/cups-1.4.6-1/build/scripting/php/phpcups.c:141: undefined 
> reference to `_zend_register_long_constant'
> /usr/src/cups/cups-1.4.6-1/build/scripting/php/phpcups.c:142: undefined 
> reference to `_zend_register_long_constant'
> phpcups.o:/usr/src/cups/cups-1.4.6-1/build/scripting/php/phpcups.c:143: more 
> undefined references to `_zend_register_long_constant' follow
> phpcups.o: In function `cups_convert_options':
> /usr/src/cups/cups-1.4.6-1/build/scripting/php/phpcups.c:110: undefined 
> reference to `_php_sprintf'
> /usr/src/cups/cups-1.4.6-1/build/scripting/php/phpcups.c:104: undefined 
> reference to `_php_sprintf'
> phpcups.o: In function `zif_cups_print_files':
> /usr/src/cups/cups-1.4.6-1/build/scripting/php/phpcups.c:461: undefined 
> reference to `_zend_wrong_param_count'
> /usr/src/cups/cups-1.4.6-1/build/scripting/php/phpcups.c:458: undefined 
> reference to `_zend_parse_parameters'
> phpcups.o: In function `zif_cups_print_file':
> /usr/src/cups/cups-1.4.6-1/build/scripting/php/phpcups.c:423: undefined 
> reference to `_zend_wrong_param_count'
> /usr/src/cups/cups-1.4.6-1/build/scripting/php/phpcups.c:419: undefined 
> reference to `_zend_parse_parameters'
> phpcups.o: In function `zif_cups_last_error_string':
> /usr/src/cups/cups-1.4.6-1/build/scripting/php/phpcups.c:393: undefined 
> reference to `_zend_wrong_param_count'
> phpcups.o: In function `zif_cups_last_error':
> /usr/src/cups/cups-1.4.6-1/build/scripting/php/phpcups.c:378: undefined 
> reference to `_zend_wrong_param_count'
> collect2: ld returned 1 exit status
>
> make[1]: *** [phpcups.so] Error 1
> make: *** [all] Error 1
>
>
>
>
>
>
> 2011/1/31 Yaakov (Cygwin/X) <[email protected]>
>>
>> On Thu, 2011-01-27 at 06:41 +0100, Gyurmo wrote:
>> > Hello;
>> > How can I get CUPS development for cygwin?
>> > I can see the http://cygwin-ports.git.sourceforge.net/git/gitweb-index.cgi 
>> > CUPS.
>>
>> My CUPS port is not yet fully functioning, but I did update Ports git to
>> 1.4.6 if you want to build it and give it a try (hint: use
>> DefaultAuthType BasicDigest).  Let me know if you get it up and running
>> and how.
-- 
Reini Urban
http://phpwiki.org/           http://murbreak.at/

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Cygwin-ports-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cygwin-ports-general

Reply via email to