[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [help-gengetopt] strdup is missing on SFU
From: |
Gyozo, PAPP (VBuster) |
Subject: |
RE: [help-gengetopt] strdup is missing on SFU |
Date: |
Mon, 17 Jan 2005 08:59:14 +0100 |
Hi,
I'll send you the details. Here is the end of the output from make:
gengetopt.cc:303: error: `strdup' undeclared (first use this function)
gengetopt.cc: In function `int gengetopt_add_option(const char*, char, const
char*, int, int, int, const char*, const char*, const char*, const
AcceptedValues*, int, int)':
gengetopt.cc:343: error: `strdup' undeclared (first use this function)
gengetopt.cc: In function `void canonize_var(gengetopt_option*)':
gengetopt.cc:473: error: `strdup' undeclared (first use this function)
*** Error code 1
Stop.
*** Error code 1
Stop.
*** Error code 1
Stop.
*** Error code 1
Stop.
However, strdup() declaration exists in the system headers:
% grep strdup /usr/include/*
/usr/include/string.h:extern char* __cdecl strdup(const char *);
/usr/include/strings.h:extern char * __cdecl _strdup(const char *);
I attached the config outputs. If I missed something, let me know because I
still don't know what files should be observed in addition to these.
Gyozo
" -----Original Message-----
" From: Lorenzo Bettini [mailto:address@hidden
" Sent: Sunday, January 16, 2005 2:47 PM
" To: PAPP Gyozo; Users list for gengetopt
" Subject: Re: [help-gengetopt] strdup is missing on SFU
"
"
" PAPP Gyozo wrote:
" > Hi there,
" >
" > I've found a very exciting (at least for me) project at
" microsoft.com:
" > SFU Services for Unix. It contains a Unix emulation layer
" for Windows
" > like Cygwin, but it most looks like a real big Unix and not a neat
" > Linux as its name proposes.
" >
" > The first program I've compiled with it was gengetopt.
" Unfortunately,
" > it complaint about missing strdup() at the very beginning
" of the build
" > process. After I added a rough strdup() implementation into
" > gm_utils.cpp and also included its header into the source
" files where
" > strdup() was referenced, the build was successful. So I think
" > something is missing or wrong with the gengetopt's autoconf/header
" > settings (I really don't know what tool is responsible for such a
" > bug), or in the used tools itself.
" >
" > I'll provide any further details, of course, if you are about to
" > support such a weird platform: SFU.
"
" Hi there,
"
" could you please provide further details?
"
" the strange thing is that configure should catch the missing
" strdup and
" use an internal strdup...
"
" thanks
" Lore
"
" --
" +-----------------------------------------------------+
" | Lorenzo Bettini ICQ# lbetto, 16080134 |
" | PhD in Computer Science |
" | Dip. Sistemi e Informatica, Univ. di Firenze |
" | Tel +39 055 4796741, Fax +39 055 4796730 |
" | Florence - Italy (GNU/Linux User # 158233) |
" | Home Page : http://www.lorenzobettini.it |
" | http://music.dsi.unifi.it XKlaim language |
" | http://www.lorenzobettini.it/purple Cover Band |
" | http://www.gnu.org/software/src-highlite |
" | http://www.gnu.org/software/gengetopt |
" | http://www.lorenzobettini.it/software/gengen |
" | http://www.lorenzobettini.it/software/doublecpp |
" +-----------------------------------------------------+
"
"
" --
" No virus found in this outgoing message.
" Checked by AVG Anti-Virus.
" Version: 7.0.300 / Virus Database: 265.6.13 - Release Date: 16/01/2005
"
"
"
" _______________________________________________
" Help-gengetopt mailing list
" address@hidden
" http://lists.gnu.org/mailman/listinfo/help-gengetopt
"
gengetopt-2_13-config.zip
Description: gengetopt-2_13-config.zip