Dear Tracy, many, many thanks to you! I've tried the first method (making gettext declaration explicit) and - voilá - it compiled without complaining. But since I wanted to try the other methods as well, with the following results:
- copying libintl.h changes nothing on the error, still there is an undefined symbol of gettext - finally, simply building and installing gettext from source, without uninstalling the MacPorts gettext, also works for me (unfortunately I need them both, because kile (my LaTeX-Editor) depends on the MacPorts version), which I assume to be the best possible solution, because no alteration of the code is needed. Since I noticed that our e-Mailing didn't appear on the mailing lists, I think I should do a CC to the mailing list, for there could be others with the same problems on a Mac out there. Thank you indeed very much for your help! Best wishes, David Am 18.07.2010 um 05:07 schrieb Tracy Llenos: > Hi, > > Sorry for taking so long to get back to you. One thing I noticed was this > warning: > > On Jul 11, 2010, at 3:43 AM, David Gippner wrote: >> [ ... ] >> libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../include -I../../include >> -I../../lib -L../../lib -g -O2 -MT gabc-score-determination-l.lo -MD -MP -MF >> .deps/gabc-score-determination-l.Tpo -c gabc-score-determination-l.c >> -fno-common -DPIC -o .libs/gabc-score-determination-l.o >> gabc-score-determination.l: In function 'gabc_score_determination_lex': >> gabc-score-determination.l:175: warning: incompatible implicit declaration >> of built-in function 'gettext' > > The compiler is expecting a different type of return from the gettext > function, I think, and it throws a warning. I'm pretty sure that's causing > the error later on. Now I'm not sure why that happens; as to how to fix it... > The first thing is to make the declaration explicit: you could add #include > "gettext.h" to the includes in gabc-score-determination.l (in /plugins/gabc). > > Another thought: what is the last entry in the list if you run 'locate > libintl.h' from the command line? A quick and dirty thing to try is to copy > that file from there to gregorio/trunk/include. I don't see how this could be > the problem without it throwing an error when you run ./configure, but I may > be wrong... > > >> libtool: link: gcc -o .libs/gabc.so -bundle >> .libs/gabc-elements-determination.o .libs/gabc-write.o >> .libs/gabc-glyphs-determination.o .libs/gabc-score-determination-l.o >> .libs/gabc-notes-determination-l.o .libs/gabc-score-determination-y.o >> -L/Users/dg/Downloads/gregorio/lib -lfl >> /Users/dg/Downloads/gregorio/lib/.libs/libgregorio.dylib -lltdl >> Undefined symbols: >> "_gettext", referenced from: >> _gabc_score_determination_lex in gabc-score-determination-l.o >> ld: symbol(s) not found >> collect2: ld returned 1 exit status >> make[2]: *** [gabc.la] Error 1 >> >> I hope this helps to bring some light in the dark. The version of gettext >> installed via MacPorts is 0.18.1.1. > > This might have something to do with the way MacPorts installs things in a > separate directory tree... another thing you could try is uninstalling the > MacPorts version, and instead downloading & building gettext from source > yourself (this is what I did): > http://www.gnu.org/software/gettext/#TOCdownloading > And it installs with ./configure/make/make install. > > I really hope we can get this working for you! Please let me know if any of > this works. > > > Tracy > > > >> Am 11.07.2010 um 01:15 schrieb Tracy Llenos: >> >>> On Sat, Jul 10, 2010 at 1:54 AM, David Gippner >>> <[email protected]> wrote: >>>> Hi! >>>> >>>> Thanks for your quick answer! I think I do now understand a little bit >>>> more of what went wrong (because I really don't need universal binaries). >>>> but still run into gettext errors when I try to compile "the normal way": >>>> >>>> Undefined symbols: >>>> "_gettext", referenced from: >>>> _gabc_score_determination_lex in gabc-score-determination-l.o >>>> >>>> Is it necessary to run the gettextize before configure in any situation? >>>> Or is it just some mixing up of compilers and libraries and so on (for I >>>> use MacPorts and do have several versions of libiconv and libltdl.. ) What >>>> is to be done about that? >>> >>> Hi, >>> >>> You shouldn't have to run gettextize (what gettext version are you >>> using? ). I only did that to remove the dependency on the gettext >>> shared libraries (specifically, libintl). If you have all the >>> libraries, the "normal" procedure should be fine -- I also have >>> multiple versions of libiconv/libltdl on my system, and everything >>> installs. If you want to send a transcript of the terminal output when >>> you run make (I'm assuming that's where the above error occurs), I can >>> take a look at it, and see if anything jumps out as strange. >>> >>> -Tracy >> >> David Gippner M.A. >> Hans-Berger-Straße 20 >> 07747 Jena >> >> [email protected] >> >> >> >> > _______________________________________________ Gregorio-users mailing list [email protected] https://mail.gna.org/listinfo/gregorio-users

