Rfc static libraries for Unicode (Linux)
Hi all!
Does anybody know if it is possible to use RFC static libraries for Unicode on Linux?
I can compile and link my application, but when I am running it, I get message: "undefined symbol: strtolU16". librfcu.a is the only static library, which is provided in RFCSDK. Do I need to link my application with any other library?
Everything works fine with non-unicode static library.
Thank you in advance,
Elena
Oracle does not provide any static libraries for MS Windows.
Similar Messages
-
Distribute a static library for iOS. Which Apple agreement applies?
There are many third party static libraries for iOS. So distributing a static library (not via App Store) seems to be possible.
Our company has developed a static library for iOS using xcode and wants to distribute it to our customers as part of a commercial product to help our customers to build iOS applications.
Can you please advise which Apple agreement will allow to distribute a static library for iOS?Thanks much Michael,
Do you suggest that the xcode license agreement will be sufficient? However, except the introductory note where it is mentioned that "This software may be used to reproduce, modify, publish and distribute materials", there is no other reference to distribution.
On the other hand, xcode comes with iOS SDK and our static library of course uses it. But in the "iOS SDK Agreement" at the article 3.2 (d) it is stated that:
"d) You will not distribute Applications created with the SDK absent a separate agreement with Apple;"
So, which is this separate agreement? The Program License Agreement allows distribution only along App Store. -
How to set and static ip_address for a Suse Linux box
Hi.
I've done the following to set an static ip address for my Suse 9 Linux box:
- Take not of inet address value from ifconfig command. ie: (172.17.2.14)
- Change this value in /etc/hosts for my linux box.
Since Suse is configure by default to use DHCP for assigning dinamic ip_addresses i'm not sure whether will lastly be set as a static address. I've rebooted my box and it seems to be OK.
Thanks in advance ...!/etc/hosts is not configuration file for ethernet interfaces.
Configuration files for ethernet interfaces are stored in /etc/sysconfig/network directory.
For example if you have eth0 device then configuretion for this device is stored in /etc/sysconfig/network/ifcfg-eth0 file.
Important directives:
DEVICE - interface (eth0)
IPADDR - IP address of interface
NETMASK - netmask
BOOTPROTO - "static" for static configuration, dhcp for dynamic configuration via dhcp
ONBOOT - activating interface during boot (yes/no) (yes - of course :-) )
GATEWAY - default gateway
So for example you want setup static IP (192.168.10.1 / 255.255.225.0) for eth0 interface.
Edit the /etc/sysconfig/network/ifcfg-eth0 file and your configuration should be:
DEVICE=eth0
IPADDR=192.168.10.1
NETMASK=255.255.255.0
BOOTPROTO=static
ONBOOT=yesThen you simply restart the nework using:
/etc/init.d/network restartOR
/sbin/ifdown eth0
/sbinf/ifup eth0 OR
ifconfig eth0 down
ifconfig eth0 up -
Creating RFC Destination For UNICODE system From NON-UNICODE system
hi
how can i create RFC Destination For UNICODE system( XI ) From NON-UNICODE (R/3) system.
thanks and regards
Mithlesh Kumar JhaHi,
Check these blogs , Hope u would be getting some idea
<b>/people/thomas.jung3/blog/2004/06/24/bsp-150-a-developer146s-journal-part-v-xml-for-rfcs
/people/thomas.jung3/blog/2004/11/15/bsp-150-a-developer146s-journal-part-xiii-developing-abap-webservices
/people/sap.user72/blog/2004/06/19/how-i-started-with-sap-web-development</b>
Regards,
Sridhar Reddy -
FileSupport in Runtime Libraries for Linux
I've been reasonably successful in deploying LabVIEW embedded 8.5 on a 5121e using a separate Linux based machine for my compile server. I'm trying to deploy the Autotest routines on this target to see if there are any problems with the target. I started going through the various LEP_AutoTest_TestSequence_X.vi files to see how the target communication was managed and noticed most are through a serial link. Since my serial link is connected to my compile server and not my LV development machine; I figured that having the tests write a results file and then ftp them back would work. So I've been trying to figure out how to enable file support for my linux embedded target without luck. When I attempt to recompile the RT libs with FileSupport=1; gcc reports all kinds of errors. I've read somewhere that the RT libs don't have file support for linux. Is this true? Anything in the pipeline? workarounds?
My runtime lib Makefile.sub.mk has these options (without file support enabled):
OPTS= -DCHeadless=1 -DUsesTCPDebugger=1 -Dlinux $(CMDOPTS) \
-D_Include_Scheduler -D_Include_OSScheduler -DPalm5Earlier=0 -DPosixFiles=0 \
-DNoFileSupport -DSerialSupport=1 -DFileSupport=0 -DDatalogSupport=0 \
-DSocketSupport=1
I also couln't find reference to some of these macros in the porting guide. Is there a supplementary document that details these?
Another question related to LVe that's been on my mind is; what exactly references LVDefs_plat.h? and why isn't it part of the LEP Plugins? I know the building of Run-Time Libraries depends on it, but is it also used during the course of invoking CGEN? This is just a question/issue for me since I copy the whole CCodeGen dir to another machine to do my cross compiling and its a pain trying to keep these files in sync.
Thanks
MilanMaybe an exception is thrown?
Otherwise, while debugging your application, you can open the breakpoints window and remove any unwanted breakpoints over there. -
OCCI static linkage for CentOS
Hello All.
I am using Oracle Client and I need to do static linkage of my C++ program, which is running under centos x64.
I have install Oracle Instant Client packages (http://www.oracle.com/technetwork/topics/linuxx86-64soft-092277.html), and there are only *.so files after installation,
so it is possible to use these files dynamically during working program.
After that I have downloaded Oracle full Client inside database with administrator full package (Oracle Database 12c Release 1 Client (12.1.0.1.0) for Linux x86-64).
http://www.oracle.com/technetwork/database/enterprise-edition/downloads/database12c-linux-download-1959253.html
Then I tried to compile my application and linked *.a library files from the oracle lib directory.
In the process of linking I found that it is not possible to link my program with only static libraries, because these libraries have references to dynamic *.so objects, and implementations for some calls can be found only in *.so files.
So for successful compilation we need again *.so files.
Does anybody know the solution of this problem?
I need to compile my program without any references to oracle shared objects.
What web address can be used to download right oracle *.a files?
Maybe you used some special tools to convert *.so files to *.a files for oracle and this was successful? This would be useful for me if you share your experience.Nobody can help to find the answer for such similar question of well used database.
For me it is strange that this problem didn't affect others before.
Where it is possible to find the resolution of the problem? Or maybe some other forums? -
Call upon even better support for Unicode
Hello
Following some messages I have posted regarding problems I encountered while developing a non-English web application, I would like to call upon an even better support for Unicode. Before I describe my call, I want to say that I consider Berkeley DBXML a superb product. Superb. It lets us develop very clean and maintainable applications. Maintainability is, in my view, the keyword in good software development practices.
In this message I would like to remind you that the US-ASCII 8-bit set of characters only represents 0.4% of all characters in the world. It is also true to say that most of our software comes from efforts of American developers, for which I am of course very grateful.
But problems with non US-ASCII characters are very very time consuming to solve. To start with, our operating systems need to be configured especially for unicode, our servers too, our development tools too, our source code too and, finally, our data too. That's a lot of configuring, isn't it? Believe me, as a Flemish french-speaking, danish-speaking developer who develops currently a new application in Portuguese, I know what I am talking about.
Have you ever tried to write a Java class called Ação.java, that loads an xml instance called Ação.xml that contains something like <?xml version="1.0" charset="utf-8"?></ação variável="descrição"/>? It takes at least the double of time to have all this work right in a web application on a Linux server than it would take to write a Acao.java that loads Acao.xml containing <?xml version="1.0" charset="us-ascii"?></acao variavel="descricao"/> (which is clearly something we do not want in Portugal).
I have experienced a problem while using the dbxml shell to load documents that have utf-8 encoded names. See difficulties retrieving documents with non ascii characters in name The work around is not to use the dbxml shell, with which I am of course not very happy.
So, while trying not to be arrogant and while trying to express my very very great appreciation for this great product, I call upon even better support for Unicode. After all, when the rest of us, that use another 65279 characters in our software, will be able to use this great product without problems, will it not contribute to the success of Berkeley DBXML?
Thank you
Koen
Edited by: koenheene on 29/Out/2009 3:09Hello John and thank you for replying,
You are completely correct that it is a shell problem. I investigated and found solutions for running dbxml in a Linux shell. On Windows, as one could expect, no solution so far.
Here is an overview of my investigation, which I hope will be useful for other developers which also presist writing code and xml in their language.
difficulties retrieving documents with non ascii characters in name
I was wondering though if it would not be possible to write the dbxml shell in such a way that it becomes independent from the encoding of the shell. Surely their must be, not? Rewrite dbxml in Java? Any candidates :-) ?
Thanks again for the very good work,
Koen -
Oracle 11gR2 certification for Oracle Linux 6
Hello,
According to Oracle documentation, database certification and support for Oracle 11gR2 under Oracle Linux starts with 11.2.0.3.
I was wondering if this might have anything to do with the i386 software prerequisites. Speaking of Oracle 11gR2 x86_64, the need for i386 libraries was removed with 11gR2 11.2.0.2. Or in other words, one can go straight to 11.2.0.2 without the need to install any 32-bit libraries.
Under Oracle Linux 5 x86_64, the "oracle-validated" package triggers the installation of several i386 packages. Under Oracle Linux 6 x86_64, the oracle-rdbms-server-11gr2-preinstall package uses x86_64 only. Under Oracle Linux 6, i386 changed to i686.
For what it's worth, I have installed Oracle 11gR2 database 11.2.0.1 under Oracle Linux 6.1 to 6.3, both x86_64, simply by using the oracle-rdbms-server-11gr2-preinstall package, and so far have not noticed any problems. Is there some information available, why 11.2.0.1 (x86_64) should not be used or is not certified for Oracle Linux 6 (x86_64)?
Thanks.I was afraid of that. Since the question is Oracle Linux 6 specific, I thought I'd try my luck here, thinking that if I get an answer, then probably here. Maybe it was not very realistic to get an answer anyway.
For what it's worth. Using "oracle-validated" under Oracle Linux 5, and "oracle-rdbms-server-11gR2-preinstall" under Oracle Linux 6, I was able to install Oracle 11gR2 11.2.0.1 just fine, both platforms x86_64 and 32-bit. I have not found any operational issues yet and it seems to run perfectly well.
The only trouble I had was with Grid Infrastructure 11.2.0.1, and here 11.2.0.3 is indeed required for it to install. I made a custom patch, just a few lines and after that 11.2.0.1, both x86_64 and 32-bit installed just fine and is fully operational.
I'm though I could post the patch. I guess it might make those people happy who do not have access to Oracle support and download 11.2.0.3. The patch will allow them to use the 11gR2 OTN version and install it under Oracle Linux 6. It won't be certified, but it is good enough for the purpose of education.
I'm closing the thread. -
What is the most appropriate way to generate a static IPv6 for a domain controller?
DNS Role Best practives is giving errors. Looks like I need to assign ONE static IPv6 to each domain controller and use IT in DNS and DHCP. There are two routers on the network, each assigning a 2002: IP, plus a link local FE80: IP is also assigned.
Is there a way to generate a static IPv6 for domain controllers that will not change even if the network cards or routers are changed?
What is the best practice so that domain integrated DNS and DHCP with Exchange 2010 in the domain, will continue to function?
There is ambiguous information as to whether DC's should have static or dynamic IPv6 IPs. I have tried variations such as IPv4 compatible. IPv4 mapped, ISATAP, etc. but over time have gotten different errors from different sources.
It is one thing for Microsoft to give error messages about IPv6 but I cannot find any definitive recommednations on this.
Thanks if anyone finds a universal answer.
Bob.Excellent and valid points, Bob. Your outlook explains in an easy way how the challenges setting up Windows Server are in a sense, self-generated, and in every sense fully avoidable.
No changes have been made to the warnings or errors in 2013 R2 despite improvements in other areas. This release mainly brought improvements to the setup in areas that were truly broken like automatic account generation for ADFS. Since that's a decade old
feature it's probably best not to wait for Microsoft to clarify, and I appreciate your recommendations.
I'm bumping this thread since it's the first result for 192.168.1.1 on ipv6 on Google right now, and since there's no way to see how often it's being referenced I wanted to add some additional information.
Multiple NIC's can be specified by using the scope ID parameter supported since Vista, that appears as a percent-sign at the end of IPv6 addresses. It uniquely identifies the network adapter even when that adapter shares the same host portion of the IPv6
address space (i.e. essentially, has the same IP, which in IPv4 is invalid.) I'll give some examples at the end of the post.
Following the recommendation to deprecate the fec0 prefix while maintaining a link-local addressing scheme is possible through the prefix length at the beginning of the IPv6 address. As
this reference at IBM explains, fe80:: maps to a link-local prefix length of 64 equivalent to the IPv4 version of 24, and anything else before the double-colon refers to the network portion of the IPv6 address.
The host portion of the IP address then _could_ be ::20, ::21, etc., as you said, but to follow
this MSDN recommendation, it would be more appropriate to use the same host portion and add a suffix for the scope ID documented on that page. The suffix may be specific to Windows
and may not work in an equivalent way in heterogeneous platform deployments. But since the effect is limited to the local machine it should help anything past XP differentiate NICs when assigned the same host portion.
The approach taken in the random IPv6 generator linked elsewhere on this page leaves open the possibility, however unlikely, that the generated IP can route to some other host on an open network that happens to have generated the same network portion of
the address (the other host would be sharing the same network.) If any part should be random, it's the host portion after the double-colon, not the network portion at the beginning, so that the possibility does not exist.
Additionally, the host portion doesn't have to be random, it's just done that way because it's usually automatically generated; a random number is safer for a computer than relying on a sequence that may not fully cover all the numbers used so far. If you're
doing a manual deployment you can combine the above information with the inline 0-supression in IPv6 to assign numbers in the following way:
fe80::1:1%1 (first computer is 1:1, first interface is %1)
fe80::1:1%2 (second interface)
fe80::1:2%1 (second computer, first interface)
Effectively here we're swapping "192.168.1" for "fe80::1" which is roughly the same length (taking into account variations like 10.0.0). The only gotcha is that _either_ the string after the double-colon can't be 1 by itself since that's
reserved for local machine loopback, _or_ that the second-to-last number after the double-colons can't be 0, since that's equivalent due to inline supression.
Other combinations are fine, like fe80::2%1 and fe80::2%2 for the first computer, then ::3 for the second, etc. I thought having a 2-index for the first machine is too uncommon to look familiar so I chose the alternative, but even something like fe80::fe%80
is perfectly fine.
If you don't need to identify individual NICs then omitting the part after the percent sign makes fe80::10, fe80::11 a valid sequence for 2 computers. For over 255 computers just add another number before the last, so that it looks like fe80::1:10, fe80::1:11,
etc. That should be easier to remember than the randomly generated numbers.
There is also another way if the preference is to use IPv4-lookalike addresses. The mapped address spec is defined in RFC 4291 and it goes along the lines of "::ffff:192.168.1.1" for a valid IPv6 address to the gateway, for example. That is a newer
recommendation than the RFC which the random-number generated linked elsewhere on this page relies on. -
Cannot determine all dependent dynamic libraries for /proc/self/exe
Each time I start Oracle XE i writes this entry in the alert log as the first thing:
Wed Jun 14 23:45:45 2006
Starting ORACLE instance (normal)
Cannot determine all dependent dynamic libraries for /proc/self/exe
The open() system call failed for the file /proc/self/exe
Linux Error: 13: Permission denied
This file is just a dynamically created link to /bin/ls like this
lrwxrwxrwx 1 fgjensen users 0 2006-06-15 10:16 /proc/self/exe -> /bin/ls
and looking at the permissions the oracle use should have the permissions it needs.
Regards
FlemmingSuSE Linux 9 and 10 have this problem. It's not serious - simply an indiocation that LD_LIBRARY_PATH is not set up correctly.
Solution: for SuSE systems, edit /etc/init.d/oracle-xe and make the following mod:
ORACLE_OWNER=oracle
ORACLE_SID=XE
export ORACLE_HOME
export ORACLE_SIDchanges to
ORACLE_OWNER=oracle
ORACLE_SID=XE
LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
export ORACLE_HOME
export ORACLE_SID
export LD_LIBRARY_PATHI'm running that on my system and that has eliminated the alert.log message. (And the LD_LIBRARY_PATH message about 3 lines later.) -
Using buildclient to build static libraries under Windows
Hi All,
I have been trying to use buildclient to build a static library
but in vain. When i run the following command on the command line
"buildclient -w -v -o GenSvcWrapper.lib -f GenSvcWrapper.cpp" ,
i get the error (LINK : fatal error LNK1561: entry point must be
defined), which i guess is asking for a main() in the program.
I tried using the VC++ IDE to build the library, now i am able
to build the library but the call to tpinit() fails.
My conclusion is that buildclient can be used only to build
exe's. Am i wrong in my conclusion? If not how do I build
libraries using buildclient or VC++ IDE? What i want is to wrap
Tuxedo ATMI calls like (tpinit() and tpcall()) and provide it as
a library.
Please help me out in this problem. I have pasted the build
output below.
Thanks,
Santhosh
Build Output <<<<<<<<<<<<<<<<<<<<<<<<<<<<<E:\Code\VC\GenSvcWrapper>buildclient -w -v -o GenSvcWrapper.lib -f
GenSvcWrapper
.cpp
cl /MD -I"%TUXDIR%"\include -FeGenSvcWrapper.lib GenSvcWrapper.cpp
"%TUXDIR%
"\lib\libwsc.lib "%TUXDIR%"\lib\libbuft.lib "%TUXDIR%"\lib\libfml.lib
"%TUXDIR
%"\lib\libfml32.lib "%TUXDIR%"\lib\libengine.lib wsock32.lib kernel32.lib
advap
i32.lib user32.lib gdi32.lib comdlg32.lib
winspool.lib -link -implib:BC-7b0.li
b
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8804 for 80x86
Copyright (C) Microsoft Corp 1984-1998. All rights reserved.
GenSvcWrapper.cpp
Will automatically link with libbuft.lib
Will automatically link with libwsc.lib
Will automatically link with libengine.lib
Will automatically link with libfml.lib
Will automatically link with libfml32.lib
Microsoft (R) Incremental Linker Version 6.00.8447
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.
/out:GenSvcWrapper.lib
-implib:BC-7b0.lib
GenSvcWrapper.obj
"E:\Program Files\bea\tuxedo8.0\lib\libwsc.lib"
"E:\Program Files\bea\tuxedo8.0\lib\libbuft.lib"
"E:\Program Files\bea\tuxedo8.0\lib\libfml.lib"
"E:\Program Files\bea\tuxedo8.0\lib\libfml32.lib"
"E:\Program Files\bea\tuxedo8.0\lib\libengine.lib"
wsock32.lib
kernel32.lib
advapi32.lib
user32.lib
gdi32.lib
comdlg32.lib
winspool.lib
LINK : fatal error LNK1561: entry point must be defined
TUXNT_CAT:77: ERROR: Can't execute cl
/MD -I"%TUXDIR%"\include -FeGenSvcWrapper
.lib GenSvcWrapper.cpp "%TUXDIR%"\lib\libwsc.lib
"%TUXDIR%"\lib\libbuft.lib
"%TUXDIR%"\lib\libfml.lib "%TUXDIR%"\lib\libfml32.lib
"%TUXDIR%"\lib\libengine.
lib wsock32.lib kernel32.lib advapi32.lib user32.lib gdi32.lib comdlg32.lib
win
spool.lib -link -implib:BC-7b0.libYou can build libraries using buildclient by working out the VC++ command line
argument used to build a static library and passing that in the -f option of buildclient.
There's no real point in using buildclient to build a tuxedo client because the
only thing it does for you is specify the tuxedo libraries that get linked into
the exe or lib that you are creating, and complain if you don't have a valid SDK
license. I just specify the tuxedo libraries myself to VC++ and completely forget
about using buildclient. The only thing to keep in mind is to make sure you are
using the correct tuxedo libraries for a native or workstation tuxedo client (pretty
much libtux.lib for native and libwsc.lib for a workstation client followed by
the other tuxedo libraries you need, libbuft.lib libfml.lib libfml32.lib libengine.lib
etc. ).
"Santhosh" <[email protected]> wrote:
>
Hi All,
I have been trying to use buildclient to build a static library
but in vain. When i run the following command on the command line
"buildclient -w -v -o GenSvcWrapper.lib -f GenSvcWrapper.cpp" ,
i get the error (LINK : fatal error LNK1561: entry point must be
defined), which i guess is asking for a main() in the program.
I tried using the VC++ IDE to build the library, now i am able
to build the library but the call to tpinit() fails.
My conclusion is that buildclient can be used only to build
exe's. Am i wrong in my conclusion? If not how do I build
libraries using buildclient or VC++ IDE? What i want is to wrap
Tuxedo ATMI calls like (tpinit() and tpcall()) and provide it as
a library.
Please help me out in this problem. I have pasted the build
output below.
Thanks,
Santhosh
Build Output <<<<<<<<<<<<<<<<<<<<<<<<<<<<<E:\Code\VC\GenSvcWrapper>buildclient -w -v -o GenSvcWrapper.lib -f
GenSvcWrapper
.cpp
cl /MD -I"%TUXDIR%"\include -FeGenSvcWrapper.lib GenSvcWrapper.cpp
"%TUXDIR%
"\lib\libwsc.lib "%TUXDIR%"\lib\libbuft.lib "%TUXDIR%"\lib\libfml.lib
"%TUXDIR
%"\lib\libfml32.lib "%TUXDIR%"\lib\libengine.lib wsock32.lib kernel32.lib
advap
i32.lib user32.lib gdi32.lib comdlg32.lib
winspool.lib -link -implib:BC-7b0.li
b
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8804 for
80x86
Copyright (C) Microsoft Corp 1984-1998. All rights reserved.
GenSvcWrapper.cpp
Will automatically link with libbuft.lib
Will automatically link with libwsc.lib
Will automatically link with libengine.lib
Will automatically link with libfml.lib
Will automatically link with libfml32.lib
Microsoft (R) Incremental Linker Version 6.00.8447
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.
/out:GenSvcWrapper.lib
-implib:BC-7b0.lib
GenSvcWrapper.obj
"E:\Program Files\bea\tuxedo8.0\lib\libwsc.lib"
"E:\Program Files\bea\tuxedo8.0\lib\libbuft.lib"
"E:\Program Files\bea\tuxedo8.0\lib\libfml.lib"
"E:\Program Files\bea\tuxedo8.0\lib\libfml32.lib"
"E:\Program Files\bea\tuxedo8.0\lib\libengine.lib"
wsock32.lib
kernel32.lib
advapi32.lib
user32.lib
gdi32.lib
comdlg32.lib
winspool.lib
LINK : fatal error LNK1561: entry point must be defined
TUXNT_CAT:77: ERROR: Can't execute cl
/MD -I"%TUXDIR%"\include -FeGenSvcWrapper
.lib GenSvcWrapper.cpp "%TUXDIR%"\lib\libwsc.lib
"%TUXDIR%"\lib\libbuft.lib
"%TUXDIR%"\lib\libfml.lib "%TUXDIR%"\lib\libfml32.lib
"%TUXDIR%"\lib\libengine.
lib wsock32.lib kernel32.lib advapi32.lib user32.lib gdi32.lib comdlg32.lib
win
spool.lib -link -implib:BC-7b0.lib -
Mingw-w64-pdcurses static libraries
Hello!
I noticed during the course of my programming that the mingw-w64-pdcurses package only builds and installs shared versions of the library, not static versions. Since the wiki guidelines (https://wiki.archlinux.org/index.php/Mi … Guidelines) prescribe the compilation of both static and shared versions, I thought I'd fix that.
First, though, I wanted to post my midifications to the PKGBUILD here for review. I'm still fairly new to Arch and its community, and I wanted to be sure I wasn't violating any guidelines. Also, how should I go about submitting these changes to the AUR? Should I just go ahead and upload the new tarball? Should I contact the package maintainer and let him/her upload the new tarball? Or is there a good reason the static libraries weren't built in the first place; in which case, would it be best to upload it as a new mingw-w64-pdcurses-static package?
Here are my proposed modifications:
PKGBUILD
# Contributor: Filip Brcic <[email protected]>
# Contributor: TheGuy <[email protected]>
pkgname=mingw-w64-pdcurses
pkgver=3.4
pkgrel=3
pkgdesc="Curses library for MinGW (mingw-w64)"
arch=('any')
depends=('mingw-w64-crt')
makedepends=('mingw-w64-gcc')
options=('staticlibs' '!buildflags' '!strip')
license=('custom')
url="http://pdcurses.sourceforge.net/"
source=("http://downloads.sourceforge.net/pdcurses/PDCurses-${pkgver}.tar.gz"
"mingw-pdcurses-3.4-build.patch")
md5sums=('4e04e4412d1b1392a7f9a489b95b331a'
'3ab3282497fd815b18a17d4f43eb9fb6')
_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
prepare() {
cd "${srcdir}/PDCurses-${pkgver}"
patch -Np1 -i ${srcdir}/mingw-pdcurses-3.4-build.patch
sed -i "s|CFLAGS = \-O2 \-Wall|CFLAGS = \-O2 \-g -pipe \-Wall \-Wp,\-D_FORTIFY_SOURCE=2 \-fexceptions \-\-param=ssp\-buffer\-size=4|g" win32/mingwin32.mak
build() {
cd "${srcdir}/PDCurses-${pkgver}"
export CFLAGS="-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4"
for _arch in ${_architectures}; do
cp -a win32 build-${_arch} && pushd build-${_arch}
make -f mingwin32.mak \
CC=${_arch}-gcc \
AR=${_arch}-ar \
LINK=${_arch}-gcc \
STRIP=${_arch}-strip \
WIDE=Y UTF8=Y DLL=Y
make -f mingwin32.mak \
CC=${_arch}-gcc \
AR=${_arch}-ar \
LINK=${_arch}-gcc \
STRIP=${_arch}-strip \
WIDE=Y UTF8=Y DLL=N \
libs
popd
done
package() {
cd "${srcdir}/PDCurses-${pkgver}"
for _arch in ${_architectures} ; do
install -d "${pkgdir}"/usr/${_arch}/{bin,lib,include}
install build-${_arch}/pdcurses.dll "${pkgdir}"/usr/${_arch}/bin/
install build-${_arch}/pdcurses.dll.a "${pkgdir}"/usr/${_arch}/lib/libpdcurses.dll.a
install build-${_arch}/pdcurses.a "${pkgdir}"/usr/${_arch}/lib/libpdcurses.a
install -m 0644 curses.h panel.h term.h "${pkgdir}"/usr/${_arch}/include/
${_arch}-strip --strip-unneeded "${pkgdir}"/usr/${_arch}/bin/*.dll
${_arch}-strip -g "${pkgdir}"/usr/${_arch}/lib/*.a
done
mingw-pdcurses-3.4-build.patch
diff -Naur PDCurses-3.4.orig/win32/mingwin32.mak PDCurses-3.4/win32/mingwin32.mak
--- PDCurses-3.4.orig/win32/mingwin32.mak 2008-07-21 08:31:36.000000000 -0400
+++ PDCurses-3.4/win32/mingwin32.mak 2015-01-15 23:07:24.339995873 -0500
@@ -19,6 +19,8 @@
PDCURSES_WIN_H = $(osdir)/pdcwin.h
CC = gcc
+AR = ar
+STRIP = strip
ifeq ($(DEBUG),Y)
CFLAGS = -g -Wall -DPDCDEBUG
@@ -30,8 +32,8 @@
CFLAGS += -I$(PDCURSES_SRCDIR)
-BASEDEF = $(PDCURSES_SRCDIR)\exp-base.def
-WIDEDEF = $(PDCURSES_SRCDIR)\exp-wide.def
+BASEDEF = $(PDCURSES_SRCDIR)/exp-base.def
+WIDEDEF = $(PDCURSES_SRCDIR)/exp-wide.def
DEFDEPS = $(BASEDEF)
@@ -50,14 +52,14 @@
ifeq ($(DLL),Y)
CFLAGS += -DPDC_DLL_BUILD
- LIBEXE = gcc $(DEFFILE)
- LIBFLAGS = -Wl,--out-implib,pdcurses.a -shared -o
+ LIBEXE = $(CC) $(DEFFILE)
+ LIBFLAGS = -Wl,--out-implib,pdcurses.dll.a -shared -o
LIBCURSES = pdcurses.dll
LIBDEPS = $(LIBOBJS) $(PDCOBJS) $(DEFFILE)
CLEAN = $(LIBCURSES) *.a $(DEFFILE)
else
- LIBEXE = ar
- LIBFLAGS = rcv
+ LIBEXE = $(AR)
+ LIBFLAGS = rcvs
LIBCURSES = pdcurses.a
LIBDEPS = $(LIBOBJS) $(PDCOBJS)
CLEAN = *.a
@@ -70,24 +72,24 @@
libs: $(LIBCURSES)
clean:
- -del *.o
- -del *.exe
- -del $(CLEAN)
+ -rm *.o
+ -rm *.exe
+ -rm $(CLEAN)
demos: $(DEMOS)
- strip *.exe
+ $(STRIP) *.exe
$(DEFFILE): $(DEFDEPS)
echo LIBRARY pdcurses > $@
echo EXPORTS >> $@
- type $(BASEDEF) >> $@
+ cat $(BASEDEF) >> $@
ifeq ($(WIDE),Y)
- type $(WIDEDEF) >> $@
+ cat $(WIDEDEF) >> $@
endif
$(LIBCURSES) : $(LIBDEPS)
$(LIBEXE) $(LIBFLAGS) $@ $?
- -copy pdcurses.a panel.a
+ -cp pdcurses.dll.a panel.a
$(LIBOBJS) $(PDCOBJS) : $(PDCURSES_HEADERS)
$(PDCOBJS) : $(PDCURSES_WIN_H)As noted in the wiki page I linked earlier, the mingw-w64 packages are treated uniquely in that they should "always build both shared and static binaries, unless they conflict". Indeed, this convention is followed in similar packages, like mingw-w64-readline, which depends on mingw-w64-pdcurses. Surely this package should also endeavour to supply static libs, so that software linking against static libs provided by its dependencies can be (fully) statically cross-compiled?
Last edited by TheGuy (2015-01-16 08:52:36) -
Unusable static libraries in $TUXDIR/lib
Hi,
I'm trying to build a WS client to run on TRU64, and I would like to use the static
libraries to make delivery easier. I have tried using buildclient and the cxx
compiler/linker directly however the following is the best result I can get either
way
ld:
Skipping archive /users/mlee/bea/tuxedo8.1/lib/libwsc.a because it has no archive
header
So then, when I check the library I get...
4 -r-xr-xr-x 1 mlee pcs 8 Aug 13 2003 libwsc.a*
8 bytes seems a bit useless! There are various posts on the web about this error
but all solutions relate to rebuilding from source, not really an option for tuxedo?
So I suppose I'm asking; Is there an installation option that will resolve this?Tuxedo does not ship with static libraries. The .a files that you see
are not static libraries.
Max Lee wrote:
Hi,
I'm trying to build a WS client to run on TRU64, and I would like to use the static
libraries to make delivery easier. I have tried using buildclient and the cxx
compiler/linker directly however the following is the best result I can get either
way
ld:
Skipping archive /users/mlee/bea/tuxedo8.1/lib/libwsc.a because it has no archive
header
So then, when I check the library I get...
4 -r-xr-xr-x 1 mlee pcs 8 Aug 13 2003 libwsc.a*
8 bytes seems a bit useless! There are various posts on the web about this error
but all solutions relate to rebuilding from source, not really an option for tuxedo?
So I suppose I'm asking; Is there an installation option that will resolve this? -
Extending DPS reader with static libraries and frameworks
Is there any initiative within Adobe's roadmap to enable extending DPS reader within Xcode by use of static libraries and frameworks?
Core functionality of the reader could be linked and distributed as binary assembly via static libraries.
Shared resources of the DPS reader could be packaged wtihin a framework.
Beyond extending capabilities of the reader, this would also enable advanced debugging and running on devices directly from Xcode.
References:
Using Static Libraries in iOS
Framework Programming Guide
iOS FrameworksNow that the .folio format has been opened up, are there any updates with regards to providing developers access to reader frameworks/libraries?
Adobe .folio Format Specification
In addition to the new feature updates, the technical specification for the .folio format is now available under a free license; further accelerating digital publication adoption and enabling newsstands to produce their own viewing apps capable of displaying digital content built using DPS. All entities who sign the license agreement will be given access to the specification. -
VS2013.3 - Static libraries with RTTI linked to app without RTTI leads to crash
I got a crash today that I traced back to an RTTI mismatch between wxWidgets static libraries and the application. The static libraries had RTTI enabled and the application did not. The crash occurred in wxWidgets when retrieval of type information in wxWidgets
was attempted. It was reproducible in VS2003 SP1, VS2010 SP1 and VS2013.3. You can read more about it here:
wxTypeId() without RTTI crashes in Visual Studio
Unhandled exception at 0x00000000 in app.exe: 0xC0000005: Access violation reading location 0x00000000.
When I enabled RTTI in the application that solved the issue. I also tested disabling RTTI in both the static libraries and application and that solved the issue as well. So it seems there is no mixing of RTTI settings for apps linking to wxWidgets but whether
that's applicable apart from wxWidgets I don't know. I can't find it documented for Visual Studio.
I am thinking about filing this as a bug, if only to ask for future updates of Visual Studio to warn or error if there is an RTTI mismatch. Before I do though I'd like any input you guys have. Do you consider this a bug? Have you ever encountered anything
like this before?
ThanksHi Popchoc,
Thanks for posting in VS general question forum. But your issue is out of support range of VS General Question forum which mainly discusses the usage of Visual Studio IDE such as WPF & SL designer, Visual
Studio Guidance Automation Toolkit, Developer Documentation and Help System
and Visual Studio Editor.
Based on your description, it seems that Visual Studio does not allow mix of RTTI settings. I am not sure whether it is only limited to wxWidgets which is third-party. I am not a developer, it is hard for me
to repro a similar scenario for this behavior. Since RTTI is related to Visual C++, I think you can open a new thread on Visual C++ forum to check whether Visual C++ allows mixed RTTI settings in projects.
As for the compatibility issue between RTTI and wxWidgets,
you could submit this feedback to Microsoft Connect feedback portal:
http://connect.microsoft.com/VisualStudio/feedback/CreateFeedback.aspx,
Microsoft product team will evaluate them seriously. After you submit the feedback, you can post the link here which will be beneficial for other members with the similar issue. And I will help you to vote it.
Thanks for your understanding.
Best regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.
Maybe you are looking for
-
ITunes 11.1.3 unexpected quit every time I try to open it
This message shows Process: iTunes [1889] Path: /Applications/iTunes.app/Contents/MacOS/iTunes Identifier: com.apple.iTunes Version: 11.1.3 (11.1.3) Build Info: iTunes-1113011001003008~1 Code Type: X86-64 (N
-
Dear Forum Members, I have an SSIS running perfectly when i run it in Visual Studio Shell. I have organized it into a job which runs well on SQL Server agent at intervals. However, suddenly, i started having this error as stated in the title. Please
-
HELP they uninstalled my dvd drive!
Seriously, this is the 2nd time this year my apple has gotten messed up when I took it in for repair. The 5th time im going to have to take it in because of to quote them "faulty equipment" I really dont want to drive the hour to have them look at it
-
Compressor not outputting DVD even after numerous fixes attempted
I’m having problems getting Compressor 3.5 to output a DVD. Source file is a 135GB ProRes 422 HQ Quicktime file at 1920x1080 resolution -- it’s the final cut of my 106-minute feature film. I’ve tried numerous solutions to the problem described belo
-
Add some more marketing attributes to an existing Business partner ( BP ).
Hi... I need to add marketing attributes to an existing BP without deleting the previous ones. If i use CRM_MKTBP_ASSIGN_ATTRIBUT_TAB the old ones are get deleted. Please help me out. Regards, Swati