[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mingw-users
Subject:    Re: [Mingw-users] perplexed -- still building pkg-config
From:       "david" <david () firehome ! de>
Date:       2011-02-28 20:06:54
Message-ID: 4D6C005E.7070104 () firehome ! de
[Download RAW message or body]


Hi,

just compiled pkg-config 0.25 with mingw.
Compiled out of the box (no special config flags needed) and works like 
a charm.
I used glib 2.28.

Best regards,

David
> 
> Hello le,
> 
> > Greetings again --
> > well no one responded to my last mail so I have continued to sift through
> > the output of make, and now I am running into a different problem:
> > 
> > Instead of failing to find glib.h like it used to do, it is encountering
> > undefined symbols that should have been defined in system header files. For
> > example, SIGCHLD and all the other signals, as well as I/O constants.
> 1) LRN explained the problem. You need to define certain constants on the
> command line.
> 
> > This explains why i put "-DNATIVE_WIN32" into  CFLAGS="-D_POSIX
> > -DG_OS_WIN32 -DNATIVE_WIN32 -O3 -s -mms-bitfields -mtune=generic" that
> > i've mentioned in my previous message is essential.
> 
> 
> You *must* configure like this:
> CFLAGS="-DG_OS_WIN32 -DNATIVE_WIN32 -O3 -s -mms-bitfields -mtune=generic" \
> ../configure --prefix=/mingw --disable-indirect-deps \
> 
> [and-any-other-suggested-flags]
> 
> Various sections of the code look something like this:
> 
> #ifdef NATIVE_WIN32
> /* Use Windows API */
> #else
> /* Use Linux or POSIX API */
> #endif
> 
> Therefore, if you define NATIVE_WIN32 as you should, then Linux code
> will not be compiled.
> 
> If you understood this, and what you meant was that after changing
> your configure command to the suggested one, symbols are not being
> found, this could be caused by failing to run 'make distclean'
> before configuring again. If you want to run configure after making
> changes to the command line, you should run 'make distclean' first
> in order to delete all files produced by configure and make.
> 
> > Now I realize windows doesn't use the same mechanisms as linux for handling
> > signals, so this code should probably be conditionally compiled
> And it is, or will be if you #define NATIVE_WIN32 and G_OS_WIN32.
> 
> 
> > I am finding I get the identical results whether I configure
> > with --disable-indirect-deps or not.
> > I don't know what this option does or why it was suggested that I use it.
> Neither do I, but evidently it is not what you need to turn on
> conditional compilation. Please don't configure without it, because
> when you get past the conditional compilation problem, you will no
> doubt run into the problem that --disable-indirect-deps fixes.
> 
> If you really want to know what this flag does, run
> configure --help.
> 
> 
> > Meanwhile, I really need pkg-config for what I'm working on and am hoping
> > someone can point out anything that might make this build script work.
> > 
> I had suggested the 32-bit pre-built pkg-config, which works just fine on
> my 64-bit Vista Home Premium SP2. Did you try it?
> 
> Regards,
> Alias John Brown.
> 		 	   		
> ------------------------------------------------------------------------------
> Free Software Download: Index, Search&  Analyze Logs and other IT data in
> Real-Time with Splunk. Collect, index and harness all the fast moving IT data
> generated by your applications, servers and devices whether physical, virtual
> or in the cloud. Deliver compliance at lower cost and gain new business
> insights. http://p.sf.net/sfu/splunk-dev2dev
> _______________________________________________
> MinGW-users mailing list
> MinGW-users@lists.sourceforge.net
> 
> This list observes the Etiquette found at
> http://www.mingw.org/Mailing_Lists.
> We ask that you be polite and do the same.  Disregard for the list etiquette may \
> cause your account to be moderated. 
> _______________________________________________
> You may change your MinGW Account Options or unsubscribe at:
> https://lists.sourceforge.net/lists/listinfo/mingw-users
> Also: mailto:mingw-users-request@lists.sourceforge.net?subject=unsubscribe


------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
MinGW-users mailing list
MinGW-users@lists.sourceforge.net

This list observes the Etiquette found at 
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may \
cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@lists.sourceforge.net?subject=unsubscribe


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic