icc_oyranos_extern.c - undefined reference to oyStringCopy_
Milan Knížek <knizek-VIXq6x/[email protected]> Sat, 14 Jun 2008 19:27:31 +0200
| Newsgroups | gmane.comp.video.cinepaint.devel |
|---|---|
| Message-ID | <1213464451.9123.19.camel@athlon> |
Hi, during "make" of the current CVS of cinepaint the following error occurs (configuration without oyranos): icc_oyranos_extern.o: In function `oyNamedColourCreate': /home/modeluser/src/cinepaint-project/cinepaint/plug-ins/icc_examin/icc_examin/icc_oyranos_extern.c:274: undefined reference to `oyStringCopy_' /home/modeluser/src/cinepaint-project/cinepaint/plug-ins/icc_examin/icc_examin/icc_oyranos_extern.c:275: undefined reference to `oyStringCopy_' /home/modeluser/src/cinepaint-project/cinepaint/plug-ins/icc_examin/icc_examin/icc_oyranos_extern.c:276: undefined reference to `oyStringCopy_' /home/modeluser/src/cinepaint-project/cinepaint/plug-ins/icc_examin/icc_examin/icc_oyranos_extern.c:277: undefined reference to `oyStringCopy_' icc_oyranos_extern.o: In function `oyNamedColourGetDescription': /home/modeluser/src/cinepaint-project/cinepaint/plug-ins/icc_examin/icc_examin/icc_oyranos_extern.c:424: undefined reference to `oyStringCopy_' collect2: ld returned 1 exit status make[3]: *** [iccexamin] Error 1 Application of the attached patch helps in my case (I am not really sure what is correct). Ubuntu 8.04 x86_64. Regards, Milan Knížek knizek (na) volny (tečka) cz http://www.milan-knizek.net - O linuxu a fotografování ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Cinepaint-developers mailing list Cinepaint-developers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/cinepaint-developers
icc_oyranos_extern.c.patch
(text/x-patch, 689 B)
--- icc_oyranos_extern.c.old 2008-05-22 06:20:53.000000000 +0200
+++ icc_oyranos_extern.c 2008-06-14 19:12:18.000000000 +0200
@@ -206,7 +206,12 @@
#endif
#if defined(HAVE_OY)
-# if OYRANOS_VERSION < 108
+# if OYRANOS_VERSION >= 108
+char*
+oyStringCopy_ ( const char * text,
+ oyAllocFunc_t allocateFunc );
+# endif
+#else
/* Has to go to oyranos_texts.x */
char*
oyStringCopy_ ( const char * text,
@@ -222,11 +227,6 @@
}
return text_copy;
}
-# else
-char*
-oyStringCopy_ ( const char * text,
- oyAllocFunc_t allocateFunc );
-# endif
#endif
/** @brief manage complex oyNamedColour_s inside Oyranos